Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# Would create the label if it doesn't exist
# Description is optional but can be provided
# Appends the label to playbook.labels for state.present
# Removes the label from playbook.labels for state.absent
- name: Label this playbook
name: "{{ item }}"
state: present
- pre-run
- "{{ ansible_os_distribution }}"
- "{{ lookup('env','USER') }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.