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_target.yml ***************************************************** 1 plays in /tmp/tmp_kqcmyuy/tests/tests_target.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp_kqcmyuy/tests/tests_target.yml:1 Tuesday 14 June 2022 20:08:37 +0000 (0:00:00.012) 0:00:00.012 ********** ok: [/cache/centos-7.qcow2c.snap] META: ran handlers TASK [Call role to change target settings] ************************************* task path: /tmp/tmp_kqcmyuy/tests/tests_target.yml:5 Tuesday 14 June 2022 20:08:38 +0000 (0:00:00.995) 0:00:01.007 ********** 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:38 +0000 (0:00:00.035) 0:00:01.043 ********** 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:38 +0000 (0:00:00.030) 0:00:01.073 ********** 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:39 +0000 (0:00:00.410) 0:00:01.483 ********** 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:39 +0000 (0:00:00.666) 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 [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:40 +0000 (0:00:00.506) 0:00:02.656 ********** 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:40 +0000 (0:00:00.022) 0:00:02.679 ********** 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:40 +0000 (0:00:00.608) 0:00:03.287 ********** ok: [/cache/centos-7.qcow2c.snap] => { "ansible_facts": { "__firewall_previous_replaced": false, "__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:41 +0000 (0:00:00.046) 0:00:03.334 ********** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } 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:41 +0000 (0:00:00.033) 0:00:03.368 ********** ok: [/cache/centos-7.qcow2c.snap] => (item={'set_default_zone': 'public', 'permanent': True}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "permanent": true, "set_default_zone": "public" } } changed: [/cache/centos-7.qcow2c.snap] => (item={'target': 'DROP', 'state': 'enabled', 'permanent': True}) => { "__firewall_changed": true, "ansible_loop_var": "item", "changed": true, "item": { "permanent": true, "state": "enabled", "target": "DROP" } } 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:42 +0000 (0:00:01.351) 0:00:04.719 ********** 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-1655237322.4705977-44056-217573917300312/AnsiballZ_firewall_lib_facts.py", line 107, in _ansiballz_main() File "/root/.ansible/tmp/ansible-tmp-1655237322.4705977-44056-217573917300312/AnsiballZ_firewall_lib_facts.py", line 99, in _ansiballz_main invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS) File "/root/.ansible/tmp/ansible-tmp-1655237322.4705977-44056-217573917300312/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_5g0Mdu/ansible_firewall_lib_facts_payload.zip/ansible/modules/firewall_lib_facts.py", line 122, in File "/tmp/ansible_firewall_lib_facts_payload_5g0Mdu/ansible_firewall_lib_facts_payload.zip/ansible/modules/firewall_lib_facts.py", line 114, in main File "/tmp/ansible_firewall_lib_facts_payload_5g0Mdu/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_5g0Mdu/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_target.yml:47 Tuesday 14 June 2022 20:08:42 +0000 (0:00:00.441) 0:00:05.161 ********** 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:42 +0000 (0:00:00.039) 0:00:05.200 ********** 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:42 +0000 (0:00:00.027) 0:00:05.228 ********** 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:43 +0000 (0:00:00.394) 0:00:05.622 ********** 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:43 +0000 (0:00:00.518) 0:00:06.140 ********** 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:44 +0000 (0:00:00.513) 0:00:06.653 ********** 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:44 +0000 (0:00:00.026) 0:00:06.679 ********** 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:44 +0000 (0:00:00.389) 0:00:07.069 ********** 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:44 +0000 (0:00:00.050) 0:00:07.119 ********** 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) fe26546568b5f83cef695d4472aa672ed47d794c63a83e5c8337b605e854dc99 /etc/firewalld/zones/public.xml 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:46 +0000 (0:00:01.291) 0:00:08.411 ********** 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:46 +0000 (0:00:00.039) 0:00:08.451 ********** 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-1655237326.203445-44162-264114144611239/AnsiballZ_firewall_lib_facts.py", line 107, in _ansiballz_main() File "/root/.ansible/tmp/ansible-tmp-1655237326.203445-44162-264114144611239/AnsiballZ_firewall_lib_facts.py", line 99, in _ansiballz_main invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS) File "/root/.ansible/tmp/ansible-tmp-1655237326.203445-44162-264114144611239/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_kbmDgs/ansible_firewall_lib_facts_payload.zip/ansible/modules/firewall_lib_facts.py", line 122, in File "/tmp/ansible_firewall_lib_facts_payload_kbmDgs/ansible_firewall_lib_facts_payload.zip/ansible/modules/firewall_lib_facts.py", line 114, in main File "/tmp/ansible_firewall_lib_facts_payload_kbmDgs/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_kbmDgs/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=1 unreachable=0 failed=2 skipped=4 rescued=0 ignored=0 Tuesday 14 June 2022 20:08:46 +0000 (0:00:00.332) 0:00:08.784 ********** =============================================================================== linux-system-roles.firewall : Configure firewall ------------------------ 1.35s /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/main.yml:40 ---- linux-system-roles.firewall : Get config files, checksums before and remove --- 1.29s /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/main.yml:18 ---- Gathering Facts --------------------------------------------------------- 1.00s /tmp/tmp_kqcmyuy/tests/tests_target.yml:1 ------------------------------------- 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 : Enable and start firewalld service -------- 0.61s /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 ----- linux-system-roles.firewall : Install firewalld ------------------------- 0.52s /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 linux-system-roles.firewall : Install python-firewall ------------------- 0.51s /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 linux-system-roles.firewall : Install python-firewall ------------------- 0.51s /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 linux-system-roles.firewall : gather firewalld configuration ------------ 0.44s /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/main.yml:69 ---- 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 : Ensure ansible_facts used by role --------- 0.39s /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 linux-system-roles.firewall : Enable and start firewalld service -------- 0.39s /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 ----- linux-system-roles.firewall : gather firewalld configuration ------------ 0.33s /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/main.yml:69 ---- linux-system-roles.firewall : Check if previous replaced is defined ----- 0.05s /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/main.yml:9 ----- linux-system-roles.firewall : Check if previous replaced is defined ----- 0.05s /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/main.yml:9 ----- linux-system-roles.firewall : Configure firewall ------------------------ 0.04s /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/main.yml:40 ---- Cleanup ----------------------------------------------------------------- 0.04s /tmp/tmp_kqcmyuy/tests/tests_target.yml:47 ------------------------------------ Call role to change target settings ------------------------------------- 0.04s /tmp/tmp_kqcmyuy/tests/tests_target.yml:5 ------------------------------------- linux-system-roles.firewall : Get config files, checksums before and remove --- 0.03s /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/main.yml:18 ---- linux-system-roles.firewall : include_tasks ----------------------------- 0.03s /tmp/tmp_kqcmyuy/tests/roles/linux-system-roles.firewall/tasks/main.yml:1 ----- 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_target.yml ***************************************************** 1 plays in /tmp/tmpgoiymv8p/tests/firewall/tests_target.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpgoiymv8p/tests/firewall/tests_target.yml:1 Tuesday 14 June 2022 20:09:26 +0000 (0:00:00.012) 0:00:00.012 ********** ok: [/cache/centos-7.qcow2c.snap] META: ran handlers TASK [Call role to change target settings] ************************************* task path: /tmp/tmpgoiymv8p/tests/firewall/tests_target.yml:5 Tuesday 14 June 2022 20:09:27 +0000 (0:00:00.985) 0:00:00.998 ********** 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:27 +0000 (0:00:00.041) 0:00:01.040 ********** 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:27 +0000 (0:00:00.033) 0:00:01.073 ********** 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:27 +0000 (0:00:00.412) 0:00:01.486 ********** 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:28 +0000 (0:00:00.657) 0:00:02.143 ********** 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:28 +0000 (0:00:00.494) 0:00:02.638 ********** 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:29 +0000 (0:00:00.022) 0:00:02.661 ********** 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:29 +0000 (0:00:00.610) 0:00:03.271 ********** ok: [/cache/centos-7.qcow2c.snap] => { "ansible_facts": { "__firewall_previous_replaced": false, "__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:29 +0000 (0:00:00.045) 0:00:03.316 ********** skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } 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:29 +0000 (0:00:00.032) 0:00:03.348 ********** ok: [/cache/centos-7.qcow2c.snap] => (item={'set_default_zone': 'public', 'permanent': True}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "permanent": true, "set_default_zone": "public" } } changed: [/cache/centos-7.qcow2c.snap] => (item={'target': 'DROP', 'state': 'enabled', 'permanent': True}) => { "__firewall_changed": true, "ansible_loop_var": "item", "changed": true, "item": { "permanent": true, "state": "enabled", "target": "DROP" } } 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:30 +0000 (0:00:01.305) 0:00:04.654 ********** 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-1655237371.057253-45031-216098220638637/AnsiballZ_firewall_lib_facts.py", line 107, in _ansiballz_main() File "/root/.ansible/tmp/ansible-tmp-1655237371.057253-45031-216098220638637/AnsiballZ_firewall_lib_facts.py", line 99, in _ansiballz_main invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS) File "/root/.ansible/tmp/ansible-tmp-1655237371.057253-45031-216098220638637/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_xA9Boq/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_xA9Boq/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_xA9Boq/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_xA9Boq/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_target.yml:47 Tuesday 14 June 2022 20:09:31 +0000 (0:00:00.430) 0:00:05.084 ********** 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:31 +0000 (0:00:00.041) 0:00:05.126 ********** 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:31 +0000 (0:00:00.030) 0:00:05.156 ********** 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:31 +0000 (0:00:00.387) 0:00:05.543 ********** 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:32 +0000 (0:00:00.507) 0:00:06.051 ********** 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:32 +0000 (0:00:00.495) 0:00:06.546 ********** 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:32 +0000 (0:00:00.023) 0:00:06.570 ********** 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:33 +0000 (0:00:00.367) 0:00:06.937 ********** 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:33 +0000 (0:00:00.045) 0:00:06.983 ********** 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) fe26546568b5f83cef695d4472aa672ed47d794c63a83e5c8337b605e854dc99 /etc/firewalld/zones/public.xml 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:34 +0000 (0:00:01.192) 0:00:08.175 ********** 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:34 +0000 (0:00:00.036) 0:00:08.211 ********** 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-1655237374.6156256-45137-13270068801759/AnsiballZ_firewall_lib_facts.py", line 107, in _ansiballz_main() File "/root/.ansible/tmp/ansible-tmp-1655237374.6156256-45137-13270068801759/AnsiballZ_firewall_lib_facts.py", line 99, in _ansiballz_main invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS) File "/root/.ansible/tmp/ansible-tmp-1655237374.6156256-45137-13270068801759/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_TdvjLr/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_TdvjLr/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_TdvjLr/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_TdvjLr/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=1 unreachable=0 failed=2 skipped=4 rescued=0 ignored=0 Tuesday 14 June 2022 20:09:34 +0000 (0:00:00.315) 0:00:08.527 ********** =============================================================================== fedora.linux_system_roles.firewall : Configure firewall ----------------- 1.31s /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:36 fedora.linux_system_roles.firewall : Get config files, checksums before and remove --- 1.19s /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:14 Gathering Facts --------------------------------------------------------- 0.99s /tmp/tmpgoiymv8p/tests/firewall/tests_target.yml:1 ---------------------------- fedora.linux_system_roles.firewall : Install firewalld ------------------ 0.66s /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 fedora.linux_system_roles.firewall : Enable and start firewalld service --- 0.61s /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 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.49s /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:12 fedora.linux_system_roles.firewall : gather firewalld configuration ----- 0.43s /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:63 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 : Ensure ansible_facts used by role --- 0.39s /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 fedora.linux_system_roles.firewall : Enable and start firewalld service --- 0.37s /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 fedora.linux_system_roles.firewall : gather firewalld configuration ----- 0.32s /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:63 fedora.linux_system_roles.firewall : Check if previous replaced is defined --- 0.05s /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:9 fedora.linux_system_roles.firewall : Check if previous replaced is defined --- 0.05s /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:9 Call role to change target settings ------------------------------------- 0.04s /tmp/tmpgoiymv8p/tests/firewall/tests_target.yml:5 ---------------------------- Cleanup ----------------------------------------------------------------- 0.04s /tmp/tmpgoiymv8p/tests/firewall/tests_target.yml:47 --------------------------- fedora.linux_system_roles.firewall : Configure firewall ----------------- 0.04s /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:36 fedora.linux_system_roles.firewall : include_tasks ---------------------- 0.03s /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:1 fedora.linux_system_roles.firewall : Get config files, checksums before and remove --- 0.03s /tmp/tmp5p1nrbz_/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:14