Last active
February 10, 2019 14:16
-
-
Save constrict0r/cb1fdec3cd791af31832824fc571316d to your computer and use it in GitHub Desktop.
Verify ansible variable is defined, is setted and is not empty.
This file contains hidden or 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: Hello when you exists. | |
debug: | |
msg: Hello, you exist. | |
when: not ( | |
(you is undefined) | |
or | |
(you is none) | |
or | |
(you | trim == '') | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment