From c10151c7c8a81e2785de7299a02355c821bc723e Mon Sep 17 00:00:00 2001 From: Robert Waffen Date: Mon, 23 Oct 2023 15:51:51 +0200 Subject: [PATCH] add ansible semaphore workaround --- tasks/install_collections.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tasks/install_collections.yml diff --git a/tasks/install_collections.yml b/tasks/install_collections.yml new file mode 100644 index 0000000..d349c66 --- /dev/null +++ b/tasks/install_collections.yml @@ -0,0 +1,17 @@ +--- +# workaround for ansible semaphore +# usage for a playobook from the playbooks directory: +# +# - hosts: localhost +# name: "Dummy plug on localhost" +# gather_facts: false +# connection: local +# tasks: +# - name: "Install collections" +# ansible.builtin.import_tasks: +# file: "../tasks/install_collections.yml" + +- name: Install collections + ansible.builtin.command: "ansible-galaxy collection install -r ../collections/requirements.yml" + register: collections_install + changed_when: collections_install.rc != 0