ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmp5p1nrbz_ executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_purge_config.yml *********************************************** 1 plays in /tmp/tmp_kqcmyuy/tests/tests_purge_config.yml PLAY [Test that old config can be purged idempotently] ************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp_kqcmyuy/tests/tests_purge_config.yml:1 Tuesday 14 June 2022 20:08:29 +0000 (0:00:00.013) 0:00:00.013 ********** ok: [/cache/centos-7.qcow2c.snap] META: ran handlers TASK [Start from a clean slate] ************************************************ task path: /tmp/tmp_kqcmyuy/tests/tests_purge_config.yml:26 Tuesday 14 June 2022 20:08:30 +0000 (0:00:01.005) 0:00:01.019 ********** TASK [linux-system-roles.firewall : include_tasks] ***************************** task path: /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/main.yml:1 Tuesday 14 June 2022 20:08:30 +0000 (0:00:00.037) 0:00:01.056 ********** included: /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml for /cache/centos-7.qcow2c.snap TASK [linux-system-roles.firewall : Ensure ansible_facts used by role] ********* task path: /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Tuesday 14 June 2022 20:08:30 +0000 (0:00:00.027) 0:00:01.084 ********** ok: [/cache/centos-7.qcow2c.snap] TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 Tuesday 14 June 2022 20:08:30 +0000 (0:00:00.430) 0:00:01.515 ********** ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "rc": 0, "results": [ "firewalld-0.6.3-13.el7_9.noarch providing firewalld is already installed" ] } TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Tuesday 14 June 2022 20:08:31 +0000 (0:00:00.673) 0:00:02.188 ********** ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "rc": 0, "results": [ "python-firewall-0.6.3-13.el7_9.noarch providing python-firewall is already installed" ] } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Tuesday 14 June 2022 20:08:32 +0000 (0:00:00.519) 0:00:02.708 ********** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Tuesday 14 June 2022 20:08:32 +0000 (0:00:00.025) 0:00:02.734 ********** ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2022-06-14 20:08:15 UTC", "ActiveEnterTimestampMonotonic": "3688086", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "polkit.service dbus.service basic.target system.slice", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-06-14 20:08:14 UTC", "AssertTimestampMonotonic": "3359476", "Before": "network-pre.target shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2022-06-14 20:08:14 UTC", "ConditionTimestampMonotonic": "3359476", "Conflicts": "shutdown.target ipset.service ip6tables.service iptables.service ebtables.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "EnvironmentFile": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "656", "ExecMainStartTimestamp": "Tue 2022-06-14 20:08:14 UTC", "ExecMainStartTimestampMonotonic": "3360467", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; ignore_errors=no ; start_time=[Tue 2022-06-14 20:08:14 UTC] ; stop_time=[n/a] ; pid=656 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Tue 2022-06-14 20:08:14 UTC", "InactiveExitTimestampMonotonic": "3360511", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "7154", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "7154", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "656", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "basic.target system.slice", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogTimestamp": "Tue 2022-06-14 20:08:15 UTC", "WatchdogTimestampMonotonic": "3688018", "WatchdogUSec": "0" } } TASK [linux-system-roles.firewall : Check if previous replaced is defined] ***** task path: /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/main.yml:9 Tuesday 14 June 2022 20:08:32 +0000 (0:00:00.610) 0:00:03.344 ********** ok: [/cache/centos-7.qcow2c.snap] => { "ansible_facts": { "__firewall_previous_replaced": true, "__firewall_python_cmd": "/usr/bin/python" }, "changed": false } TASK [linux-system-roles.firewall : Get config files, checksums before and remove] *** task path: /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/main.yml:18 Tuesday 14 June 2022 20:08:32 +0000 (0:00:00.045) 0:00:03.390 ********** ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "rc": 0 } STDOUT: /etc/profile.d/lang.sh: line 19: warning: setlocale: LC_CTYPE: cannot change locale (C.UTF-8) 1fbd6fcd1ca29e4438f7c982e2b9d595a93b93c1f9bdfbbf18745493df02e13e /etc/firewalld/zones/public.xml 8697e89439a0fde2df034ef3bfeb3a9558529194c459826162be809a2f08e773 /etc/firewalld/lockdown-whitelist.xml 65a9e4a0653b58f6808edcf6d432f6676485af237e73cb7adaabab4df3fac7bc /etc/firewalld/firewalld.conf STDERR: Shared connection to 127.0.0.3 closed. TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/main.yml:40 Tuesday 14 June 2022 20:08:34 +0000 (0:00:01.267) 0:00:04.657 ********** TASK [linux-system-roles.firewall : gather firewalld configuration] ************ task path: /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/main.yml:69 Tuesday 14 June 2022 20:08:34 +0000 (0:00:00.034) 0:00:04.692 ********** fatal: [/cache/centos-7.qcow2c.snap]: FAILED! => { "changed": false, "rc": 1 } MSG: MODULE FAILURE See stdout/stderr for the exact error MODULE_STDOUT: /etc/profile.d/lang.sh: line 19: warning: setlocale: LC_CTYPE: cannot change locale (C.UTF-8) Traceback (most recent call last): File "/root/.ansible/tmp/ansible-tmp-1655237314.183149-43806-271742416100915/AnsiballZ_firewall_lib_facts.py", line 107, in _ansiballz_main() File "/root/.ansible/tmp/ansible-tmp-1655237314.183149-43806-271742416100915/AnsiballZ_firewall_lib_facts.py", line 99, in _ansiballz_main invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS) File "/root/.ansible/tmp/ansible-tmp-1655237314.183149-43806-271742416100915/AnsiballZ_firewall_lib_facts.py", line 48, in invoke_module run_name='__main__', alter_sys=True) File "/usr/lib64/python2.7/runpy.py", line 176, in run_module fname, loader, pkg_name) File "/usr/lib64/python2.7/runpy.py", line 82, in _run_module_code mod_name, mod_fname, mod_loader, pkg_name) File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/tmp/ansible_firewall_lib_facts_payload_vK3OQZ/ansible_firewall_lib_facts_payload.zip/ansible/modules/firewall_lib_facts.py", line 122, in File "/tmp/ansible_firewall_lib_facts_payload_vK3OQZ/ansible_firewall_lib_facts_payload.zip/ansible/modules/firewall_lib_facts.py", line 114, in main File "/tmp/ansible_firewall_lib_facts_payload_vK3OQZ/ansible_firewall_lib_facts_payload.zip/ansible/modules/firewall_lib_facts.py", line 81, in config_to_dict File "/tmp/ansible_firewall_lib_facts_payload_vK3OQZ/ansible_firewall_lib_facts_payload.zip/ansible/modules/firewall_lib_facts.py", line 93, in fetch_settings_from_dir OSError: [Errno 2] No such file or directory: '/usr/lib/firewalld/policies' MODULE_STDERR: Shared connection to 127.0.0.3 closed. TASK [Cleanup] ***************************************************************** task path: /tmp/tmp_kqcmyuy/tests/tests_purge_config.yml:146 Tuesday 14 June 2022 20:08:34 +0000 (0:00:00.429) 0:00:05.121 ********** TASK [linux-system-roles.firewall : include_tasks] ***************************** task path: /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/main.yml:1 Tuesday 14 June 2022 20:08:34 +0000 (0:00:00.036) 0:00:05.158 ********** included: /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml for /cache/centos-7.qcow2c.snap TASK [linux-system-roles.firewall : Ensure ansible_facts used by role] ********* task path: /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Tuesday 14 June 2022 20:08:34 +0000 (0:00:00.027) 0:00:05.186 ********** ok: [/cache/centos-7.qcow2c.snap] TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 Tuesday 14 June 2022 20:08:35 +0000 (0:00:00.408) 0:00:05.594 ********** ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "rc": 0, "results": [ "firewalld-0.6.3-13.el7_9.noarch providing firewalld is already installed" ] } TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Tuesday 14 June 2022 20:08:35 +0000 (0:00:00.504) 0:00:06.099 ********** ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "rc": 0, "results": [ "python-firewall-0.6.3-13.el7_9.noarch providing python-firewall is already installed" ] } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Tuesday 14 June 2022 20:08:36 +0000 (0:00:00.504) 0:00:06.604 ********** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Tuesday 14 June 2022 20:08:36 +0000 (0:00:00.025) 0:00:06.629 ********** ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2022-06-14 20:08:33 UTC", "ActiveEnterTimestampMonotonic": "22127949", "ActiveExitTimestamp": "Tue 2022-06-14 20:08:32 UTC", "ActiveExitTimestampMonotonic": "21155570", "ActiveState": "active", "After": "polkit.service dbus.service basic.target system.slice", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-06-14 20:08:33 UTC", "AssertTimestampMonotonic": "21935094", "Before": "network-pre.target shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2022-06-14 20:08:33 UTC", "ConditionTimestampMonotonic": "21935094", "Conflicts": "shutdown.target ipset.service ip6tables.service iptables.service ebtables.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "EnvironmentFile": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "2615", "ExecMainStartTimestamp": "Tue 2022-06-14 20:08:33 UTC", "ExecMainStartTimestampMonotonic": "21935923", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; ignore_errors=no ; start_time=[Tue 2022-06-14 20:08:33 UTC] ; stop_time=[n/a] ; pid=2615 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Tue 2022-06-14 20:08:33 UTC", "InactiveEnterTimestampMonotonic": "21933611", "InactiveExitTimestamp": "Tue 2022-06-14 20:08:33 UTC", "InactiveExitTimestampMonotonic": "21935954", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "7154", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "7154", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "2615", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "basic.target system.slice", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogTimestamp": "Tue 2022-06-14 20:08:33 UTC", "WatchdogTimestampMonotonic": "22127883", "WatchdogUSec": "0" } } TASK [linux-system-roles.firewall : Check if previous replaced is defined] ***** task path: /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/main.yml:9 Tuesday 14 June 2022 20:08:36 +0000 (0:00:00.400) 0:00:07.029 ********** ok: [/cache/centos-7.qcow2c.snap] => { "ansible_facts": { "__firewall_previous_replaced": true, "__firewall_python_cmd": "/usr/bin/python" }, "changed": false } TASK [linux-system-roles.firewall : Get config files, checksums before and remove] *** task path: /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/main.yml:18 Tuesday 14 June 2022 20:08:36 +0000 (0:00:00.048) 0:00:07.077 ********** ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "rc": 0 } STDOUT: /etc/profile.d/lang.sh: line 19: warning: setlocale: LC_CTYPE: cannot change locale (C.UTF-8) STDERR: Shared connection to 127.0.0.3 closed. TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/main.yml:40 Tuesday 14 June 2022 20:08:36 +0000 (0:00:00.241) 0:00:07.319 ********** TASK [linux-system-roles.firewall : gather firewalld configuration] ************ task path: /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/main.yml:69 Tuesday 14 June 2022 20:08:36 +0000 (0:00:00.036) 0:00:07.355 ********** fatal: [/cache/centos-7.qcow2c.snap]: FAILED! => { "changed": false, "rc": 1 } MSG: MODULE FAILURE See stdout/stderr for the exact error MODULE_STDOUT: /etc/profile.d/lang.sh: line 19: warning: setlocale: LC_CTYPE: cannot change locale (C.UTF-8) Traceback (most recent call last): File "/root/.ansible/tmp/ansible-tmp-1655237316.857218-43912-270736194901568/AnsiballZ_firewall_lib_facts.py", line 107, in _ansiballz_main() File "/root/.ansible/tmp/ansible-tmp-1655237316.857218-43912-270736194901568/AnsiballZ_firewall_lib_facts.py", line 99, in _ansiballz_main invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS) File "/root/.ansible/tmp/ansible-tmp-1655237316.857218-43912-270736194901568/AnsiballZ_firewall_lib_facts.py", line 48, in invoke_module run_name='__main__', alter_sys=True) File "/usr/lib64/python2.7/runpy.py", line 176, in run_module fname, loader, pkg_name) File "/usr/lib64/python2.7/runpy.py", line 82, in _run_module_code mod_name, mod_fname, mod_loader, pkg_name) File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/tmp/ansible_firewall_lib_facts_payload_qiZmEa/ansible_firewall_lib_facts_payload.zip/ansible/modules/firewall_lib_facts.py", line 122, in File "/tmp/ansible_firewall_lib_facts_payload_qiZmEa/ansible_firewall_lib_facts_payload.zip/ansible/modules/firewall_lib_facts.py", line 114, in main File "/tmp/ansible_firewall_lib_facts_payload_qiZmEa/ansible_firewall_lib_facts_payload.zip/ansible/modules/firewall_lib_facts.py", line 81, in config_to_dict File "/tmp/ansible_firewall_lib_facts_payload_qiZmEa/ansible_firewall_lib_facts_payload.zip/ansible/modules/firewall_lib_facts.py", line 93, in fetch_settings_from_dir OSError: [Errno 2] No such file or directory: '/usr/lib/firewalld/policies' MODULE_STDERR: Shared connection to 127.0.0.3 closed. PLAY RECAP ********************************************************************* /cache/centos-7.qcow2c.snap : ok=15 changed=0 unreachable=0 failed=2 skipped=4 rescued=0 ignored=0 Tuesday 14 June 2022 20:08:37 +0000 (0:00:00.315) 0:00:07.671 ********** =============================================================================== linux-system-roles.firewall : Get config files, checksums before and remove --- 1.51s /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/main.yml:18 ---- linux-system-roles.firewall : Enable and start firewalld service -------- 1.01s /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 ----- Gathering Facts --------------------------------------------------------- 1.01s /tmp/tmp_kqcmyuy/tests/tests_purge_config.yml:1 ------------------------------- linux-system-roles.firewall : gather firewalld configuration ------------ 0.75s /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/main.yml:69 ---- linux-system-roles.firewall : Install firewalld ------------------------- 0.67s /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 linux-system-roles.firewall : Install python-firewall ------------------- 0.52s /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 linux-system-roles.firewall : Install firewalld ------------------------- 0.50s /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 linux-system-roles.firewall : Install python-firewall ------------------- 0.50s /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 linux-system-roles.firewall : Ensure ansible_facts used by role --------- 0.43s /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 linux-system-roles.firewall : Ensure ansible_facts used by role --------- 0.41s /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 linux-system-roles.firewall : Check if previous replaced is defined ----- 0.09s /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/main.yml:9 ----- linux-system-roles.firewall : Configure firewall ------------------------ 0.07s /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/main.yml:40 ---- linux-system-roles.firewall : include_tasks ----------------------------- 0.06s /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/main.yml:1 ----- Start from a clean slate ------------------------------------------------ 0.04s /tmp/tmp_kqcmyuy/tests/tests_purge_config.yml:26 ------------------------------ Cleanup ----------------------------------------------------------------- 0.04s /tmp/tmp_kqcmyuy/tests/tests_purge_config.yml:146 ----------------------------- linux-system-roles.firewall : Install python3-firewall ------------------ 0.03s /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 linux-system-roles.firewall : Install python3-firewall ------------------ 0.03s /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmp5p1nrbz_ executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_purge_config.yml *********************************************** 1 plays in /tmp/tmpgoiymv8p/tests/firewall/tests_purge_config.yml PLAY [Test that old config can be purged idempotently] ************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpgoiymv8p/tests/firewall/tests_purge_config.yml:1 Tuesday 14 June 2022 20:09:18 +0000 (0:00:00.013) 0:00:00.013 ********** ok: [/cache/centos-7.qcow2c.snap] META: ran handlers TASK [Start from a clean slate] ************************************************ task path: /tmp/tmpgoiymv8p/tests/firewall/tests_purge_config.yml:24 Tuesday 14 June 2022 20:09:19 +0000 (0:00:00.996) 0:00:01.010 ********** TASK [fedora.linux_system_roles.firewall : include_tasks] ********************** task path: /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:1 Tuesday 14 June 2022 20:09:19 +0000 (0:00:00.043) 0:00:01.053 ********** included: /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml for /cache/centos-7.qcow2c.snap TASK [fedora.linux_system_roles.firewall : Ensure ansible_facts used by role] *** task path: /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Tuesday 14 June 2022 20:09:19 +0000 (0:00:00.030) 0:00:01.084 ********** ok: [/cache/centos-7.qcow2c.snap] TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 Tuesday 14 June 2022 20:09:19 +0000 (0:00:00.424) 0:00:01.509 ********** ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "rc": 0, "results": [ "firewalld-0.6.3-13.el7_9.noarch providing firewalld is already installed" ] } TASK [fedora.linux_system_roles.firewall : Install python-firewall] ************ task path: /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:12 Tuesday 14 June 2022 20:09:20 +0000 (0:00:00.640) 0:00:02.150 ********** ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "rc": 0, "results": [ "python-firewall-0.6.3-13.el7_9.noarch providing python-firewall is already installed" ] } TASK [fedora.linux_system_roles.firewall : Install python3-firewall] *********** task path: /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:18 Tuesday 14 June 2022 20:09:20 +0000 (0:00:00.481) 0:00:02.631 ********** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Enable and start firewalld service] *** task path: /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Tuesday 14 June 2022 20:09:20 +0000 (0:00:00.023) 0:00:02.654 ********** ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2022-06-14 20:09:03 UTC", "ActiveEnterTimestampMonotonic": "3586274", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "system.slice basic.target dbus.service polkit.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-06-14 20:09:02 UTC", "AssertTimestampMonotonic": "3254735", "Before": "multi-user.target network-pre.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2022-06-14 20:09:02 UTC", "ConditionTimestampMonotonic": "3254735", "Conflicts": "ipset.service iptables.service ebtables.service ip6tables.service shutdown.target", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "EnvironmentFile": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "656", "ExecMainStartTimestamp": "Tue 2022-06-14 20:09:02 UTC", "ExecMainStartTimestampMonotonic": "3255476", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; ignore_errors=no ; start_time=[Tue 2022-06-14 20:09:02 UTC] ; stop_time=[n/a] ; pid=656 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Tue 2022-06-14 20:09:02 UTC", "InactiveExitTimestampMonotonic": "3255524", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "7154", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "7154", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "656", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "system.slice basic.target", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogTimestamp": "Tue 2022-06-14 20:09:03 UTC", "WatchdogTimestampMonotonic": "3586047", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.firewall : Check if previous replaced is defined] *** task path: /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:9 Tuesday 14 June 2022 20:09:21 +0000 (0:00:00.607) 0:00:03.261 ********** ok: [/cache/centos-7.qcow2c.snap] => { "ansible_facts": { "__firewall_previous_replaced": true, "__firewall_python_cmd": "/usr/bin/python" }, "changed": false } TASK [fedora.linux_system_roles.firewall : Get config files, checksums before and remove] *** task path: /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:14 Tuesday 14 June 2022 20:09:21 +0000 (0:00:00.046) 0:00:03.308 ********** ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "rc": 0 } STDOUT: /etc/profile.d/lang.sh: line 19: warning: setlocale: LC_CTYPE: cannot change locale (C.UTF-8) 1fbd6fcd1ca29e4438f7c982e2b9d595a93b93c1f9bdfbbf18745493df02e13e /etc/firewalld/zones/public.xml 8697e89439a0fde2df034ef3bfeb3a9558529194c459826162be809a2f08e773 /etc/firewalld/lockdown-whitelist.xml 65a9e4a0653b58f6808edcf6d432f6676485af237e73cb7adaabab4df3fac7bc /etc/firewalld/firewalld.conf STDERR: Shared connection to 127.0.0.3 closed. TASK [fedora.linux_system_roles.firewall : Configure firewall] ***************** task path: /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:36 Tuesday 14 June 2022 20:09:22 +0000 (0:00:01.228) 0:00:04.536 ********** TASK [fedora.linux_system_roles.firewall : gather firewalld configuration] ***** task path: /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:63 Tuesday 14 June 2022 20:09:22 +0000 (0:00:00.035) 0:00:04.571 ********** fatal: [/cache/centos-7.qcow2c.snap]: FAILED! => { "changed": false, "rc": 1 } MSG: MODULE FAILURE See stdout/stderr for the exact error MODULE_STDOUT: /etc/profile.d/lang.sh: line 19: warning: setlocale: LC_CTYPE: cannot change locale (C.UTF-8) Traceback (most recent call last): File "/root/.ansible/tmp/ansible-tmp-1655237362.9197335-44781-257802816196675/AnsiballZ_firewall_lib_facts.py", line 107, in _ansiballz_main() File "/root/.ansible/tmp/ansible-tmp-1655237362.9197335-44781-257802816196675/AnsiballZ_firewall_lib_facts.py", line 99, in _ansiballz_main invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS) File "/root/.ansible/tmp/ansible-tmp-1655237362.9197335-44781-257802816196675/AnsiballZ_firewall_lib_facts.py", line 48, in invoke_module run_name='__main__', alter_sys=True) File "/usr/lib64/python2.7/runpy.py", line 176, in run_module fname, loader, pkg_name) File "/usr/lib64/python2.7/runpy.py", line 82, in _run_module_code mod_name, mod_fname, mod_loader, pkg_name) File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/tmp/ansible_fedora.linux_system_roles.firewall_lib_facts_payload_QITIjY/ansible_fedora.linux_system_roles.firewall_lib_facts_payload.zip/ansible_collections/fedora/linux_system_roles/plugins/modules/firewall_lib_facts.py", line 122, in File "/tmp/ansible_fedora.linux_system_roles.firewall_lib_facts_payload_QITIjY/ansible_fedora.linux_system_roles.firewall_lib_facts_payload.zip/ansible_collections/fedora/linux_system_roles/plugins/modules/firewall_lib_facts.py", line 114, in main File "/tmp/ansible_fedora.linux_system_roles.firewall_lib_facts_payload_QITIjY/ansible_fedora.linux_system_roles.firewall_lib_facts_payload.zip/ansible_collections/fedora/linux_system_roles/plugins/modules/firewall_lib_facts.py", line 81, in config_to_dict File "/tmp/ansible_fedora.linux_system_roles.firewall_lib_facts_payload_QITIjY/ansible_fedora.linux_system_roles.firewall_lib_facts_payload.zip/ansible_collections/fedora/linux_system_roles/plugins/modules/firewall_lib_facts.py", line 93, in fetch_settings_from_dir OSError: [Errno 2] No such file or directory: '/usr/lib/firewalld/policies' MODULE_STDERR: Shared connection to 127.0.0.3 closed. TASK [Cleanup] ***************************************************************** task path: /tmp/tmpgoiymv8p/tests/firewall/tests_purge_config.yml:144 Tuesday 14 June 2022 20:09:23 +0000 (0:00:00.423) 0:00:04.995 ********** TASK [fedora.linux_system_roles.firewall : include_tasks] ********************** task path: /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:1 Tuesday 14 June 2022 20:09:23 +0000 (0:00:00.035) 0:00:05.031 ********** included: /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml for /cache/centos-7.qcow2c.snap TASK [fedora.linux_system_roles.firewall : Ensure ansible_facts used by role] *** task path: /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Tuesday 14 June 2022 20:09:23 +0000 (0:00:00.028) 0:00:05.060 ********** ok: [/cache/centos-7.qcow2c.snap] TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 Tuesday 14 June 2022 20:09:23 +0000 (0:00:00.410) 0:00:05.470 ********** ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "rc": 0, "results": [ "firewalld-0.6.3-13.el7_9.noarch providing firewalld is already installed" ] } TASK [fedora.linux_system_roles.firewall : Install python-firewall] ************ task path: /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:12 Tuesday 14 June 2022 20:09:24 +0000 (0:00:00.510) 0:00:05.980 ********** ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "rc": 0, "results": [ "python-firewall-0.6.3-13.el7_9.noarch providing python-firewall is already installed" ] } TASK [fedora.linux_system_roles.firewall : Install python3-firewall] *********** task path: /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:18 Tuesday 14 June 2022 20:09:24 +0000 (0:00:00.498) 0:00:06.479 ********** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Enable and start firewalld service] *** task path: /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Tuesday 14 June 2022 20:09:24 +0000 (0:00:00.025) 0:00:06.505 ********** ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2022-06-14 20:09:22 UTC", "ActiveEnterTimestampMonotonic": "23181590", "ActiveExitTimestamp": "Tue 2022-06-14 20:09:21 UTC", "ActiveExitTimestampMonotonic": "22243450", "ActiveState": "active", "After": "system.slice basic.target dbus.service polkit.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-06-14 20:09:22 UTC", "AssertTimestampMonotonic": "22987426", "Before": "multi-user.target network-pre.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2022-06-14 20:09:22 UTC", "ConditionTimestampMonotonic": "22987426", "Conflicts": "ipset.service iptables.service ebtables.service ip6tables.service shutdown.target", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "EnvironmentFile": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "2613", "ExecMainStartTimestamp": "Tue 2022-06-14 20:09:22 UTC", "ExecMainStartTimestampMonotonic": "22988326", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; ignore_errors=no ; start_time=[Tue 2022-06-14 20:09:22 UTC] ; stop_time=[n/a] ; pid=2613 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Tue 2022-06-14 20:09:22 UTC", "InactiveEnterTimestampMonotonic": "22986274", "InactiveExitTimestamp": "Tue 2022-06-14 20:09:22 UTC", "InactiveExitTimestampMonotonic": "22988695", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "7154", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "7154", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "2613", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "system.slice basic.target", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogTimestamp": "Tue 2022-06-14 20:09:22 UTC", "WatchdogTimestampMonotonic": "23181540", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.firewall : Check if previous replaced is defined] *** task path: /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:9 Tuesday 14 June 2022 20:09:25 +0000 (0:00:00.378) 0:00:06.883 ********** ok: [/cache/centos-7.qcow2c.snap] => { "ansible_facts": { "__firewall_previous_replaced": true, "__firewall_python_cmd": "/usr/bin/python" }, "changed": false } TASK [fedora.linux_system_roles.firewall : Get config files, checksums before and remove] *** task path: /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:14 Tuesday 14 June 2022 20:09:25 +0000 (0:00:00.049) 0:00:06.933 ********** ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "rc": 0 } STDOUT: /etc/profile.d/lang.sh: line 19: warning: setlocale: LC_CTYPE: cannot change locale (C.UTF-8) STDERR: Shared connection to 127.0.0.3 closed. TASK [fedora.linux_system_roles.firewall : Configure firewall] ***************** task path: /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:36 Tuesday 14 June 2022 20:09:25 +0000 (0:00:00.229) 0:00:07.162 ********** TASK [fedora.linux_system_roles.firewall : gather firewalld configuration] ***** task path: /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:63 Tuesday 14 June 2022 20:09:25 +0000 (0:00:00.034) 0:00:07.196 ********** fatal: [/cache/centos-7.qcow2c.snap]: FAILED! => { "changed": false, "rc": 1 } MSG: MODULE FAILURE See stdout/stderr for the exact error MODULE_STDOUT: /etc/profile.d/lang.sh: line 19: warning: setlocale: LC_CTYPE: cannot change locale (C.UTF-8) Traceback (most recent call last): File "/root/.ansible/tmp/ansible-tmp-1655237365.5430918-44887-218193123246823/AnsiballZ_firewall_lib_facts.py", line 107, in _ansiballz_main() File "/root/.ansible/tmp/ansible-tmp-1655237365.5430918-44887-218193123246823/AnsiballZ_firewall_lib_facts.py", line 99, in _ansiballz_main invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS) File "/root/.ansible/tmp/ansible-tmp-1655237365.5430918-44887-218193123246823/AnsiballZ_firewall_lib_facts.py", line 48, in invoke_module run_name='__main__', alter_sys=True) File "/usr/lib64/python2.7/runpy.py", line 176, in run_module fname, loader, pkg_name) File "/usr/lib64/python2.7/runpy.py", line 82, in _run_module_code mod_name, mod_fname, mod_loader, pkg_name) File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/tmp/ansible_fedora.linux_system_roles.firewall_lib_facts_payload_ZFAPlb/ansible_fedora.linux_system_roles.firewall_lib_facts_payload.zip/ansible_collections/fedora/linux_system_roles/plugins/modules/firewall_lib_facts.py", line 122, in File "/tmp/ansible_fedora.linux_system_roles.firewall_lib_facts_payload_ZFAPlb/ansible_fedora.linux_system_roles.firewall_lib_facts_payload.zip/ansible_collections/fedora/linux_system_roles/plugins/modules/firewall_lib_facts.py", line 114, in main File "/tmp/ansible_fedora.linux_system_roles.firewall_lib_facts_payload_ZFAPlb/ansible_fedora.linux_system_roles.firewall_lib_facts_payload.zip/ansible_collections/fedora/linux_system_roles/plugins/modules/firewall_lib_facts.py", line 81, in config_to_dict File "/tmp/ansible_fedora.linux_system_roles.firewall_lib_facts_payload_ZFAPlb/ansible_fedora.linux_system_roles.firewall_lib_facts_payload.zip/ansible_collections/fedora/linux_system_roles/plugins/modules/firewall_lib_facts.py", line 93, in fetch_settings_from_dir OSError: [Errno 2] No such file or directory: '/usr/lib/firewalld/policies' MODULE_STDERR: Shared connection to 127.0.0.3 closed. PLAY RECAP ********************************************************************* /cache/centos-7.qcow2c.snap : ok=15 changed=0 unreachable=0 failed=2 skipped=4 rescued=0 ignored=0 Tuesday 14 June 2022 20:09:25 +0000 (0:00:00.290) 0:00:07.486 ********** =============================================================================== fedora.linux_system_roles.firewall : Get config files, checksums before and remove --- 1.46s /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:14 Gathering Facts --------------------------------------------------------- 1.00s /tmp/tmpgoiymv8p/tests/firewall/tests_purge_config.yml:1 ---------------------- fedora.linux_system_roles.firewall : Enable and start firewalld service --- 0.99s /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 fedora.linux_system_roles.firewall : gather firewalld configuration ----- 0.71s /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:63 fedora.linux_system_roles.firewall : Install firewalld ------------------ 0.64s /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 fedora.linux_system_roles.firewall : Install firewalld ------------------ 0.51s /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 fedora.linux_system_roles.firewall : Install python-firewall ------------ 0.50s /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:12 fedora.linux_system_roles.firewall : Install python-firewall ------------ 0.48s /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:12 fedora.linux_system_roles.firewall : Ensure ansible_facts used by role --- 0.42s /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 fedora.linux_system_roles.firewall : Ensure ansible_facts used by role --- 0.41s /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 fedora.linux_system_roles.firewall : Check if previous replaced is defined --- 0.10s /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:9 fedora.linux_system_roles.firewall : Configure firewall ----------------- 0.07s /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:36 fedora.linux_system_roles.firewall : include_tasks ---------------------- 0.06s /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:1 Start from a clean slate ------------------------------------------------ 0.04s /tmp/tmpgoiymv8p/tests/firewall/tests_purge_config.yml:24 --------------------- Cleanup ----------------------------------------------------------------- 0.04s /tmp/tmpgoiymv8p/tests/firewall/tests_purge_config.yml:144 -------------------- fedora.linux_system_roles.firewall : Install python3-firewall ----------- 0.03s /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:18 fedora.linux_system_roles.firewall : Install python3-firewall ----------- 0.02s /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:18