Last active
July 22, 2020 00:01
-
-
Save gswallow/9d1f8d4f8b6bb817a2fe3150f7e13342 to your computer and use it in GitHub Desktop.
Ansible tags are a code smell
This file contains hidden or 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
Uh oh!
There was an error while loading. Please reload this page.