Sign inSign up

haxorof/ansible-core

By haxorof

•Updated 4 days ago

Ansible Core + additions.

Image
Security
Integration & delivery
0

10K+

haxorof/ansible-core repository overview

⁠Ansible Core + additions

Docker Pulls License CI

Ansible Core with additions.

If you find bugs or got improvements of the container, feel free to submit it here⁠.

This repos stop supporting versions as it gets EOL according to Ansible - Releases and maintenance⁠.

⁠Simple Tags

  • v2.21-almalinux
  • v2.21-alpine
  • v2.21-ubuntu
  • v2.20-almalinux
  • v2.20-alpine
  • v2.20-ubuntu
  • v2.19-almalinux
  • v2.19-alpine
  • v2.19-ubuntu
  • v2.18-almalinux
  • v2.18-alpine
  • v2.18-ubuntu

⁠Shared Tags

  • v2.21, latest-alpine, latest
    • v2.21-alpine
  • v2.20
    • v2.20-alpine
  • v2.19
    • v2.19-alpine
  • v2.18
    • v2.18-alpine
  • latest-almalinux
    • v2.20-almalinux
  • latest-ubuntu
    • v2.20-ubuntu

⁠Additions

⁠Users/Groups

Container will run as user ansible-10000 by default. However, when you build your own image based on this root will be set and you need to set it back yourself to ansible-10000 if you want.

  • ansible-1000
    • uid=1000
    • gid=1000
  • ansible-1001
    • uid=1001
    • gid=1001
  • ansible-10000
    • uid=10000
    • gid=10000

Note! All ansible users will have sudo rights. This is for convenience since some roles etc are not that well implemented.

⁠Packages/Tools
  • docker-cli
  • git
  • openssh
  • sudo
  • gosu

⁠How to use this container

Below assume a playbook.yml file is located in current directory:

# docker run --rm -v ${PWD}:/mnt haxorof/ansible-core

To override the default command set you can just add your own arguments after the images name:

# docker run --rm -v ${PWD}:/mnt haxorof/ansible-core ansible -m setup -c local localhost

⁠How to use Docker CLI with Ansible to target Python container

Start a Python container in a terminal:

# docker run -it --rm --name=target python sh

In a second terminal run the following which will do an Ansible ping to that Python container:

# docker run --rm -v /var/run/docker.sock:/var/run/docker.sock haxorof/ansible-core sh -c "echo 'target ansible_connection=docker' > hosts && ansible -m ping -i hosts all"

Tag summary

Content type

Image

Digest

sha256:ae677060c…

Size

349.1 MB

Last updated

4 days ago

docker pull haxorof/ansible-core