Skip to content

Commit

Permalink
Fix pip instalation into Ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
fcaffieri committed Jan 6, 2025
1 parent c9574c8 commit fb4aeb6
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/ansible-playbooks/provision.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,23 +152,23 @@
when:
- ansible_os_family == 'Debian'

- name: Install pip Ubuntu\Debian Bionic/Xenial
- name: Install pip Ubuntu\Debian
shell: curl https://bootstrap.pypa.io/get-pip.py | python3 -
when:
- ansible_os_family == 'Debian'
- stat_pip3.stat.exists == False
- ansible_distribution_release in ['bionic','xenial']

- name: Install pip Ubuntu not Bionic/Xenial
ansible.builtin.package:
name:
- python3-pip
state: present
update_cache: yes
when:
- ansible_os_family == 'Debian'
- ansible_distribution == "Ubuntu"
- ansible_distribution_release not in ['bionic','xenial']
#- ansible_distribution_release not in ['bionic']

#- name: Install pip Ubuntu Bionic/Xenial
# ansible.builtin.package:
# name:
# - python3-pip
# state: present
# update_cache: yes
# when:
# - ansible_os_family == 'Debian'
# - ansible_distribution == "Ubuntu"
# - ansible_distribution_release in ['bionic']

when:
- install_python is defined
Expand Down

0 comments on commit fb4aeb6

Please sign in to comment.