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.
30 lines
549 B
YAML
30 lines
549 B
YAML
10 years ago
|
- hosts: localhost
|
||
|
gather_facts: no
|
||
10 years ago
|
vars:
|
||
|
a: "tags"
|
||
|
tags:
|
||
|
- play
|
||
10 years ago
|
tasks:
|
||
|
- block:
|
||
|
- debug: msg="this is the tagged block"
|
||
|
tags:
|
||
|
- block
|
||
10 years ago
|
- include: include.yml
|
||
|
tags:
|
||
|
- include
|
||
10 years ago
|
- 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
|