Public | Automated Build

Last pushed: 4 months ago
Short Description
Ansible docker with network related modules
Full Description

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"

Docker Pull Command
Source Repository