Skip to content

Commit

Permalink
fix(ci): add ansible collections
Browse files Browse the repository at this point in the history
  • Loading branch information
jobcespedes committed Mar 29, 2024
1 parent d380742 commit 6a1e50e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ RUN echo "Build tools..." && \
$CTR_PIP molecule==$MOLECULE_VERSION && \
echo "Installing aditional python tools..." && \
$CTR_PIP yamllint ansible-lint cryptography pywinrm docker git-semver commitizen jmespath && \
echo "Installing ansible collections..." && \
ansible-galaxy collection install {{ ansible_collections | join(' ') }} && \
echo "Cleaning..." && \
apk del build-dependencies && \
rm -rf /var/cache/apk/* && \
Expand Down
2 changes: 2 additions & 0 deletions .ansible-ci/files/templated_contexts/ansible/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ RUN echo "Build tools..." && \
$CTR_PIP molecule==$MOLECULE_VERSION && \
echo "Installing other pip tools..." && \
$CTR_PIP $CTR_PIP_EXTRA && \
echo "Installing ansible collections..." && \
ansible-galaxy collection install {{ ansible_collections | join(' ') }} && \
echo "Cleaning..." && \
$CTR_PKG_MGM remove -y python3-devel gcc libffi-devel && \
$CTR_PKG_MGM clean all && \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ image_ansible_version: '2.15.*'
molecule_version: '5.1.*'
docker_version: '26-dind'

# ansible collections
ansible_collections:
- ansible.posix
- community.general
- community.docker

# ci
prepare_image_task: ansible-ci

Expand Down
2 changes: 2 additions & 0 deletions .ansible-ci/requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ collections:
version: "1.5.0"
- name: community.docker
version: "3.8.1"
- name: community.general
version: '>=7.0.0'

0 comments on commit 6a1e50e

Please sign in to comment.