Skip to content

Commit

Permalink
[Ansible] Workaround for Ansible Tower/AWX (#114)
Browse files Browse the repository at this point in the history
[Ansible] Workaround for Ansible Tower/AWX.
Tower/AWX reads only from <root-project-folder>/roles/requirements.yml, see:
ansible/awx#106
ansible/awx#9945

Signed-off-by: Daniele De Lorenzi <daniele.delorenzi@fastnetserv.net>
  • Loading branch information
dark-vex committed Aug 8, 2022
1 parent b4a26ca commit 8de9dd7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ansible/os_updates/collections/requirements.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
collections:
- name: community.general
10 changes: 10 additions & 0 deletions ansible/os_updates/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@
become: yes
gather_facts: yes

pre_tasks:
- name : Install Collections dependencies
shell: ansible-galaxy install -r collections/requirements.yml
delegate_to: 127.0.0.1

- name : Install Roles Dependencies
shell: ansible-galaxy install -r roles/requirements.yml
delegate_to: 127.0.0.1

ansible-galaxy install namespace.role_name
collections:
- community.general

Expand Down

0 comments on commit 8de9dd7

Please sign in to comment.