Created
January 15, 2018 13:50
-
-
Save muziyoshiz/49c087ad71ba56f30b2c8880d06eaf08 to your computer and use it in GitHub Desktop.
Example of import_tasks/include_tasks with tags
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Task 0 | |
debug: msg="No tag" | |
- name: Task 1 | |
debug: msg="tag1" | |
tags: [ tag1 ] | |
- name: Task 2 | |
debug: msg="tag2" | |
tags: [ tag2 ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: localhost | |
connection: local | |
tasks: | |
- include: main.yml | |
tags: [ tag1 ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: localhost | |
connection: local | |
tasks: | |
- import_tasks: main.yml | |
tags: [ tag1 ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: localhost | |
connection: local | |
tasks: | |
- include_tasks: main.yml | |
tags: [ tag1 ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment