Skip to content

Commit

Permalink
Merge pull request #108 from MattKobayashi/yancobat
Browse files Browse the repository at this point in the history
Fix missing Ansible collections
  • Loading branch information
MattKobayashi authored Feb 12, 2024
2 parents 97bf15c + f4511c7 commit be389d9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions yancobat/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then ARCH=amd64; elif [ "$TARGETPL
&& addgroup -S ansible && adduser -S ansible -G ansible \
&& mkdir /repo && chown -R ansible /repo \
&& apk --no-cache upgrade \
&& apk add --no-cache ansible-core git yq libssh poetry \
&& ansible-galaxy collection install community.general community.network \
&& ansible-galaxy collection install cisco.ios cisco.iosxr junipernetworks.junos community.routeros vyos.vyos
&& apk add --no-cache ansible-core git yq libssh poetry

USER ansible

RUN ansible-galaxy collection install community.general community.network \
&& ansible-galaxy collection install cisco.ios cisco.iosxr junipernetworks.junos community.routeros vyos.vyos

COPY --chown=ansible --chmod=0744 entrypoint.sh /ansible/entrypoint.sh
COPY --chown=ansible ansible-cron /ansible/crontab/ansible-cron
COPY --chown=ansible yancobat-backup.yaml /ansible/yancobat-backup.yaml
Expand Down

0 comments on commit be389d9

Please sign in to comment.