소스 검색

fixed package versions

master
부모
커밋
c9dbea5f56
5개의 변경된 파일27개의 추가작업 그리고 22개의 파일을 삭제
  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 파일 보기

@@ -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 파일 보기

@@ -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 파일 보기

@@ -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 파일 보기

@@ -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 파일 보기

@@ -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__))"


불러오는 중...
취소
저장