http://bugzilla.opensuse.org/show_bug.cgi?id=1109957 Bug ID: 1109957 Summary: ansible firewalld module fails Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.0 Hardware: x86-64 OS: SLES 10 Status: NEW Severity: Normal Priority: P5 - None Component: Other Assignee: bnc-team-screening@forge.provo.novell.com Reporter: stschoettl@web.de QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Created attachment 784433 --> http://bugzilla.opensuse.org/attachment.cgi?id=784433&action=edit Example ansible playbook to reproduce the issue The firewalld module of ansible fails with "An exception occurred during task execution. To see the full traceback, use -vvv. The error was: NameError: global name 'fw_offline' is not defined". The patch from https://github.com/ansible/ansible/issues/38161 (backport for ansible 2.5) is not sufficient. From my first analysis /usr/lib/python2.7/site-packages/ansible/modules/system/firewalld.py tries "import firewall.config" which fails because firewall.config is only available for python3 (at least I cannot find it). I am attaching a simple example to reproduce (ansible-playbook firewall.yml). rpm -q ansible ansible-2.5.1-lp150.1.1.noarch cat /etc/os-release NAME="openSUSE Leap" VERSION="15.0" ID="opensuse-leap" ID_LIKE="suse opensuse" VERSION_ID="15.0" PRETTY_NAME="openSUSE Leap 15.0" ANSI_COLOR="0;32" CPE_NAME="cpe:/o:opensuse:leap:15.0" BUG_REPORT_URL="https://bugs.opensuse.org" HOME_URL="https://www.opensuse.org/" -- You are receiving this mail because: You are on the CC list for the bug.