Skip to content

Commit

Permalink
Install ansible collections
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Berendt <[email protected]>
  • Loading branch information
berendt committed Jul 5, 2024
1 parent df1346a commit a1e2fa6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ COPY --link roles /ansible/roles

COPY --link files/ansible.cfg /etc/ansible/ansible.cfg
COPY --link files/ara.env /ansible/ara.env
COPY --link files/requirements.yml /ansible/requirements.yml
COPY --link files/scripts/* /
COPY --link files/src /src

Expand Down Expand Up @@ -96,6 +97,9 @@ mkdir -p \
/interface \
/share

# install required ansible collections & roles
ansible-galaxy collection install -v -f -r /ansible/requirements.yml -p /usr/share/ansible/collections

# install mitogen ansible plugin
mkdir -p /usr/share/mitogen
tar xzf /mitogen.tar.gz --strip-components=1 -C /usr/share/mitogen
Expand Down
5 changes: 5 additions & 0 deletions files/requirements.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
colletcions:
- name: kubernetes.core
source: https://galaxy.ansible.com
version: '5.0.0'

0 comments on commit a1e2fa6

Please sign in to comment.