-
-
Save mister2d/18e6ca9e89f003755d08d1be80cb3ad7 to your computer and use it in GitHub Desktop.
Ansible tags are a code smell
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 | |
vars: | |
ansible_connection: local | |
tasks: | |
- name: demo an untagged task | |
debug: | |
msg: I am an untagged task | |
- name: demo a normal tagged task | |
debug: | |
msg: I am a tagged task | |
tags: | |
- normal | |
- name: demo a never-tagged task | |
debug: | |
msg: I am a never-tagged task | |
tags: | |
- never | |
- run-never | |
- name: demo an always-tagged task | |
debug: | |
msg: I am an always-tagged task | |
tags: | |
- always | |
- exclude-always |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment