Skip to content

Instantly share code, notes, and snippets.

@dmsimard
Created January 25, 2019 04: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 dmsimard/de4a1dc51136e73054fb5f3515ac754b to your computer and use it in GitHub Desktop.
Save dmsimard/de4a1dc51136e73054fb5f3515ac754b to your computer and use it in GitHub Desktop.
ara_playbook_label
# 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
ara_playbook_label:
name: "{{ item }}"
state: present
loop:
- 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