From 8cd300aec49dabcffe0d92f38d8a309b49230101 Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Fri, 27 May 2022 11:58:16 +0200 Subject: [PATCH] [Packages] Preinstall ansible collections --- .drone.yml | 2 +- Dockerfile.linux.amd64 | 7 +++++++ README.md | 13 ++++++++++++- 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 83e7830..b214c01 100644 --- a/.drone.yml +++ b/.drone.yml @@ -27,5 +27,5 @@ steps: # tags tags: - - 'v0.4' + - 'v0.5' - 'latest' diff --git a/Dockerfile.linux.amd64 b/Dockerfile.linux.amd64 index 2355224..708d0d0 100644 --- a/Dockerfile.linux.amd64 +++ b/Dockerfile.linux.amd64 @@ -30,3 +30,10 @@ RUN pip3 install --upgrade pip RUN pip3 install ansible-base==${ANSIBLE_VERSION} RUN pip3 install ansible-lint==${ANSIBLE_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 diff --git a/README.md b/README.md index fd40a2e..6a4215a 100644 --- a/README.md +++ b/README.md @@ -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) # 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