Public Repository

Last pushed: a year ago
Short Description
Ansible with a mapped worked dir
Full Description

To make it work with files in some directory use

docker run -v $(pwd):/ansible nar3k/ansible-playbook ansible all -i lab.inv -m raw -a "show version"

I recommend to make an alias from it

alias ansible='docker run -v $(pwd):/ansible nar3k/ansible-playbook ansible'
alias ansible-playbook='docker run -v $(pwd):/ansible nar3k/ansible-playbook ansible-playbook'

and then

ansible all -i lab.inv -m raw -a "show version"

Docker Pull Command