Run Ansible in a Linux container.
1.3K
This Docker image allows to run Ansible from a Linux container. It supports Linux, Windows and MacOS target hosts.
Mount the ansible folder containing:
ansible.cfg: Ansible default configurationhosts: Hosts inventoryplaybook.yml: Ansible playbookand execute the ansible-playbook command:
docker run --rm -v $PWD/ansible:/etc/ansible ansible-linux-docker:latest ansible-playbook /etc/ansible/playbook.yml -i /etc/ansible/hosts
Mount the ansible folder and run the container interactively:
docker run --rm -v $PWD/ansible:/etc/ansible -ti ansible-linux-docker:latest bash
Content type
Image
Digest
sha256:0f7e9a264…
Size
241.1 MB
Last updated
over 3 years ago
docker pull peco602/ansible-linux-docker