Skip to content

Instantly share code, notes, and snippets.

@lxcodes
Created July 29, 2014 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lxcodes/2c46c6e5094966da51bf to your computer and use it in GitHub Desktop.
Save lxcodes/2c46c6e5094966da51bf to your computer and use it in GitHub Desktop.
Conditional Example
{% 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