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