diff --git a/contextualization/conf-ansible.yml b/contextualization/conf-ansible.yml index 040ea0a3b..f09c52d00 100644 --- a/contextualization/conf-ansible.yml +++ b/contextualization/conf-ansible.yml @@ -69,9 +69,17 @@ ################### Install Ansible/pip requisites ######################### - name: Debian/Ubuntu install requisites with apt - apt: name=python-pip,python-setuptools,sshpass,openssh-client,unzip install_recommends=no + apt: name=curl,sshpass,openssh-client,unzip install_recommends=no when: ansible_os_family == "Debian" + - name: Debian/Ubuntu install python-pip with apt + apt: name=python-pip,python-setuptools install_recommends=no + when: ansible_os_family == "Debian" and not (ansible_distribution == "Ubuntu" and ansible_distribution_major_version|int >= 20) + + - name: Install pip in in Ubuntu 20+ + apt: name=python3-pip,python3-setuptools install_recommends=no + when: ansible_distribution == "Ubuntu" and ansible_distribution_major_version|int >= 20 + - name: Ubuntu 14 extra packages needed apt: name=gcc,python-dev,libffi-dev,libssl-dev install_recommends=no when: ansible_distribution == "Ubuntu" and ansible_distribution_major_version|int <= 14