Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file modified .github/workflows/ansible.yml
100644 → 100755
Empty file.
9 changes: 7 additions & 2 deletions roles/mythtv/tasks/homebrew_macosx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,18 @@
set_fact:
openssl_path: "{{ pkgmgr_prefix }}/opt/openssl/"

# get the python version specified by user in ansible_python_interpreter or defaulted by the interpreter
- name: Gather specific Python facts
ansible.builtin.shell: "{{ ansible_python_interpreter | default('python3') }} -c 'import sys; print(f\"{sys.version_info.major}.{sys.version_info.minor}\")'"
register: python_version

# python_package_suffix and python_exe_suffix are required to aide in development of the python venv
- name: homebrew_macosx | Develop python package version suffixes
set_fact:
python_package_suffix:
'{{ ansible_python.version.major }}{{ ansible_python.version.minor }}'
"{{ python_version.stdout | replace('.', '') }}"
python_exe_suffix:
'{{ ansible_python.version.major }}.{{ ansible_python.version.minor }}'
"{{ python_version.stdout }}"

...

Expand Down
9 changes: 7 additions & 2 deletions roles/mythtv/tasks/macports_macosx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,19 @@
qt_version: qt6
when: qt5 is undefined or not qt5

# get the python version specified by user in ansible_python_interpreter or defaulted by the interpreter
- name: Gather specific Python facts
ansible.builtin.shell: "{{ ansible_python_interpreter | default('python3') }} -c 'import sys; print(f\"{sys.version_info.major}.{sys.version_info.minor}\")'"
register: python_version

# python_package_suffix and python_exe_suffix are required to install the correct python ports
# and to aide in development of the python venv
- name: macports_macosx | Develop python package version suffixes
set_fact:
python_package_suffix:
'{{ ansible_python.version.major }}{{ ansible_python.version.minor }}'
"{{ python_version.stdout | replace('.', '') }}"
python_exe_suffix:
'{{ ansible_python.version.major }}.{{ ansible_python.version.minor }}'
"{{ python_version.stdout }}"

...

Expand Down
3 changes: 2 additions & 1 deletion roles/perl/tasks/cpanm_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
#
# install perl modules with ansible's cpanm capabiltiy
#
# --mirror 'http://cpan.cpantesters.org/'
---

- name: 'cpanm_install | Install perl modules'
become: false
command: cpanm
--mirror 'http://cpan.cpantesters.org/'
--mirror 'https://metacpan.org/'
--force
{{ perl_modules | join(' ') }}
ignore_errors: yes
Expand Down
2 changes: 1 addition & 1 deletion roles/perl/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
include_tasks:
file: '{{ item }}'
with_first_found:
- files: '{{ ansible_pkg_mgr }}_{{ distro }}.yml'
- files: '{{ ansible_facts["pkg_mgr"] }}_{{ distro }}.yml'
skip: true

- name: 'Optionally perform any installation operations'
Expand Down
Loading