Ver código fonte

fixed package versions

master
pai
commit
c9dbea5f56
5 arquivos alterados com 27 adições e 22 exclusões
  1. +9
    -0
      defaults/main.yaml
  2. +2
    -16
      tasks/ansible.yaml
  3. +2
    -3
      tasks/ara.yaml
  4. +12
    -0
      tasks/cleanup.yaml
  5. +2
    -3
      tasks/mitogen.yaml

+ 9
- 0
defaults/main.yaml Ver arquivo

@@ -1,4 +1,13 @@
ansible_version: 5.0.1
ansible_pip_package: ansible

ansible_use_ara: false
ansible_ara_version: 1.5.7
ansible_ara_pip_package: ara

ansible_use_mitogen: false
ansible_mitogen_version: 0.3.0
ansible_mitogen_pip_package: mitogen

ansible_with_ovh_module: false
ansible_use_ssh_pipelining: true

+ 2
- 16
tasks/ansible.yaml Ver arquivo

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

- name: check version of ansible
shell: pip3 show ansible | grep Version | cut -d ' ' -f 2
ignore_errors: true
changed_when: false
register: get_ansible_version

- name: old ansible pip package removed
pip:
name: ansible
state: absent
executable: pip3
when: ansible_installed_version is version('2.10', '<')

- name: ansible pip package
pip:
name: ansible
state: latest
executable: pip3
name: "{{ansible_pip_package}}"
version: "{{ansible_version}}"

+ 2
- 3
tasks/ara.yaml Ver arquivo

@@ -2,9 +2,8 @@

- name: ara pip package
pip:
name: ara
state: present
executable: pip3
name: "{{ansible_ara_pip_package}}"
version: "{{ansible_ara_version}}"

- name: get ara location
shell: python3 -c "import os,ara; print(os.path.dirname(ara.__file__))"


+ 12
- 0
tasks/cleanup.yaml Ver arquivo

@@ -18,3 +18,15 @@
state: absent
executable: pip3
when: not ansible_use_mitogen

- name: check version of ansible
shell: pip3 show ansible | grep Version | cut -d ' ' -f 2
ignore_errors: true
changed_when: false
register: get_ansible_version

- name: old ansible pip package removed
pip:
name: ansible
state: absent
when: ansible_installed_version is version('2.10', '<')

+ 2
- 3
tasks/mitogen.yaml Ver arquivo

@@ -2,9 +2,8 @@

- name: mitogen pip package
pip:
name: mitogen
state: latest
executable: pip3
name: "{{ansible_mitogen_pip_package}}"
version: "{{ansible_mitogen_version}}"

- name: get ansible_mitogen location
shell: python3 -c "import os,ansible_mitogen; print(os.path.dirname(ansible_mitogen.__file__))"


Carregando…
Cancelar
Salvar