Ansible based on ubuntu18.04, with pip installed ansible and pyvmomi
1.1K
Fixed Ansible docker for github docker runner
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
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.
You can check the image at Docker hub as xlinux/ansible.
Content type
Image
Digest
Size
290.4 MB
Last updated
over 5 years ago
docker pull xlinux/ansible