瀏覽代碼

python 3

master
父節點
當前提交
d55971d60b
共有 6 個文件被更改,包括 39 次插入9 次删除
  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 查看文件

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

+ 2
- 1
tasks/ara.yaml 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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 查看文件

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

- name: ansible ovh module
git:


+ 6
- 6
tasks/setup_Debian.yaml 查看文件

@@ -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

Loading…
取消
儲存