Skip to content

Instantly share code, notes, and snippets.

@elleryq
Created November 12, 2015 06:51
Show Gist options
  • Save elleryq/73210dae767f6b4a2d8a to your computer and use it in GitHub Desktop.
Save elleryq/73210dae767f6b4a2d8a to your computer and use it in GitHub Desktop.
Testing ansible playbook include functionality.
---
- name: Provision servers
hosts: 127.0.0.1
connection: local
tasks:
- name: add host
add_host: hostname=127.0.0.1 groupname=xmpp
- include: playbook2.yml passed_to_me='Hello, John'
- name: Configure provisioned servers
hosts: xmpp
user: ubuntu
connection: local
tasks:
- name: display
debug: var=passed_to_me
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment