[Packages] Preinstall ansible collections
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simon Cornet 2022-05-27 11:58:16 +02:00
parent 5dfc888609
commit 8cd300aec4
3 changed files with 20 additions and 2 deletions

View File

@ -27,5 +27,5 @@ steps:
# tags # tags
tags: tags:
- 'v0.4' - 'v0.5'
- 'latest' - 'latest'

View File

@ -30,3 +30,10 @@ RUN pip3 install --upgrade pip
RUN pip3 install ansible-base==${ANSIBLE_VERSION} RUN pip3 install ansible-base==${ANSIBLE_VERSION}
RUN pip3 install ansible-lint==${ANSIBLE_LINT_VERSION} RUN pip3 install ansible-lint==${ANSIBLE_LINT_VERSION}
RUN pip3 install yamllint==${YAML_LINT_VERSION} RUN pip3 install yamllint==${YAML_LINT_VERSION}
# install ansible collections
RUN ansible-galaxy collection install ansible.posix
RUN ansible-galaxy collection install community.docker
RUN ansible-galaxy collection install community.general
RUN ansible-galaxy collection install community.mysql

View File

@ -1,4 +1,15 @@
[![Build Status](https://ci.simoncor.net/api/badges/siempie/ansible-deployment-container/status.svg)](https://ci.simoncor.net/siempie/ansible-deployment-container) [![Build Status](https://ci.simoncor.net/api/badges/siempie/ansible-deployment-container/status.svg)](https://ci.simoncor.net/siempie/ansible-deployment-container)
# Usage # Usage
Small Alpine container with only ansible, ansible-linter and yamllint. Useful for CI/CD pipelines. Small Alpine container useful for an Ansible linter pipeline. Useful for CI/CD pipelines.
# Preinstalled software
- ansible-base == 2.10.17
- ansible-lint == 5.4.0
- yamllint == 1.26.3
# Ansible collections
- ansible.posix == latest
- community.docker == latest
- community.general == latest
- community.mysql == latest