Oefenweb / ansible-fail2ban

Ansible role to set up fail2ban in Debian-like systems
MIT License
117 stars 55 forks source link

[RFR] Replace iteritems to items #45

Closed johackim closed 6 years ago

johackim commented 6 years ago

With ansible 2.2 and python 3.6 I have this error :

"AnsibleUndefinedVariable: 'dict object' has no attribute 'iteritems'"

This PR fix this.

tersmitten commented 6 years ago

Does this also work for python 2? And I'm not sure that Ansible even supports python 3 (yet).

tersmitten commented 6 years ago

Looks like it should work:

https://stackoverflow.com/questions/10458437/what-is-the-difference-between-dict-items-and-dict-iteritems