Commit 05696369 authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

Support to have only pip3 installed

parent 6c22b06c
...@@ -6,13 +6,28 @@ ...@@ -6,13 +6,28 @@
failed_when: false failed_when: false
register: pip_installed register: pip_installed
- name: Register pip3 installation status
command: which pip3
changed_when: false
failed_when: false
register: pip3_installed
- name: Make sure pip is installed - name: Make sure pip is installed
shell: easy_install pip shell: easy_install pip
when: pip_installed|failed when: pip_installed|failed and pip3_installed|failed
# install module with pip so that on debian 8 we can download the playbook in shacache - name: Install/Upgrade latest slapos.libnetworkcache using pip
- name: Install/Upgrade latest slapos.libnetworkcache
shell: pip install --upgrade slapos.libnetworkcache shell: pip install --upgrade slapos.libnetworkcache
when: pip_installed|succeeded
- name: Instal/Upgrade latest slapcache - name: Install/Upgrade latest slapcache using pip
shell: pip install --upgrade slapcache shell: pip install --upgrade slapcache
when: pip_installed|succeeded
- name: Install/Upgrade latest slapos.libnetworkcache using pip3
shell: pip3 install --upgrade slapos.libnetworkcache
when: pip3_installed|succeeded
- name: Install/Upgrade latest slapcache using pip3
shell: pip3 install --upgrade slapcache
when: pip3_installed|succeeded
Markdown is supported
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