FS#52267 - Ansible package is running on python 3 which breaks some uncompatible modules (like ufw)
Attached to Project:
Community Packages
Opened by Shahin Azad (shahinism) - Sunday, 25 December 2016, 16:58 GMT
Last edited by Doug Newgard (Scimmia) - Sunday, 25 December 2016, 17:03 GMT
Opened by Shahin Azad (shahinism) - Sunday, 25 December 2016, 16:58 GMT
Last edited by Doug Newgard (Scimmia) - Sunday, 25 December 2016, 17:03 GMT
|
Details
Description:
Some Ansible modules are not developed using python3 compatible syntax and currently running ansible on python3 will break them with errors like: FAILED! => { "changed": false, "failed": true, "invocation": { "module_name": "ufw" }, "module_stderr": "Traceback (most recent call last):\n File \"/tmp/ansible_bl5vil0y/ansible_module_ufw.py\", line 296, in <module>\n main()\n File \"/tmp/ansible_bl5vil0y/ansible_module_ufw.py\", line 249, in main\n for (command, value) in commands.iteritems():\nAttributeError: 'dict' object has no attribute 'iteritems'\n$ } Additional info: * package version(s) ➜ ansible ansible --version ansible 2.2.0.0 config file = /home/shahin/Workspace/Experiment/ansible/ansible.cfg configured module search path = Default w/o overrides ➜ ansible python --version Python 3.5.2 ➜ ansible python2 --version Python 2.7.12 * config and/or log files etc. Steps to reproduce: Create and execute following playbook to see the failure: - hosts: all become: true tasks: - ufw: logging: on |
This task depends upon
Closed by Doug Newgard (Scimmia)
Sunday, 25 December 2016, 17:03 GMT
Reason for closing: Not a bug
Additional comments about closing: Configuration issue. Read the wiki or the upstream faq.
Sunday, 25 December 2016, 17:03 GMT
Reason for closing: Not a bug
Additional comments about closing: Configuration issue. Read the wiki or the upstream faq.