Skip to content
Open
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
8 changes: 4 additions & 4 deletions molecule/default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
pre_tasks:
- name: Update apt cache.
apt: update_cache=true cache_valid_time=600
when: ansible_os_family == 'Debian'
when: ansible_facts.os_family == 'Debian'

- name: Set package name for older OSes.
set_fact:
pip_package: python-pip
when: >
(ansible_os_family == 'RedHat') and (ansible_distribution_major_version | int < 8)
or (ansible_distribution == 'Debian') and (ansible_distribution_major_version | int < 10)
or (ansible_distribution == 'Ubuntu') and (ansible_distribution_major_version | int < 18)
(ansible_facts.os_family == 'RedHat') and (ansible_facts.distribution_major_version | int < 8)
or (ansible_facts.distribution == 'Debian') and (ansible_facts.distribution_major_version | int < 10)
or (ansible_facts.distribution == 'Ubuntu') and (ansible_facts.distribution_major_version | int < 18)

roles:
- role: geerlingguy.pip
2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

- name: Remove EXTERNALLY-MANAGED
ansible.builtin.file:
path: /usr/lib/python3.{{ ansible_python.version.minor }}/EXTERNALLY-MANAGED
path: /usr/lib/python3.{{ ansible_facts.python.version.minor }}/EXTERNALLY-MANAGED
state: absent

- name: Ensure pip_install_packages are installed.
Expand Down
Loading