openstack_hosts role uses global_environment_variable for creating its environment.j2. If the variable is not defined the templating will fail. This should fix it. Change-Id: I891e99fd624589ee36d6ce4892c835fa5ece9671
11 lines
309 B
Django/Jinja
11 lines
309 B
Django/Jinja
# {{ ansible_managed }}
|
|
|
|
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
|
|
{% if global_environment_variables is defined %}
|
|
{% for key, value in global_environment_variables.iteritems() %}
|
|
{% if value %}
|
|
{{ key }}={{ value }}
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% endif %}
|