@@ -4,3 +4,4 @@ | |||||
pip: | pip: | ||||
name: ansible | name: ansible | ||||
state: latest | state: latest | ||||
executable: pip3 |
@@ -4,8 +4,9 @@ | |||||
pip: | pip: | ||||
name: ara | name: ara | ||||
state: present | state: present | ||||
executable: pip3 | |||||
- name: get ara location | - name: get ara location | ||||
shell: python -c "import os,ara; print(os.path.dirname(ara.__file__))" | |||||
shell: python3 -c "import os,ara; print(os.path.dirname(ara.__file__))" | |||||
register: _ara_location | register: _ara_location | ||||
changed_when: false | changed_when: false |
@@ -1,6 +1,6 @@ | |||||
--- | --- | ||||
- name: cleanup debian ansible package | |||||
- name: make sure debian ansible package is absent | |||||
apt: | apt: | ||||
pkg: ansible | pkg: ansible | ||||
state: absent | state: absent | ||||
@@ -20,15 +20,41 @@ | |||||
pip: | pip: | ||||
name: ara | name: ara | ||||
state: absent | state: absent | ||||
executable: pip3 | |||||
when: not ansible_use_ara | when: not ansible_use_ara | ||||
- name: cleanup mitogen pip package | - name: cleanup mitogen pip package | ||||
pip: | pip: | ||||
name: mitogen | name: mitogen | ||||
state: absent | state: absent | ||||
executable: pip3 | |||||
when: not ansible_use_mitogen | when: not ansible_use_mitogen | ||||
- name: cleanup ansible ovh module | - name: cleanup ansible ovh module | ||||
file: | file: | ||||
path: /usr/share/ansible/modules/ovh/ | path: /usr/share/ansible/modules/ovh/ | ||||
state: absent | state: absent | ||||
- name: make sure old python2 ansible pip package is absent | |||||
pip: | |||||
name: ansible | |||||
state: absent | |||||
executable: pip2 | |||||
- name: make sure old python2 ara pip package is absent | |||||
pip: | |||||
name: ara | |||||
state: absent | |||||
executable: pip2 | |||||
- name: make sure old python2 ovh client package is absent | |||||
pip: | |||||
name: ovh | |||||
executable: pip2 | |||||
state: absent | |||||
- name: make sure old python2 mitogen pip package is absent | |||||
pip: | |||||
name: mitogen | |||||
state: absent | |||||
executable: pip2 |
@@ -4,8 +4,9 @@ | |||||
pip: | pip: | ||||
name: mitogen | name: mitogen | ||||
state: latest | state: latest | ||||
executable: pip3 | |||||
- name: get ansible_mitogen location | - name: get ansible_mitogen location | ||||
shell: python -c "import os,ansible_mitogen; print(os.path.dirname(ansible_mitogen.__file__))" | |||||
shell: python3 -c "import os,ansible_mitogen; print(os.path.dirname(ansible_mitogen.__file__))" | |||||
register: _ansible_mitogen_location | register: _ansible_mitogen_location | ||||
changed_when: false | changed_when: false |
@@ -3,6 +3,7 @@ | |||||
- name: python ovh client | - name: python ovh client | ||||
pip: | pip: | ||||
name: ovh | name: ovh | ||||
executable: pip3 | |||||
- name: ansible ovh module | - name: ansible ovh module | ||||
git: | git: | ||||
@@ -7,16 +7,16 @@ | |||||
- ipv6calc | - ipv6calc | ||||
- uuid | - uuid | ||||
- git | - git | ||||
- python-jmespath | |||||
- python3-jmespath | |||||
# ara required_packages: | # ara required_packages: | ||||
- gcc | - gcc | ||||
- libffi-dev | - libffi-dev | ||||
- libssl-dev | - libssl-dev | ||||
- libxml2-dev | - libxml2-dev | ||||
- libxslt-dev | - libxslt-dev | ||||
- python-dev | |||||
- python-setuptools | |||||
- python-pymysql | |||||
- python3-dev | |||||
- python3-setuptools | |||||
- python3-pymysql | |||||
#- which | #- which | ||||
- python-libcloud | |||||
- python-netaddr | |||||
- python3-libcloud | |||||
- python3-netaddr |