mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
541 B
YAML
23 lines
541 B
YAML
10 years ago
|
|
||
10 years ago
|
- name: verify playbook includes can take parameters
|
||
|
hosts: testhost
|
||
|
tasks:
|
||
|
- assert:
|
||
|
that:
|
||
|
- "parameter1 == 'asdf'"
|
||
|
- "parameter2 == 'jkl'"
|
||
|
|
||
|
- name: verify task include logic
|
||
|
hosts: testhost
|
||
10 years ago
|
gather_facts: True
|
||
|
roles:
|
||
|
- { role: test_includes, tags: test_includes }
|
||
|
tasks:
|
||
|
- include: roles/test_includes/tasks/not_a_role_task.yml
|
||
9 years ago
|
- include: roles/test_includes/tasks/empty.yml
|
||
10 years ago
|
- assert:
|
||
|
that:
|
||
|
- "ca == 33000"
|
||
|
- "cb == 33001"
|
||
|
- "cc == 33002"
|