Bladeren bron

python 3

master
bovenliggende
commit
d55971d60b
6 gewijzigde bestanden met toevoegingen van 39 en 9 verwijderingen
  1. +1
    -0
      tasks/ansible.yaml
  2. +2
    -1
      tasks/ara.yaml
  3. +27
    -1
      tasks/cleanup.yaml
  4. +2
    -1
      tasks/mitogen.yaml
  5. +1
    -0
      tasks/ovh_module.yaml
  6. +6
    -6
      tasks/setup_Debian.yaml

+ 1
- 0
tasks/ansible.yaml Bestand weergeven

@@ -4,3 +4,4 @@
pip:
name: ansible
state: latest
executable: pip3

+ 2
- 1
tasks/ara.yaml Bestand weergeven

@@ -4,8 +4,9 @@
pip:
name: ara
state: present
executable: pip3

- 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
changed_when: false

+ 27
- 1
tasks/cleanup.yaml Bestand weergeven

@@ -1,6 +1,6 @@
---

- name: cleanup debian ansible package
- name: make sure debian ansible package is absent
apt:
pkg: ansible
state: absent
@@ -20,15 +20,41 @@
pip:
name: ara
state: absent
executable: pip3
when: not ansible_use_ara

- name: cleanup mitogen pip package
pip:
name: mitogen
state: absent
executable: pip3
when: not ansible_use_mitogen

- name: cleanup ansible ovh module
file:
path: /usr/share/ansible/modules/ovh/
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

+ 2
- 1
tasks/mitogen.yaml Bestand weergeven

@@ -4,8 +4,9 @@
pip:
name: mitogen
state: latest
executable: pip3

- 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
changed_when: false

+ 1
- 0
tasks/ovh_module.yaml Bestand weergeven

@@ -3,6 +3,7 @@
- name: python ovh client
pip:
name: ovh
executable: pip3

- name: ansible ovh module
git:


+ 6
- 6
tasks/setup_Debian.yaml Bestand weergeven

@@ -7,16 +7,16 @@
- ipv6calc
- uuid
- git
- python-jmespath
- python3-jmespath
# ara required_packages:
- gcc
- libffi-dev
- libssl-dev
- libxml2-dev
- libxslt-dev
- python-dev
- python-setuptools
- python-pymysql
- python3-dev
- python3-setuptools
- python3-pymysql
#- which
- python-libcloud
- python-netaddr
- python3-libcloud
- python3-netaddr

Laden…
Annuleren
Opslaan