mirror of
https://github.com/ansible/awx.git
synced 2026-05-20 15:27:47 -02:30
Remove unnecessary blocks from project update playbook
This commit is contained in:
@@ -180,7 +180,6 @@
|
|||||||
- install_roles
|
- install_roles
|
||||||
- install_collections
|
- install_collections
|
||||||
|
|
||||||
- block:
|
|
||||||
- name: fetch galaxy roles from requirements.(yml/yaml)
|
- name: fetch galaxy roles from requirements.(yml/yaml)
|
||||||
command: >
|
command: >
|
||||||
ansible-galaxy role install -r {{ item }}
|
ansible-galaxy role install -r {{ item }}
|
||||||
@@ -194,12 +193,10 @@
|
|||||||
- "{{project_path|quote}}/roles/requirements.yml"
|
- "{{project_path|quote}}/roles/requirements.yml"
|
||||||
changed_when: "'was installed successfully' in galaxy_result.stdout"
|
changed_when: "'was installed successfully' in galaxy_result.stdout"
|
||||||
environment: "{{ galaxy_task_env }}"
|
environment: "{{ galaxy_task_env }}"
|
||||||
|
|
||||||
when: roles_enabled|bool
|
when: roles_enabled|bool
|
||||||
tags:
|
tags:
|
||||||
- install_roles
|
- install_roles
|
||||||
|
|
||||||
- block:
|
|
||||||
- name: fetch galaxy collections from collections/requirements.(yml/yaml)
|
- name: fetch galaxy collections from collections/requirements.(yml/yaml)
|
||||||
command: >
|
command: >
|
||||||
ansible-galaxy collection install -r {{ item }}
|
ansible-galaxy collection install -r {{ item }}
|
||||||
@@ -215,7 +212,6 @@
|
|||||||
- "{{project_path|quote}}/requirements.yml"
|
- "{{project_path|quote}}/requirements.yml"
|
||||||
changed_when: "'Installing ' in galaxy_collection_result.stdout"
|
changed_when: "'Installing ' in galaxy_collection_result.stdout"
|
||||||
environment: "{{ additional_collections_env | combine(galaxy_task_env) }}"
|
environment: "{{ additional_collections_env | combine(galaxy_task_env) }}"
|
||||||
|
|
||||||
when:
|
when:
|
||||||
- "ansible_version.full is version_compare('2.9', '>=')"
|
- "ansible_version.full is version_compare('2.9', '>=')"
|
||||||
- collections_enabled|bool
|
- collections_enabled|bool
|
||||||
|
|||||||
Reference in New Issue
Block a user