Skip to content

Instantly share code, notes, and snippets.

@grekko
Last active August 29, 2015 14:07
Show Gist options
  • Save grekko/f283976d2d0413c84c3f to your computer and use it in GitHub Desktop.
Save grekko/f283976d2d0413c84c3f to your computer and use it in GitHub Desktop.
Ansible playbook w/ multiple play includes
---
- hosts: all
remote_user: root
tasks:
- name: Say bar
shell: echo "bar"
---
- hosts: all
remote_user: root
tasks:
- name: Say foo
shell: echo "foo"
---
- hosts: all
remote_user: root
include: play-bar.yml
include: play-foo.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment