mirror of
https://github.com/ansible/awx.git
synced 2026-05-15 21:37:42 -02:30
collections/requirements.yml support
* just like we support ansible-galaxy role install, support ansible-galaxy collection install
This commit is contained in:
@@ -135,3 +135,18 @@
|
||||
|
||||
when: roles_enabled|bool
|
||||
delegate_to: localhost
|
||||
|
||||
- block:
|
||||
# TODO: don't run this if ansible verison doens't support collections
|
||||
- name: detect collections/requirements.yml
|
||||
stat: path={{project_path|quote}}/collections/requirements.yml
|
||||
register: doesCollectionRequirementsExist
|
||||
|
||||
- name: fetch galaxy collections from collections/requirements.yml
|
||||
command: ansible-galaxy collection install -r requirements.yml -p {{collections_destination|quote}}
|
||||
args:
|
||||
chdir: "{{project_path|quote}}/collections"
|
||||
register: galaxy_collection_result
|
||||
|
||||
when: collections_enabled|bool
|
||||
delegate_to: localhost
|
||||
|
||||
Reference in New Issue
Block a user