blob: 3b1d68fcadedb4ed60d9585bf80abc55cf43c436 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
- name: Test import_tasks using tags
hosts: testhost
tasks:
- name: Import tasks1.yml
import_tasks: tasks1.yml
- name: Import tasks4.yml using tag on import task
import_tasks: tasks4.yml
tags:
- canary1
- name: Import tasks2.yml
import_tasks: tasks2.yml
- name: Assert that appropriate tasks were run
assert:
that:
- set_in_tasks1
- set_in_tasks4
- set_in_tasks2 is not defined
tags:
- validate
|