Public | Automated Build

Last pushed: 2 months ago
Short Description
Ansible docker
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 -v $(pwd):/ansible nar3k/ansible ansible'
alias ansible-playbook='docker run -v $(pwd):/ansible nar3k/ansible ansible-playbook'

and then

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

Docker Pull Command
Owner
nar3k
Source Repository

Comments (0)