From 5ff1fde6d6a4183a6d1ab333e664ba1d5d071804 Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Fri, 5 Jul 2024 21:59:34 +0200 Subject: [PATCH] Install ansible collections Signed-off-by: Christian Berendt --- Containerfile | 4 ++++ files/requirements.yml | 5 +++++ 2 files changed, 9 insertions(+) create mode 100644 files/requirements.yml diff --git a/Containerfile b/Containerfile index 21ffece..23eab9d 100644 --- a/Containerfile +++ b/Containerfile @@ -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 @@ -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 diff --git a/files/requirements.yml b/files/requirements.yml new file mode 100644 index 0000000..5b4a436 --- /dev/null +++ b/files/requirements.yml @@ -0,0 +1,5 @@ +--- +collections: + - name: kubernetes.core + source: https://galaxy.ansible.com + version: '5.0.0'