March 2019
Intermediate to advanced
412 pages
9h 49m
English
Tags can be applied to all the tasks found within a dependency role. This functions much in the same way as tags being applied to included task files, as described earlier in this chapter. The syntax is simple: the tags key can be a single item or a list. To demonstrate, let's further expand our theoretical example by adding some tags:
---
dependencies:
- role: common
simple_var_a: True
simple_var_b: False
tags: common_demo
- role: apache
complex_var:
key1: value1
key2: value2
short_list:
- 8080
- 8081
tags:
- apache_demo
- 8080
- 8181
As with adding tags to the included task files, all the tasks found within a dependency (and any dependency within that hierarchy) will gain the provided tags.
Read now
Unlock full access