Skip to content

Instantly share code, notes, and snippets.

@mister2d
Forked from gswallow/site.yml
Created July 22, 2020 00:01
Show Gist options
  • 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