2014-07-26 14:37:55 +00:00
|
|
|
|
2014-07-26 14:41:23 +00:00
|
|
|
- name: verify playbook includes can take parameters
|
|
|
|
hosts: testhost
|
|
|
|
tasks:
|
|
|
|
- assert:
|
|
|
|
that:
|
|
|
|
- "parameter1 == 'asdf'"
|
|
|
|
- "parameter2 == 'jkl'"
|
|
|
|
|
|
|
|
- name: verify task include logic
|
|
|
|
hosts: testhost
|
2014-07-26 14:37:55 +00:00
|
|
|
gather_facts: True
|
|
|
|
roles:
|
|
|
|
- { role: test_includes, tags: test_includes }
|
|
|
|
tasks:
|
|
|
|
- include: roles/test_includes/tasks/not_a_role_task.yml
|
2015-07-14 16:05:20 +00:00
|
|
|
- include: roles/test_includes/tasks/empty.yml
|
2014-07-26 14:37:55 +00:00
|
|
|
- assert:
|
|
|
|
that:
|
|
|
|
- "ca == 33000"
|
|
|
|
- "cb == 33001"
|
|
|
|
- "cc == 33002"
|