Commit dcfb11ea authored by keshavprasadms's avatar keshavprasadms
Browse files

fix: python packages for ubuntu 18 and above

Showing with 8 additions and 4 deletions
+8 -4
...@@ -39,12 +39,16 @@ ...@@ -39,12 +39,16 @@
update_cache: true update_cache: true
run_once: true run_once: true
- name: Ensure pip is installed - name: Ensure python packages are installed
apt: name=python-pip update_cache=yes apt:
name: ["python-pip", "python-dev"]
update_cache: yes
when: ansible_os_family == 'Debian' and ansible_distribution_version | float < 18 when: ansible_os_family == 'Debian' and ansible_distribution_version | float < 18
- name: Ensure pip is installed - name: Ensure python packages are installed
apt: name=python3-pip update_cache=yes apt:
name: ["python3-pip", "python3-dev"]
update_cache: yes
when: ansible_os_family == 'Debian' and ansible_distribution_version | float > 18 when: ansible_os_family == 'Debian' and ansible_distribution_version | float > 18
- name: Copying python libraries - name: Copying python libraries
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment