The iteritems dictionary method has been removed in Python 3 and using items() is typically no problem in our case due to the fact that dictionaries are rather small. This fixes #15master
include: | include: | ||||
- logrotate | - logrotate | ||||
{% for key,value in jobs.iteritems() %} | |||||
{% for key,value in jobs.items() %} | |||||
logrotate_{{key}}: | logrotate_{{key}}: | ||||
file.managed: | file.managed: | ||||
- name: {{ logrotate.include_dir }}/{{ key.split("/")[-1] }} | - name: {{ logrotate.include_dir }}/{{ key.split("/")[-1] }} |