Created
October 7, 2018 11:55
-
-
Save jwhb/074b0b650437cac9b8fcb8d186531fef to your computer and use it in GitHub Desktop.
Run Ansible via Docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# start ansible container with working directory mounted as /ansible | |
# then run ping on targets from inventory file | |
docker run --rm -v $(pwd):/ansible -it webdevops/ansible:alpine ansible -m ping -i /ansible/inventory all |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment