Filter tasks based on tags during iterator setup in v2

This commit is contained in:
James Cammarata
2015-04-15 01:10:24 -05:00
parent 96a7d85b61
commit 02e7385002
5 changed files with 52 additions and 7 deletions

22
v2/samples/test_tags.yml Normal file
View File

@@ -0,0 +1,22 @@
- hosts: localhost
gather_facts: no
tasks:
- block:
- debug: msg="this is the tagged block"
tags:
- block
- 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