forked from ISTI-ansible-roles/ansible-roles
11 lines
311 B
Django/Jinja
11 lines
311 B
Django/Jinja
# Loop psql_db_data to add multiple databases
|
|
{% if psql_db_data is defined %}
|
|
{% for db in psql_db_data %}
|
|
{% if db.pwd is defined %}
|
|
{% if db.managedb is defined and db.managedb %}
|
|
{{ psql_db_host }}:{{ psql_db_port }}:{{ db.name }}:{{ db.user }}:{{ db.pwd }}
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% endif %}
|