Ansible docker with network related modules
424
To make it work with files in some directory map /ansible volume to required volume
docker run -v $(pwd):/ansible nar3k/ansible ansible all -i lab.inv -m raw -a "show version"
I recommend to make an alias from it
alias ansible='docker run --net=host -v $(pwd):/ansible nar3k/ansible ansible' alias ansible-playbook='docker run --net=host -v $(pwd):/ansible nar3k/ansible ansible-playbook'
and then
ansible all -i lab.inv -m raw -a "show version"
Content type
Image
Digest
Size
148 MB
Last updated
almost 8 years ago
docker pull nar3k/ansible