Sign inSign up

xlinux/ansible

By xlinux

•Updated over 5 years ago

Ansible based on ubuntu18.04, with pip installed ansible and pyvmomi

Image
0

1.1K

xlinux/ansible repository overview

⁠Ansible docker image

Fixed Ansible docker for github docker runner

⁠Get or update the docker image

Apart from ansible itself (version shown by the command below) it contains also openstacksdk and pyvmomi. Those modules enables the control of ESXi and/or Openstack (including VMWare Integrated Openstack aka VIO).

docker pull xlinux/ansible

⁠Use the image

Elementary use or test the ansible. The command below also removes the container R/W layer after execution.

docker run -it --rm xlinux/ansible

Real use-case would probably look like this:

docker run -it --rm \
    --name ansible \
    -v $PWD:/work \
    -v $HOME/.docker-ansible/etc:/etc/ansible \
    -v $HOME/.docker-ansible/os:/etc/openstack \
    xlinux/ansible \
    ansible-playbook \
    playbook.yaml

In this example openstack and ansible config directories are mapped into the container so the python modules are happy. And also the working directory is set to /work thus you do not have to use path when running the ansible-playbook.

⁠Docker hub

You can check the image at Docker hub as xlinux/ansible⁠.

Tag summary

Content type

Image

Digest

Size

290.4 MB

Last updated

over 5 years ago

docker pull xlinux/ansible