mirror of
https://github.com/ansible/awx.git
synced 2026-03-11 14:39:30 -02:30
Use project verbosity without color for galaxy commands
This commit is contained in:
@@ -126,12 +126,14 @@
|
|||||||
register: doesRequirementsExist
|
register: doesRequirementsExist
|
||||||
|
|
||||||
- name: fetch galaxy roles from requirements.yml
|
- name: fetch galaxy roles from requirements.yml
|
||||||
command: ansible-galaxy install -r requirements.yml -p {{roles_destination|quote}}
|
command: ansible-galaxy install -r requirements.yml -p {{roles_destination|quote}}{{ ' -' + 'v' * ansible_verbosity if ansible_verbosity else '' }}
|
||||||
args:
|
args:
|
||||||
chdir: "{{project_path|quote}}/roles"
|
chdir: "{{project_path|quote}}/roles"
|
||||||
register: galaxy_result
|
register: galaxy_result
|
||||||
when: doesRequirementsExist.stat.exists
|
when: doesRequirementsExist.stat.exists
|
||||||
changed_when: "'was installed successfully' in galaxy_result.stdout"
|
changed_when: "'was installed successfully' in galaxy_result.stdout"
|
||||||
|
environment:
|
||||||
|
ANSIBLE_FORCE_COLOR: False
|
||||||
|
|
||||||
when: roles_enabled|bool
|
when: roles_enabled|bool
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
@@ -142,12 +144,14 @@
|
|||||||
register: doesCollectionRequirementsExist
|
register: doesCollectionRequirementsExist
|
||||||
|
|
||||||
- name: fetch galaxy collections from collections/requirements.yml
|
- name: fetch galaxy collections from collections/requirements.yml
|
||||||
command: ansible-galaxy collection install -r requirements.yml -p {{collections_destination|quote}}
|
command: ansible-galaxy collection install -r requirements.yml -p {{collections_destination|quote}}{{ ' -' + 'v' * ansible_verbosity if ansible_verbosity else '' }}
|
||||||
args:
|
args:
|
||||||
chdir: "{{project_path|quote}}/collections"
|
chdir: "{{project_path|quote}}/collections"
|
||||||
register: galaxy_collection_result
|
register: galaxy_collection_result
|
||||||
when: doesCollectionRequirementsExist.stat.exists
|
when: doesCollectionRequirementsExist.stat.exists
|
||||||
changed_when: "'Installing ' in galaxy_collection_result.stdout"
|
changed_when: "'Installing ' in galaxy_collection_result.stdout"
|
||||||
|
environment:
|
||||||
|
ANSIBLE_FORCE_COLOR: False
|
||||||
|
|
||||||
when: collections_enabled|bool
|
when: collections_enabled|bool
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
|||||||
Reference in New Issue
Block a user