diff --git a/.devcontainer/install-dev-tools.sh b/.devcontainer/install-dev-tools.sh index f28c141..495eba5 100644 --- a/.devcontainer/install-dev-tools.sh +++ b/.devcontainer/install-dev-tools.sh @@ -35,11 +35,11 @@ echo -e "${YELLOW}Installing project dependencies${ENDCOLOR}" echo "" poetry install --no-root -C /workspaces/forge/ansible -# Install ansible dependencies -# echo "" -# echo -e "${YELLOW}Installing ansible dependencies${ENDCOLOR}" -# echo "" -# ansible-galaxy collection install -r /workspaces/forge/setup/ansible/collections/requirements.yml +Install ansible dependencies +echo "" +echo -e "${YELLOW}Installing ansible dependencies${ENDCOLOR}" +echo "" +ansible-galaxy collection install -r /workspaces/forge/ansible/collections/requirements.yml # Finish echo "" diff --git a/ansible/Containerfile b/ansible/Containerfile index eca0058..d5e3689 100644 --- a/ansible/Containerfile +++ b/ansible/Containerfile @@ -19,6 +19,7 @@ COPY . . RUN poetry install --no-root CMD poetry env use .venv/bin/python && \ chmod +x entrypoint.sh +RUN ansible-galaxy collection install -r collections/requirements.yml # Set entrypoint ENTRYPOINT [ "/ansible/entrypoint.sh" ] \ No newline at end of file diff --git a/ansible/collections/requirements.yml b/ansible/collections/requirements.yml new file mode 100644 index 0000000..6e26fdd --- /dev/null +++ b/ansible/collections/requirements.yml @@ -0,0 +1,8 @@ +--- +collections: + - name: ansible.posix + version: 1.5.4 + - name: community.general + version: 8.6.0 + - name: containers.podman + version: 1.13.0