A lightweight automatically updated and tested multiarch docker image to run Ansible playbooks
50K+
AnsibleA Docker image to run Ansible playbooks. Ansible-lint to test playbooks is also included.
multiarch with support of amd64 and arm64,SBOM) changes,SBOM) attestation added using Syft,Since Ansible version 2.10, the Docker image has only ansible-base without any collection. It could be necessary to install them.
This image includes:
AnsibleExample to run Ansible playbooks in your current directory:
docker run -it --rm -v $(pwd):/ansible jfxs/ansible ansible-playbook playbook.yml
To install collections:
docker run -it --rm -v $(pwd):/ansible jfxs/ansible /bin/sh -c "ansible-galaxy collection install ansible.utils && ansible-playbook playbook.yml"
To test playbooks in your current directory with ansible-lint:
docker run -it --rm -v $(pwd):/ansible jfxs/ansible ansible-lint playbook.yml
Docker latest tag is 2.21.2-001, 2.21, 2 and has:
| Name | Version | Type |
|---|---|---|
| ansible-core | 2.21.2 | python |
| ansible-lint | 26.6.0 | python |
| ca-certificates | 20260611-r0 | apk |
| curl | 8.21.0-r0 | apk |
| go-task | 3.51.1-r0 | apk |
| hvac | 2.4.0 | python |
| jc | 1.25.7 | python |
| jmespath | 1.1.0 | python |
| jq | 1.8.1-r0 | apk |
| netaddr | 1.3.0 | python |
| openssh-client-common | 10.3_p1-r0 | apk |
| openssl | 3.5.7-r0 | apk |
| py3-pip | 26.1.2-r0 | apk |
| pytest-testinfra | 10.2.2 | python |
| python3 | 3.14.5-r0 | apk |
| sshpass | 1.10-r0 | apk |
| yamllint | 1.38.0 | python |
Dockerhub Overview page has the details of the last published image.
Docker tag definition:
Ansible version used,<ansible_version>-<increment>
Example: 2.14.2-001
Cosign public key:
-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEa3yV6+yd/l4zh/tfT6Tx+zn0dhy3
BhFqSad1norLeKSCN2MILv4fZ9GA6ODOlJOw+7vzUvzZVr9IXnxEdjoWJw==
-----END PUBLIC KEY-----
The public key is also available online: https://gitlab.com/op_so/docker/cosign-public-key/-/raw/main/cosign.pub.
To verify an image:
cosign verify --key cosign.pub $IMAGE_URI
To verify and get the SBOM attestation:
cosign verify-attestation --key cosign.pub --type spdxjson $IMAGE_URI | jq '.payload | @base64d | fromjson | .predicate'
This program is free software: you can redistribute it and/or modify it under the terms of the MIT License (MIT). See the LICENSE for details.
Content type
Image
Digest
sha256:04675252e…
Size
169.3 MB
Last updated
7 days ago
docker pull jfxs/ansible