From 3f2bb5d057aec59972887734410fe67af9748262 Mon Sep 17 00:00:00 2001 From: Craig Brandt <42829306+craig-br@users.noreply.github.com> Date: Mon, 2 Oct 2023 17:45:24 +0100 Subject: [PATCH] Galaxy BG Role download workaround --- .../files/security_requirements.yml | 8 ++++++++ roles/workshop_check_setup/tasks/security.yml | 16 +--------------- 2 files changed, 9 insertions(+), 15 deletions(-) create mode 100644 roles/workshop_check_setup/files/security_requirements.yml diff --git a/roles/workshop_check_setup/files/security_requirements.yml b/roles/workshop_check_setup/files/security_requirements.yml new file mode 100644 index 000000000..0563f8434 --- /dev/null +++ b/roles/workshop_check_setup/files/security_requirements.yml @@ -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 \ No newline at end of file diff --git a/roles/workshop_check_setup/tasks/security.yml b/roles/workshop_check_setup/tasks/security.yml index a9ed7b92e..862a97ef0 100644 --- a/roles/workshop_check_setup/tasks/security.yml +++ b/roles/workshop_check_setup/tasks/security.yml @@ -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