Skip to content

Instantly share code, notes, and snippets.

@michaeljs1990
Created August 3, 2015 07:42
Show Gist options
  • Save michaeljs1990/42e5527f4d6f52a37a75 to your computer and use it in GitHub Desktop.
Save michaeljs1990/42e5527f4d6f52a37a75 to your computer and use it in GitHub Desktop.
Example
#command line
ansible-playbook playbook.yml -i inventory
[local]
localhost
[different]
localhost
---
- hosts: "*oc*"
tasks:
- name: hello
shell: echo "hi"
- hosts: "different"
tasks:
- name: hello
shell: echo "hi"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment