Skip to content

Instantly share code, notes, and snippets.

@mister2d
Forked from gswallow/site.yml
Created July 22, 2020 00:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mister2d/18e6ca9e89f003755d08d1be80cb3ad7 to your computer and use it in GitHub Desktop.
Save mister2d/18e6ca9e89f003755d08d1be80cb3ad7 to your computer and use it in GitHub Desktop.
Ansible tags are a code smell
---
- 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