Skip to content

Commit

Permalink
Add collection, fixes ansible#1196
Browse files Browse the repository at this point in the history
  • Loading branch information
liquidat committed Jun 21, 2021
1 parent 403b52c commit 245421f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions roles/control_node/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,21 @@
group: "{{ username }}"
state: directory

# we need a collection to be present on the control node

- name: install community.general collection
command:
cmd: ansible-galaxy collection install -f -p /home/{{ username }}/.ansible/collections/ community.general

- name: fix collection ownership permissions
file:
path: /home/{{ username }}/.ansible/collections
state: directory
owner: {{ username }}
group: {{ username }}
mode: 755
recurse: yes

# This may look redundant, but you can't put these in a loop because the
# ansible_user will not be templated the way you expect when running under
# Tower/AWX
Expand Down

0 comments on commit 245421f

Please sign in to comment.