Skip to content

Commit

Permalink
add ansible semaphore workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaffen committed Oct 23, 2023
1 parent 913fd5b commit c10151c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tasks/install_collections.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c10151c

Please sign in to comment.