Created
November 10, 2016 12:06
-
-
Save pmarques/a98f577908b3ecb57b7bc82d364a3210 to your computer and use it in GitHub Desktop.
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
--- | |
- name: "Always tag shoudld not run if condition fails" | |
hosts: localhost | |
gather_facts: no | |
tasks: | |
- debug: msg="This should run" | |
tags: | |
- always | |
- debug: msg="This should not run {{ undefined_var }}" | |
tags: | |
- always | |
when: no | |
- debug: msg="This should not run {{ item }}" | |
with_items: | |
- "{{ undefined_var }}" | |
tags: | |
- always | |
when: no | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment