Sign inSign up

nar3k/ansible

By nar3k

•Updated almost 8 years ago

Ansible docker with network related modules

Image
0

424

nar3k/ansible repository overview

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"

Tag summary

Content type

Image

Digest

Size

148 MB

Last updated

almost 8 years ago

docker pull nar3k/ansible