Home condition template in ansible
Reply: 0

condition template in ansible

user341
1#
user341 Published in June 23, 2018, 5:28 pm

I have this template (set_ip.j2):

{% if '{{ansible_env.SSH_CONNECTION.split(' ')[2]}}' == '{{ ip_ssh }}' %}
   address = {{ ip_db }}
   name='db1'
{% endif %}

but this condition not work! I want address and name set by this value in the config file.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.608726 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO