Remove deprecated dict.iteritems method
It caused ansible to fail with: fatal: [XXX]: FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: 'dict object' has no attribute 'iteritems'"} This method has been removed in Python3: https://docs.ansible.com/ansible/2.5/dev_guide/testing/sanity/no-dict-iteritems.html
This commit is contained in:
parent
86abb1857e
commit
3f225e7ec7
@ -15,14 +15,14 @@
|
|||||||
server:
|
server:
|
||||||
{% if nsd_server_config is defined %}
|
{% if nsd_server_config is defined %}
|
||||||
# Common configuration
|
# Common configuration
|
||||||
{% for key, value in nsd_server_config.iteritems() -%}
|
{% for key, value in nsd_server_config.items() -%}
|
||||||
{{ expand_list(key, value) }}
|
{{ expand_list(key, value) }}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if nsd_local_server_config is defined %}
|
{% if nsd_local_server_config is defined %}
|
||||||
# Local configuration
|
# Local configuration
|
||||||
{% for key, value in nsd_local_server_config.iteritems() -%}
|
{% for key, value in nsd_local_server_config.items() -%}
|
||||||
{{ expand_list(key, value) }}
|
{{ expand_list(key, value) }}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user