Sign inSign up

gwerlas/ansible

By gwerlas

Updated about 6 hours ago

Container image with Ansible and clients for Docker, Podman and OpenStack

Image
Integration & delivery
0

10K+

gwerlas/ansible repository overview

Ansible

Container image with Ansible and CLI for Docker, Libvirt, Podman and OpenStack.

GitLab Project : yoanncolin/container-images/ansible.

Tags

Check end of life dates before chosing your version :

VersionBase imageRebuildTagsSource
14gwerlas/openstack-client:gazpachoWeekly14.0.0, 2.21.0, 14.0, 2.21, 14, 2, 14.0.0-alpine, 2.21.0-alpine, 14.0-alpine, 2.21-alpine, 14-alpine, 2-alpine, alpine, latestDockerfile
14debian:forkyWeekly14.0.0-debian, 2.21.2-debian, 14.0-debian, 2.21-debian, 14-debian, 2-debian, debianDockerfile
13gwerlas/openstack-client:flamingoMonthly13.8.0, 2.20.8, 13.8, 2.20, 13, 13.8.0-alpine, 2.20.8-alpine, 13.8-alpine, 2.20-alpine, 13-alpineDockerfile
12gwerlas/openstack-client:flamingoMonthly12.3.0, 2.19.12, 12.3, 2.19, 12, 12.3.0-alpine, 2.19.12-alpine, 12.3-alpine, 2.19-alpine, 12-alpineDockerfile

Software versions

Key tools embedded in each actively rebuilt image :

Tool14131214 (debian)
ansible14.0.013.8.012.3.014.0.0
ansible-core2.21.02.20.82.19.122.21.2
helm4.2.23.19.03.19.04.2.4
kubectl1.36.11.34.21.34.21.37.0
podman5.8.65.7.05.7.05.8.6
docker29.5.329.5.229.5.228.5.2
openstack9.0.08.2.08.2.09.0.0
openssl3.5.83.5.73.5.73.6.3
git2.54.02.52.02.52.02.53.0
java21.0.1221.0.1221.0.1225.0.4

More details about the embedded software with :

docker run --rm -t gwerlas/ansible ansible-playbook versions.yml

Usage

Simple usages

docker run gwerlas/ansible ansible --version
docker run gwerlas/ansible ansible-galaxy collection list

The container runs as the build user (non-root) inherited from the gwerlas/openstack-client image. When mounting a local directory, make sure it is readable and writable by that user, or pass your own UID/GID. The default working directory is /home/build/work.

Installing your role and running a playbook :

docker run \
  -v $PWD:/home/build/work \
  gwerlas/ansible \
  ansible-galaxy collection install -r requirements.yml
docker run --rm -t \
  -v $HOME/.ansible:/home/build/.ansible \
  -v $PWD:/home/build/work \
  gwerlas/ansible \
  ansible-playbook playbook.yml

With Docker, mounting the libvirt or the container socket :

docker run \
  -v $HOME/.ansible:/home/build/.ansible \
  -v $PWD:$PWD -w $PWD \
  -v /run/libvirt:/run/libvirt \
  gwerlas/ansible ...

docker run \
  -v $HOME/.ansible:/home/build/.ansible \
  -v $PWD:/home/build/work \
  -v /run/docker.sock:/run/docker.sock \
  gwerlas/ansible ...

With rootless Podman :

systemctl start --user podman.service
podman run \
  --userns=keep-id \
  -v $HOME/.ansible:/home/build/.ansible \
  -v $PWD:/home/build/work \
  -v $XDG_RUNTIME_DIR/podman/podman.sock:/run/docker.sock \
  gwerlas/ansible ...

Edit an Ansible Vault file (with nano by default, or set EDITOR=vim) :

docker run --rm -ti \
  -e EDITOR=nano \
  -v <my-dir>:/work -w /work \
  gwerlas/ansible \
  ansible-vault edit <my-vault-file>.yml

Builts in

To make some Ansible modules usable, we embed some system tools and python modules.

System tools
  • buildah
  • docker
  • git
  • goss
  • helm
  • kubectl
  • openjdk
  • openstack
  • openssl
  • podman
  • rsync
  • ssh
  • sshpass
  • virt-install
  • wget
  • xz
  • yq
  • zip
Python modules
  • cryptography
  • gitlab
  • jmespath
  • kubernetes
  • netaddr
  • netifaces
  • passlib
  • psycopg2 (PostgreSQL client)
  • xmltodict
Collections
  • amazon.aws
  • ansible._protomatter
  • ansible.mysql
  • ansible.netcommon
  • ansible.posix
  • ansible.utils
  • ansible.windows
  • arista.eos
  • azure.azcollection
  • check_point.mgmt
  • chocolatey.chocolatey
  • cisco.aci
  • cisco.intersight
  • cisco.ios
  • cisco.iosxr
  • cisco.meraki
  • cisco.mso
  • cisco.nxos
  • cisco.ucs
  • cloudscale_ch.cloud
  • community.aws
  • community.ciscosmb
  • community.clickhouse
  • community.crypto
  • community.dns
  • community.docker
  • community.general
  • community.grafana
  • community.hashi_vault
  • community.hrobot
  • community.library_inventory_filtering_v1
  • community.libvirt
  • community.mongodb
  • community.mysql
  • community.okd
  • community.postgresql
  • community.proxmox
  • community.proxysql
  • community.rabbitmq
  • community.routeros
  • community.sap_libs
  • community.sops
  • community.vmware
  • community.windows
  • community.zabbix
  • containers.podman
  • cyberark.conjur
  • cyberark.pas
  • dellemc.enterprise_sonic
  • dellemc.openmanage
  • dellemc.powerflex
  • dellemc.unity
  • f5networks.f5_modules
  • fortinet.fortimanager
  • fortinet.fortios
  • google.cloud
  • grafana.grafana
  • graphiant.naas
  • hetzner.hcloud
  • hitachivantara.vspone_block
  • hitachivantara.vspone_object
  • ibm.storage_virtualize
  • ieisystem.inmanage
  • infinidat.infinibox
  • infoblox.nios_modules
  • inspur.ispim
  • kaytus.ksmanage
  • kubernetes.core
  • kubevirt.core
  • lowlydba.sqlserver
  • microsoft.ad
  • microsoft.iis
  • mnussbaum.ansible_yay
  • netapp.cloudmanager
  • netapp.ontap
  • netapp.storagegrid
  • netapp_eseries.santricity
  • netbox.netbox
  • ngine_io.cloudstack
  • openstack.cloud
  • ovirt.ovirt
  • pcg.alpaca_operator
  • purestorage.flasharray
  • purestorage.flashblade
  • ravendb.ravendb
  • splunk.es
  • telekom_mms.icinga_director
  • theforeman.foreman
  • vmware.vmware
  • vmware.vmware_rest
  • vultr.cloud
  • vyos.vyos
  • wti.remote

License

BSD 3-Clause License.

Tag summary

Content type

Image

Digest

sha256:b6a91e816

Size

517.1 MB

Last updated

7 days ago

docker pull gwerlas/ansible