Created
May 3, 2020 10:29
-
-
Save ssbarnea/c162d9c96efd7d2a52e455892183b649 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
#!/usr/bin/env ansible-playbook | |
- hosts: localhost | |
vars: | |
data: | |
- name: foo | |
when: "2 > 1" | |
- name: bar | |
tasks: | |
- debug: | |
msg: | | |
"E1120: [1;31mNo value for argument!" | |
when: "{{ item.when | default(true) }}" | |
loop: "{{ data }}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment