This image allows you to run Ansible from a container.
1.2K
This image allows you to run Ansible from a container.
docker build -t ansible:1.0.0 .
Before running the container you need to be authenticated with the GitLab Container Registry.
Container has the following conventions:
-v /path/to/key:/tmp/id_rsa-v /path/to/password/file:/tmp/pass-v /path/to/ansible/code:/ansibleExamples:
docker run --rm -it \
-v "$(pwd):/ansible" \
-v "/root/.ssh/secret_key:/tmp/id_rsa" \
wurdum/ansible ansible all -m ping
docker run --rm -it \
-v "$(pwd):/ansible" \
-v "/root/.ssh/secret_key:/tmp/id_rsa" \
wurdum/ansible ansible-playbook ksqldb.yml
docker run --rm -it \
-v "$(pwd):/ansible" \
-v "$(pwd)/.vault-pass:/tmp/pass" \
-v "/root/.ssh/secret_key:/tmp/id_rsa" \
wurdum/ansible ansible-playbook lt.yml
Content type
Image
Digest
sha256:4cf6a3dcf…
Size
227.8 MB
Last updated
over 3 years ago
docker pull wurdum/ansible