Created
January 25, 2019 04:01
-
-
Save dmsimard/de4a1dc51136e73054fb5f3515ac754b to your computer and use it in GitHub Desktop.
ara_playbook_label
This file contains 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
# 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