Skip to content

Commit

Permalink
Merge pull request #2043 from craig-br/bug-security-roles
Browse files Browse the repository at this point in the history
Galaxy NG Role download workaround
  • Loading branch information
craig-br authored Oct 2, 2023
2 parents 172aac4 + 3f2bb5d commit e39fa49
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
8 changes: 8 additions & 0 deletions roles/workshop_check_setup/files/security_requirements.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
roles:
- name: ansible_security.ids_config
src: https://github.com/ansible-security/ids_config
- name: ansible_security.ids_install
src: https://github.com/ansible-security/ids_install
- name: geerlingguy.repo-epel
src: https://github.com/geerlingguy/ansible-role-repo-epel
16 changes: 1 addition & 15 deletions roles/workshop_check_setup/tasks/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,6 @@
- name: Install required roles
community.general.ansible_galaxy_install:
type: role
name: "{{ item }}"
requirements_file: "{{ role_path }}/files/security_requirements.yml"
dest: ./workshop_specific/roles/
async: 600
poll: 0
loop:
- 'geerlingguy.repo-epel'
- 'ansible_security.ids_config'
- 'ansible_security.ids_install'
register: required_role_loop_out

- name: Install required roles | Async
ansible.builtin.async_status:
jid: "{{ item['ansible_job_id'] }}"
loop: "{{ required_role_loop_out['results'] }}"
register: job_result
until: job_result.finished
retries: 30

0 comments on commit e39fa49

Please sign in to comment.