ansible/test/samples/test_tags.yml
Dag Wieers 5775739437 Moving samples/ out of the root into test/
Since samples/ is used for v2 testing, it fits better into the existing test/ structure.
2016-03-11 21:59:06 +01:00

29 lines
549 B
YAML

- hosts: localhost
gather_facts: no
vars:
a: "tags"
tags:
- play
tasks:
- block:
- debug: msg="this is the tagged block"
tags:
- block
- include: include.yml
tags:
- include
- block:
- debug: msg="tagged debug from second block"
tags:
- tag1
- fail:
tags:
- tag1
rescue:
- debug: msg="tagged rescue from second block"
tags:
- rescue_tag
always:
- debug: msg="tagged always from second block"
tags:
- always_tag