5775739437
Since samples/ is used for v2 testing, it fits better into the existing test/ structure.
29 lines
549 B
YAML
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
|