Skip to content

Instantly share code, notes, and snippets.

@pollosp
Created February 8, 2017 18:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pollosp/a5d571d75a1617251700c7e20a76fda2 to your computer and use it in GitHub Desktop.
Save pollosp/a5d571d75a1617251700c7e20a76fda2 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "testhost ansible_connection=docker ansible_host=fb99f018ea3f" > inventory
echo "- hosts: testhost" > playbook.yml
echo " tasks:" >> playbook.yml
echo " - name: host is reachable" >> playbook.yml
echo " ping:" >> playbook.yml
ansible-playbook -vvv -i inventory playbook.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment