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.
ansible/test/integration/targets/include_import/tasks/test_import_tasks_tags.yml

24 lines
509 B
YAML

- 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