summaryrefslogtreecommitdiff
path: root/docs/docsite/rst/playbooks_tags.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/docsite/rst/playbooks_tags.rst')
-rw-r--r--docs/docsite/rst/playbooks_tags.rst9
1 files changed, 7 insertions, 2 deletions
diff --git a/docs/docsite/rst/playbooks_tags.rst b/docs/docsite/rst/playbooks_tags.rst
index d8dac98409..0867eaa5bd 100644
--- a/docs/docsite/rst/playbooks_tags.rst
+++ b/docs/docsite/rst/playbooks_tags.rst
@@ -80,9 +80,14 @@ You may also apply tags to roles::
roles:
- { role: webserver, port: 5000, tags: [ 'web', 'foo' ] }
-And include statements::
+And import/include statements::
- - include: foo.yml
+ - import_tasks: foo.yml
+ tags: [web,foo]
+
+or::
+
+ - include_tasks: foo.yml
tags: [web,foo]
All of these apply the specified tags to EACH task inside the play, included