Created
July 29, 2014 14:24
-
-
Save lxcodes/2c46c6e5094966da51bf to your computer and use it in GitHub Desktop.
Conditional Example
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
{% if item.password == '' %} | |
password={{ lookup('password', '../../../credentials/mysql/' + inventory_hostname + '/' + item.name + '/' + item.user + '_password length=15') }} | |
{% else %} | |
password={{ item.password }} | |
{% endif; %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment