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/tmpe2xtogrr 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_zone.yml ******************************************************* 1 plays in /tmp/tmpaiuxunkc/tests/tests_zone.yml PLAY [Test firewalld zones] **************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpaiuxunkc/tests/tests_zone.yml:1 Thursday 23 June 2022 20:38:11 +0000 (0:00:00.014) 0:00:00.014 ********* ok: [/cache/centos-7.qcow2c.snap] META: ran handlers TASK [Verify used firewalld zones] ********************************************* task path: /tmp/tmpaiuxunkc/tests/tests_zone.yml:11 Thursday 23 June 2022 20:38:12 +0000 (0:00:01.034) 0:00:01.048 ********* TASK [linux-system-roles.firewall : include_tasks] ***************************** task path: /tmp/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/main.yml:1 Thursday 23 June 2022 20:38:12 +0000 (0:00:00.052) 0:00:01.100 ********* included: /tmp/tmpaiuxunkc/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/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Thursday 23 June 2022 20:38:12 +0000 (0:00:00.060) 0:00:01.161 ********* ok: [/cache/centos-7.qcow2c.snap] TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 Thursday 23 June 2022 20:38:12 +0000 (0:00:00.417) 0:00:01.578 ********* 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/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Thursday 23 June 2022 20:38:13 +0000 (0:00:00.684) 0:00:02.263 ********* 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/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Thursday 23 June 2022 20:38:13 +0000 (0:00:00.503) 0:00:02.767 ********* 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/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Thursday 23 June 2022 20:38:13 +0000 (0:00:00.038) 0:00:02.805 ********* ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Thu 2022-06-23 20:38:10 UTC", "ActiveEnterTimestampMonotonic": "181727667", "ActiveExitTimestamp": "Thu 2022-06-23 20:38:09 UTC", "ActiveExitTimestampMonotonic": "180772136", "ActiveState": "active", "After": "system.slice dbus.service polkit.service basic.target", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Thu 2022-06-23 20:38:10 UTC", "AssertTimestampMonotonic": "181531829", "Before": "shutdown.target network-pre.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": "Thu 2022-06-23 20:38:10 UTC", "ConditionTimestampMonotonic": "181531829", "Conflicts": "ip6tables.service shutdown.target ebtables.service ipset.service iptables.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": "18498", "ExecMainStartTimestamp": "Thu 2022-06-23 20:38:10 UTC", "ExecMainStartTimestampMonotonic": "181532788", "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=[Thu 2022-06-23 20:38:10 UTC] ; stop_time=[n/a] ; pid=18498 ; 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": "Thu 2022-06-23 20:38:10 UTC", "InactiveEnterTimestampMonotonic": "181530748", "InactiveExitTimestamp": "Thu 2022-06-23 20:38:10 UTC", "InactiveExitTimestampMonotonic": "181532825", "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": "18498", "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": "Thu 2022-06-23 20:38:10 UTC", "WatchdogTimestampMonotonic": "181727587", "WatchdogUSec": "0" } } TASK [linux-system-roles.firewall : Check if previous replaced is defined] ***** task path: /tmp/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/main.yml:9 Thursday 23 June 2022 20:38:14 +0000 (0:00:00.613) 0:00:03.419 ********* 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/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/main.yml:18 Thursday 23 June 2022 20:38:14 +0000 (0:00:00.050) 0:00:03.469 ********* skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/main.yml:40 Thursday 23 June 2022 20:38:14 +0000 (0:00:00.034) 0:00:03.504 ********* ok: [/cache/centos-7.qcow2c.snap] => (item={'zone': 'internal', 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "internal" } } ok: [/cache/centos-7.qcow2c.snap] => (item={'zone': 'external', 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "external" } } ok: [/cache/centos-7.qcow2c.snap] => (item={'zone': 'trusted', 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "trusted" } } TASK [linux-system-roles.firewall : Get config files, checksums after] ********* task path: /tmp/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/main.yml:78 Thursday 23 June 2022 20:38:16 +0000 (0:00:01.667) 0:00:05.172 ********* skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Calculate what has changed] **************** task path: /tmp/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/main.yml:86 Thursday 23 June 2022 20:38:16 +0000 (0:00:00.035) 0:00:05.207 ********* skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Show diffs] ******************************** task path: /tmp/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/main.yml:95 Thursday 23 June 2022 20:38:16 +0000 (0:00:00.033) 0:00:05.241 ********* skipping: [/cache/centos-7.qcow2c.snap] => {} META: role_complete for /cache/centos-7.qcow2c.snap TASK [Fail on missing zones] *************************************************** task path: /tmp/tmpaiuxunkc/tests/tests_zone.yml:23 Thursday 23 June 2022 20:38:16 +0000 (0:00:00.038) 0:00:05.280 ********* skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Setup firewalld] ********************************************************* task path: /tmp/tmpaiuxunkc/tests/tests_zone.yml:29 Thursday 23 June 2022 20:38:16 +0000 (0:00:00.031) 0:00:05.311 ********* TASK [linux-system-roles.firewall : include_tasks] ***************************** task path: /tmp/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/main.yml:1 Thursday 23 June 2022 20:38:16 +0000 (0:00:00.049) 0:00:05.361 ********* included: /tmp/tmpaiuxunkc/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/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Thursday 23 June 2022 20:38:16 +0000 (0:00:00.040) 0:00:05.401 ********* ok: [/cache/centos-7.qcow2c.snap] TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 Thursday 23 June 2022 20:38:16 +0000 (0:00:00.427) 0:00:05.828 ********* 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/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Thursday 23 June 2022 20:38:17 +0000 (0:00:00.537) 0:00:06.366 ********* 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/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Thursday 23 June 2022 20:38:18 +0000 (0:00:00.538) 0:00:06.904 ********* 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/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Thursday 23 June 2022 20:38:18 +0000 (0:00:00.038) 0:00:06.943 ********* ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Thu 2022-06-23 20:38:10 UTC", "ActiveEnterTimestampMonotonic": "181727667", "ActiveExitTimestamp": "Thu 2022-06-23 20:38:09 UTC", "ActiveExitTimestampMonotonic": "180772136", "ActiveState": "active", "After": "system.slice dbus.service polkit.service basic.target", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Thu 2022-06-23 20:38:10 UTC", "AssertTimestampMonotonic": "181531829", "Before": "shutdown.target network-pre.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": "Thu 2022-06-23 20:38:10 UTC", "ConditionTimestampMonotonic": "181531829", "Conflicts": "ip6tables.service shutdown.target ebtables.service ipset.service iptables.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": "18498", "ExecMainStartTimestamp": "Thu 2022-06-23 20:38:10 UTC", "ExecMainStartTimestampMonotonic": "181532788", "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=[Thu 2022-06-23 20:38:10 UTC] ; stop_time=[n/a] ; pid=18498 ; 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": "Thu 2022-06-23 20:38:10 UTC", "InactiveEnterTimestampMonotonic": "181530748", "InactiveExitTimestamp": "Thu 2022-06-23 20:38:10 UTC", "InactiveExitTimestampMonotonic": "181532825", "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": "18498", "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": "Thu 2022-06-23 20:38:10 UTC", "WatchdogTimestampMonotonic": "181727587", "WatchdogUSec": "0" } } TASK [linux-system-roles.firewall : Check if previous replaced is defined] ***** task path: /tmp/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/main.yml:9 Thursday 23 June 2022 20:38:18 +0000 (0:00:00.394) 0:00:07.337 ********* 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/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/main.yml:18 Thursday 23 June 2022 20:38:18 +0000 (0:00:00.096) 0:00:07.434 ********* 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/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/main.yml:40 Thursday 23 June 2022 20:38:18 +0000 (0:00:00.219) 0:00:07.653 ********* ok: [/cache/centos-7.qcow2c.snap] => (item={'zone': 'internal', 'service': ['tftp', 'ftp'], 'port': ['443/tcp', '443/udp'], 'forward_port': ['447/tcp;;1.2.3.4', '448/tcp;;1.2.3.5'], 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "forward_port": [ "447/tcp;;1.2.3.4", "448/tcp;;1.2.3.5" ], "port": [ "443/tcp", "443/udp" ], "service": [ "tftp", "ftp" ], "state": "enabled", "zone": "internal" } } ok: [/cache/centos-7.qcow2c.snap] => (item={'zone': 'internal', 'service': ['tftp', 'ftp'], 'port': ['443/tcp', '443/udp'], 'forward_port': ['447/tcp;;1.2.3.4', '448/tcp;;1.2.3.5'], 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "forward_port": [ "447/tcp;;1.2.3.4", "448/tcp;;1.2.3.5" ], "port": [ "443/tcp", "443/udp" ], "service": [ "tftp", "ftp" ], "state": "enabled", "zone": "internal" } } ok: [/cache/centos-7.qcow2c.snap] => (item={'zone': 'customzone', 'permanent': True, 'state': 'present'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "permanent": true, "state": "present", "zone": "customzone" } } ok: [/cache/centos-7.qcow2c.snap] => (item={'zone': 'customzone', 'permanent': True, 'masquerade': True, 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "masquerade": true, "permanent": true, "state": "enabled", "zone": "customzone" } } ok: [/cache/centos-7.qcow2c.snap] => (item={'set_default_zone': 'dmz', 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "set_default_zone": "dmz", "state": "enabled" } } ok: [/cache/centos-7.qcow2c.snap] => (item={'service': 'http', 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "service": "http", "state": "enabled" } } TASK [linux-system-roles.firewall : Get config files, checksums after] ********* task path: /tmp/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/main.yml:78 Thursday 23 June 2022 20:38:22 +0000 (0:00:03.324) 0:00:10.978 ********* 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) e2b071ca9b919b8fd60a4fe1e00e4f792ec2245359e8c48027020970791176d1 /etc/firewalld/zones/internal.xml 610e6e9bafe289c126adb751e772cd0224012f12738a8b8011454b1da8865c18 /etc/firewalld/zones/customzone.xml 1fbd6fcd1ca29e4438f7c982e2b9d595a93b93c1f9bdfbbf18745493df02e13e /etc/firewalld/zones/public.xml df2e066f9b8c0677c4887aa9a7032c4f94480408ff740036d98e648d11dd84c5 /etc/firewalld/zones/dmz.xml 958dce439fe299ce0b0fdb10c4c18412269fbab3f09660e4b210962728554953 /etc/firewalld/firewalld.conf STDERR: Shared connection to 127.0.0.3 closed. TASK [linux-system-roles.firewall : Calculate what has changed] **************** task path: /tmp/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/main.yml:86 Thursday 23 June 2022 20:38:22 +0000 (0:00:00.273) 0:00:11.251 ********* changed: [/cache/centos-7.qcow2c.snap] => { "ansible_facts": { "firewall_lib_result": { "changed": true } }, "changed": true } TASK [linux-system-roles.firewall : Show diffs] ******************************** task path: /tmp/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/main.yml:95 Thursday 23 June 2022 20:38:22 +0000 (0:00:00.079) 0:00:11.330 ********* skipping: [/cache/centos-7.qcow2c.snap] => {} META: role_complete for /cache/centos-7.qcow2c.snap TASK [Fail if no changes are done] ********************************************* task path: /tmp/tmpaiuxunkc/tests/tests_zone.yml:59 Thursday 23 June 2022 20:38:22 +0000 (0:00:00.044) 0:00:11.375 ********* skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Setup firewalld again] *************************************************** task path: /tmp/tmpaiuxunkc/tests/tests_zone.yml:65 Thursday 23 June 2022 20:38:22 +0000 (0:00:00.032) 0:00:11.408 ********* TASK [linux-system-roles.firewall : include_tasks] ***************************** task path: /tmp/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/main.yml:1 Thursday 23 June 2022 20:38:22 +0000 (0:00:00.053) 0:00:11.461 ********* included: /tmp/tmpaiuxunkc/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/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Thursday 23 June 2022 20:38:22 +0000 (0:00:00.041) 0:00:11.503 ********* ok: [/cache/centos-7.qcow2c.snap] TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 Thursday 23 June 2022 20:38:23 +0000 (0:00:00.424) 0:00:11.927 ********* 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/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Thursday 23 June 2022 20:38:23 +0000 (0:00:00.551) 0:00:12.479 ********* 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/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Thursday 23 June 2022 20:38:24 +0000 (0:00:00.515) 0:00:12.994 ********* 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/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Thursday 23 June 2022 20:38:24 +0000 (0:00:00.039) 0:00:13.033 ********* ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Thu 2022-06-23 20:38:10 UTC", "ActiveEnterTimestampMonotonic": "181727667", "ActiveExitTimestamp": "Thu 2022-06-23 20:38:09 UTC", "ActiveExitTimestampMonotonic": "180772136", "ActiveState": "active", "After": "system.slice dbus.service polkit.service basic.target", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Thu 2022-06-23 20:38:10 UTC", "AssertTimestampMonotonic": "181531829", "Before": "shutdown.target network-pre.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": "Thu 2022-06-23 20:38:10 UTC", "ConditionTimestampMonotonic": "181531829", "Conflicts": "ip6tables.service shutdown.target ebtables.service ipset.service iptables.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": "18498", "ExecMainStartTimestamp": "Thu 2022-06-23 20:38:10 UTC", "ExecMainStartTimestampMonotonic": "181532788", "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=[Thu 2022-06-23 20:38:10 UTC] ; stop_time=[n/a] ; pid=18498 ; 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": "Thu 2022-06-23 20:38:10 UTC", "InactiveEnterTimestampMonotonic": "181530748", "InactiveExitTimestamp": "Thu 2022-06-23 20:38:10 UTC", "InactiveExitTimestampMonotonic": "181532825", "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": "18498", "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": "Thu 2022-06-23 20:38:10 UTC", "WatchdogTimestampMonotonic": "181727587", "WatchdogUSec": "0" } } TASK [linux-system-roles.firewall : Check if previous replaced is defined] ***** task path: /tmp/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/main.yml:9 Thursday 23 June 2022 20:38:24 +0000 (0:00:00.381) 0:00:13.415 ********* 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/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/main.yml:18 Thursday 23 June 2022 20:38:24 +0000 (0:00:00.048) 0:00:13.463 ********* 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) e2b071ca9b919b8fd60a4fe1e00e4f792ec2245359e8c48027020970791176d1 /etc/firewalld/zones/internal.xml 610e6e9bafe289c126adb751e772cd0224012f12738a8b8011454b1da8865c18 /etc/firewalld/zones/customzone.xml 1fbd6fcd1ca29e4438f7c982e2b9d595a93b93c1f9bdfbbf18745493df02e13e /etc/firewalld/zones/public.xml df2e066f9b8c0677c4887aa9a7032c4f94480408ff740036d98e648d11dd84c5 /etc/firewalld/zones/dmz.xml 958dce439fe299ce0b0fdb10c4c18412269fbab3f09660e4b210962728554953 /etc/firewalld/firewalld.conf STDERR: Shared connection to 127.0.0.3 closed. TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/main.yml:40 Thursday 23 June 2022 20:38:25 +0000 (0:00:01.233) 0:00:14.697 ********* ok: [/cache/centos-7.qcow2c.snap] => (item={'zone': 'internal', 'service': ['tftp', 'ftp'], 'port': ['443/tcp', '443/udp'], 'forward_port': ['447/tcp;;1.2.3.4', '448/tcp;;1.2.3.5'], 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "forward_port": [ "447/tcp;;1.2.3.4", "448/tcp;;1.2.3.5" ], "port": [ "443/tcp", "443/udp" ], "service": [ "tftp", "ftp" ], "state": "enabled", "zone": "internal" } } ok: [/cache/centos-7.qcow2c.snap] => (item={'zone': 'internal', 'service': ['tftp', 'ftp'], 'port': ['443/tcp', '443/udp'], 'forward_port': ['447/tcp;;1.2.3.4', '448/tcp;;1.2.3.5'], 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "forward_port": [ "447/tcp;;1.2.3.4", "448/tcp;;1.2.3.5" ], "port": [ "443/tcp", "443/udp" ], "service": [ "tftp", "ftp" ], "state": "enabled", "zone": "internal" } } ok: [/cache/centos-7.qcow2c.snap] => (item={'zone': 'customzone', 'permanent': True, 'state': 'present'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "permanent": true, "state": "present", "zone": "customzone" } } ok: [/cache/centos-7.qcow2c.snap] => (item={'zone': 'customzone', 'permanent': True, 'masquerade': True, 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "masquerade": true, "permanent": true, "state": "enabled", "zone": "customzone" } } ok: [/cache/centos-7.qcow2c.snap] => (item={'set_default_zone': 'dmz', 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "set_default_zone": "dmz", "state": "enabled" } } ok: [/cache/centos-7.qcow2c.snap] => (item={'service': 'http', 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "service": "http", "state": "enabled" } } TASK [linux-system-roles.firewall : Get config files, checksums after] ********* task path: /tmp/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/main.yml:78 Thursday 23 June 2022 20:38:29 +0000 (0:00:03.334) 0:00:18.031 ********* 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) e2b071ca9b919b8fd60a4fe1e00e4f792ec2245359e8c48027020970791176d1 /etc/firewalld/zones/internal.xml 610e6e9bafe289c126adb751e772cd0224012f12738a8b8011454b1da8865c18 /etc/firewalld/zones/customzone.xml 1fbd6fcd1ca29e4438f7c982e2b9d595a93b93c1f9bdfbbf18745493df02e13e /etc/firewalld/zones/public.xml df2e066f9b8c0677c4887aa9a7032c4f94480408ff740036d98e648d11dd84c5 /etc/firewalld/zones/dmz.xml 958dce439fe299ce0b0fdb10c4c18412269fbab3f09660e4b210962728554953 /etc/firewalld/firewalld.conf STDERR: Shared connection to 127.0.0.3 closed. TASK [linux-system-roles.firewall : Calculate what has changed] **************** task path: /tmp/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/main.yml:86 Thursday 23 June 2022 20:38:29 +0000 (0:00:00.262) 0:00:18.294 ********* ok: [/cache/centos-7.qcow2c.snap] => { "ansible_facts": { "firewall_lib_result": { "changed": false } }, "changed": false } TASK [linux-system-roles.firewall : Show diffs] ******************************** task path: /tmp/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/main.yml:95 Thursday 23 June 2022 20:38:29 +0000 (0:00:00.048) 0:00:18.343 ********* skipping: [/cache/centos-7.qcow2c.snap] => {} META: role_complete for /cache/centos-7.qcow2c.snap TASK [Fail on newly changes] *************************************************** task path: /tmp/tmpaiuxunkc/tests/tests_zone.yml:95 Thursday 23 June 2022 20:38:29 +0000 (0:00:00.044) 0:00:18.387 ********* skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify firewalld zone internal services] ********************************* task path: /tmp/tmpaiuxunkc/tests/tests_zone.yml:101 Thursday 23 June 2022 20:38:29 +0000 (0:00:00.035) 0:00:18.423 ********* changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-services" ], "delta": "0:00:00.270752", "end": "2022-06-23 20:38:30.250921", "failed_when_result": false, "rc": 0, "start": "2022-06-23 20:38:29.980169" } STDOUT: dhcpv6-client ftp mdns samba-client ssh tftp TASK [Verify firewalld zone internal ports] ************************************ task path: /tmp/tmpaiuxunkc/tests/tests_zone.yml:108 Thursday 23 June 2022 20:38:30 +0000 (0:00:00.709) 0:00:19.132 ********* changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-ports" ], "delta": "0:00:00.270357", "end": "2022-06-23 20:38:30.840585", "failed_when_result": false, "rc": 0, "start": "2022-06-23 20:38:30.570228" } STDOUT: 443/tcp 443/udp TASK [Verify firewalld zone internal forward ports] **************************** task path: /tmp/tmpaiuxunkc/tests/tests_zone.yml:115 Thursday 23 June 2022 20:38:30 +0000 (0:00:00.588) 0:00:19.721 ********* changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-forward-ports" ], "delta": "0:00:00.259730", "end": "2022-06-23 20:38:31.410516", "failed_when_result": false, "rc": 0, "start": "2022-06-23 20:38:31.150786" } STDOUT: port=447:proto=tcp:toport=:toaddr=1.2.3.4 port=448:proto=tcp:toport=:toaddr=1.2.3.5 TASK [Verify custom zone has masquerade added to it] *************************** task path: /tmp/tmpaiuxunkc/tests/tests_zone.yml:124 Thursday 23 June 2022 20:38:31 +0000 (0:00:00.570) 0:00:20.291 ********* changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=customzone", "--query-masquerade" ], "delta": "0:00:00.275199", "end": "2022-06-23 20:38:32.000549", "failed_when_result": false, "rc": 0, "start": "2022-06-23 20:38:31.725350" } STDOUT: yes TASK [Verify custom zone has masquerade added to it] *************************** task path: /tmp/tmpaiuxunkc/tests/tests_zone.yml:130 Thursday 23 June 2022 20:38:32 +0000 (0:00:00.592) 0:00:20.884 ********* changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "cmd": [ "firewall-cmd", "--get-default-zone" ], "delta": "0:00:00.263111", "end": "2022-06-23 20:38:32.597649", "failed_when_result": false, "rc": 0, "start": "2022-06-23 20:38:32.334538" } STDOUT: dmz TASK [Verify that service http has been added to the default zone dmz] ********* task path: /tmp/tmpaiuxunkc/tests/tests_zone.yml:136 Thursday 23 June 2022 20:38:32 +0000 (0:00:00.598) 0:00:21.483 ********* changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "cmd": [ "firewall-cmd", "--zone=dmz", "--query-service=http" ], "delta": "0:00:00.274445", "end": "2022-06-23 20:38:33.211875", "failed_when_result": false, "rc": 0, "start": "2022-06-23 20:38:32.937430" } STDOUT: yes TASK [Remove customzone zone] ************************************************** task path: /tmp/tmpaiuxunkc/tests/tests_zone.yml:148 Thursday 23 June 2022 20:38:33 +0000 (0:00:00.612) 0:00:22.095 ********* changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--delete-zone=customzone" ], "delta": "0:00:00.263931", "end": "2022-06-23 20:38:33.796357", "failed_when_result": false, "rc": 0, "start": "2022-06-23 20:38:33.532426" } STDOUT: success TASK [Reset to zone defaults] ************************************************** task path: /tmp/tmpaiuxunkc/tests/tests_zone.yml:153 Thursday 23 June 2022 20:38:33 +0000 (0:00:00.583) 0:00:22.679 ********* changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "cmd": "firewall-cmd --permanent --load-zone-defaults=internal\nfirewall-cmd --permanent --load-zone-defaults=external\nfirewall-cmd --permanent --load-zone-defaults=trusted\nfirewall-cmd --reload\n", "delta": "0:00:01.265930", "end": "2022-06-23 20:38:35.387041", "rc": 0, "start": "2022-06-23 20:38:34.121111" } STDOUT: success success STDERR: Error: NO_DEFAULTS: external Error: NO_DEFAULTS: trusted META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-7.qcow2c.snap : ok=36 changed=9 unreachable=0 failed=0 skipped=12 rescued=0 ignored=0 Thursday 23 June 2022 20:38:35 +0000 (0:00:01.597) 0:00:24.277 ********* =============================================================================== linux-system-roles.firewall : Configure firewall ------------------------ 6.66s /tmp/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/main.yml:40 ---- linux-system-roles.firewall : Configure firewall ------------------------ 1.67s /tmp/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/main.yml:40 ---- Reset to zone defaults -------------------------------------------------- 1.60s /tmp/tmpaiuxunkc/tests/tests_zone.yml:153 ------------------------------------- linux-system-roles.firewall : Get config files, checksums before and remove --- 1.45s /tmp/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/main.yml:18 ---- Gathering Facts --------------------------------------------------------- 1.03s /tmp/tmpaiuxunkc/tests/tests_zone.yml:1 --------------------------------------- linux-system-roles.firewall : Enable and start firewalld service -------- 0.78s /tmp/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 ----- Verify firewalld zone internal services --------------------------------- 0.71s /tmp/tmpaiuxunkc/tests/tests_zone.yml:101 ------------------------------------- linux-system-roles.firewall : Install firewalld ------------------------- 0.68s /tmp/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 linux-system-roles.firewall : Enable and start firewalld service -------- 0.61s /tmp/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 ----- Verify that service http has been added to the default zone dmz --------- 0.61s /tmp/tmpaiuxunkc/tests/tests_zone.yml:136 ------------------------------------- Verify custom zone has masquerade added to it --------------------------- 0.60s /tmp/tmpaiuxunkc/tests/tests_zone.yml:130 ------------------------------------- Verify custom zone has masquerade added to it --------------------------- 0.59s /tmp/tmpaiuxunkc/tests/tests_zone.yml:124 ------------------------------------- Verify firewalld zone internal ports ------------------------------------ 0.59s /tmp/tmpaiuxunkc/tests/tests_zone.yml:108 ------------------------------------- Remove customzone zone -------------------------------------------------- 0.58s /tmp/tmpaiuxunkc/tests/tests_zone.yml:148 ------------------------------------- Verify firewalld zone internal forward ports ---------------------------- 0.57s /tmp/tmpaiuxunkc/tests/tests_zone.yml:115 ------------------------------------- linux-system-roles.firewall : Install firewalld ------------------------- 0.55s /tmp/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 linux-system-roles.firewall : Install python-firewall ------------------- 0.54s /tmp/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 linux-system-roles.firewall : Install firewalld ------------------------- 0.54s /tmp/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 linux-system-roles.firewall : Get config files, checksums after --------- 0.54s /tmp/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/main.yml:78 ---- linux-system-roles.firewall : Install python-firewall ------------------- 0.52s /tmp/tmpaiuxunkc/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 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/tmpe2xtogrr 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_zone.yml ******************************************************* 1 plays in /tmp/tmpp6g5_ykf/tests/firewall/tests_zone.yml PLAY [Test firewalld zones] **************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpp6g5_ykf/tests/firewall/tests_zone.yml:1 Thursday 23 June 2022 20:41:41 +0000 (0:00:00.013) 0:00:00.013 ********* ok: [/cache/centos-7.qcow2c.snap] META: ran handlers TASK [Verify used firewalld zones] ********************************************* task path: /tmp/tmpp6g5_ykf/tests/firewall/tests_zone.yml:11 Thursday 23 June 2022 20:41:42 +0000 (0:00:00.995) 0:00:01.009 ********* TASK [fedora.linux_system_roles.firewall : include_tasks] ********************** task path: /tmp/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:1 Thursday 23 June 2022 20:41:42 +0000 (0:00:00.064) 0:00:01.074 ********* included: /tmp/tmpe2xtogrr/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/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Thursday 23 June 2022 20:41:42 +0000 (0:00:00.049) 0:00:01.123 ********* ok: [/cache/centos-7.qcow2c.snap] TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 Thursday 23 June 2022 20:41:42 +0000 (0:00:00.409) 0:00:01.533 ********* 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/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:12 Thursday 23 June 2022 20:41:43 +0000 (0:00:00.687) 0:00:02.220 ********* 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/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:18 Thursday 23 June 2022 20:41:44 +0000 (0:00:00.507) 0:00:02.728 ********* 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/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Thursday 23 June 2022 20:41:44 +0000 (0:00:00.038) 0:00:02.767 ********* ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Thu 2022-06-23 20:41:40 UTC", "ActiveEnterTimestampMonotonic": "180235128", "ActiveExitTimestamp": "Thu 2022-06-23 20:41:39 UTC", "ActiveExitTimestampMonotonic": "179310680", "ActiveState": "active", "After": "dbus.service basic.target polkit.service system.slice", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Thu 2022-06-23 20:41:40 UTC", "AssertTimestampMonotonic": "180048311", "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": "Thu 2022-06-23 20:41:40 UTC", "ConditionTimestampMonotonic": "180048311", "Conflicts": "shutdown.target ipset.service ip6tables.service ebtables.service iptables.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": "18499", "ExecMainStartTimestamp": "Thu 2022-06-23 20:41:40 UTC", "ExecMainStartTimestampMonotonic": "180049079", "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=[Thu 2022-06-23 20:41:40 UTC] ; stop_time=[n/a] ; pid=18499 ; 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": "Thu 2022-06-23 20:41:40 UTC", "InactiveEnterTimestampMonotonic": "180047461", "InactiveExitTimestamp": "Thu 2022-06-23 20:41:40 UTC", "InactiveExitTimestampMonotonic": "180049112", "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": "18499", "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": "Thu 2022-06-23 20:41:40 UTC", "WatchdogTimestampMonotonic": "180235058", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.firewall : Check if previous replaced is defined] *** task path: /tmp/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:9 Thursday 23 June 2022 20:41:44 +0000 (0:00:00.629) 0:00:03.397 ********* 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/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:14 Thursday 23 June 2022 20:41:44 +0000 (0:00:00.054) 0:00:03.451 ********* 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/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:36 Thursday 23 June 2022 20:41:44 +0000 (0:00:00.036) 0:00:03.488 ********* ok: [/cache/centos-7.qcow2c.snap] => (item={'zone': 'internal', 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "internal" } } ok: [/cache/centos-7.qcow2c.snap] => (item={'zone': 'external', 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "external" } } ok: [/cache/centos-7.qcow2c.snap] => (item={'zone': 'trusted', 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "trusted" } } TASK [fedora.linux_system_roles.firewall : Get config files, checksums after] *** task path: /tmp/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:71 Thursday 23 June 2022 20:41:46 +0000 (0:00:01.657) 0:00:05.146 ********* skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Calculate what has changed] ********* task path: /tmp/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:79 Thursday 23 June 2022 20:41:46 +0000 (0:00:00.034) 0:00:05.181 ********* skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Show diffs] ************************* task path: /tmp/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:85 Thursday 23 June 2022 20:41:46 +0000 (0:00:00.036) 0:00:05.218 ********* skipping: [/cache/centos-7.qcow2c.snap] => {} META: role_complete for /cache/centos-7.qcow2c.snap TASK [Fail on missing zones] *************************************************** task path: /tmp/tmpp6g5_ykf/tests/firewall/tests_zone.yml:23 Thursday 23 June 2022 20:41:46 +0000 (0:00:00.042) 0:00:05.260 ********* skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Setup firewalld] ********************************************************* task path: /tmp/tmpp6g5_ykf/tests/firewall/tests_zone.yml:29 Thursday 23 June 2022 20:41:46 +0000 (0:00:00.037) 0:00:05.298 ********* TASK [fedora.linux_system_roles.firewall : include_tasks] ********************** task path: /tmp/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:1 Thursday 23 June 2022 20:41:46 +0000 (0:00:00.060) 0:00:05.359 ********* included: /tmp/tmpe2xtogrr/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/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Thursday 23 June 2022 20:41:46 +0000 (0:00:00.054) 0:00:05.413 ********* ok: [/cache/centos-7.qcow2c.snap] TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 Thursday 23 June 2022 20:41:47 +0000 (0:00:00.404) 0:00:05.817 ********* 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/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:12 Thursday 23 June 2022 20:41:47 +0000 (0:00:00.533) 0:00:06.350 ********* 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/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:18 Thursday 23 June 2022 20:41:48 +0000 (0:00:00.520) 0:00:06.870 ********* 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/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Thursday 23 June 2022 20:41:48 +0000 (0:00:00.039) 0:00:06.910 ********* ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Thu 2022-06-23 20:41:40 UTC", "ActiveEnterTimestampMonotonic": "180235128", "ActiveExitTimestamp": "Thu 2022-06-23 20:41:39 UTC", "ActiveExitTimestampMonotonic": "179310680", "ActiveState": "active", "After": "dbus.service basic.target polkit.service system.slice", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Thu 2022-06-23 20:41:40 UTC", "AssertTimestampMonotonic": "180048311", "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": "Thu 2022-06-23 20:41:40 UTC", "ConditionTimestampMonotonic": "180048311", "Conflicts": "shutdown.target ipset.service ip6tables.service ebtables.service iptables.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": "18499", "ExecMainStartTimestamp": "Thu 2022-06-23 20:41:40 UTC", "ExecMainStartTimestampMonotonic": "180049079", "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=[Thu 2022-06-23 20:41:40 UTC] ; stop_time=[n/a] ; pid=18499 ; 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": "Thu 2022-06-23 20:41:40 UTC", "InactiveEnterTimestampMonotonic": "180047461", "InactiveExitTimestamp": "Thu 2022-06-23 20:41:40 UTC", "InactiveExitTimestampMonotonic": "180049112", "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": "18499", "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": "Thu 2022-06-23 20:41:40 UTC", "WatchdogTimestampMonotonic": "180235058", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.firewall : Check if previous replaced is defined] *** task path: /tmp/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:9 Thursday 23 June 2022 20:41:48 +0000 (0:00:00.392) 0:00:07.302 ********* 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/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:14 Thursday 23 June 2022 20:41:48 +0000 (0:00:00.051) 0:00:07.353 ********* 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/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:36 Thursday 23 June 2022 20:41:48 +0000 (0:00:00.216) 0:00:07.569 ********* ok: [/cache/centos-7.qcow2c.snap] => (item={'zone': 'internal', 'service': ['tftp', 'ftp'], 'port': ['443/tcp', '443/udp'], 'forward_port': ['447/tcp;;1.2.3.4', '448/tcp;;1.2.3.5'], 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "forward_port": [ "447/tcp;;1.2.3.4", "448/tcp;;1.2.3.5" ], "port": [ "443/tcp", "443/udp" ], "service": [ "tftp", "ftp" ], "state": "enabled", "zone": "internal" } } ok: [/cache/centos-7.qcow2c.snap] => (item={'zone': 'internal', 'service': ['tftp', 'ftp'], 'port': ['443/tcp', '443/udp'], 'forward_port': ['447/tcp;;1.2.3.4', '448/tcp;;1.2.3.5'], 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "forward_port": [ "447/tcp;;1.2.3.4", "448/tcp;;1.2.3.5" ], "port": [ "443/tcp", "443/udp" ], "service": [ "tftp", "ftp" ], "state": "enabled", "zone": "internal" } } ok: [/cache/centos-7.qcow2c.snap] => (item={'zone': 'customzone', 'permanent': True, 'state': 'present'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "permanent": true, "state": "present", "zone": "customzone" } } ok: [/cache/centos-7.qcow2c.snap] => (item={'zone': 'customzone', 'permanent': True, 'masquerade': True, 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "masquerade": true, "permanent": true, "state": "enabled", "zone": "customzone" } } ok: [/cache/centos-7.qcow2c.snap] => (item={'set_default_zone': 'dmz', 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "set_default_zone": "dmz", "state": "enabled" } } ok: [/cache/centos-7.qcow2c.snap] => (item={'service': 'http', 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "service": "http", "state": "enabled" } } TASK [fedora.linux_system_roles.firewall : Get config files, checksums after] *** task path: /tmp/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:71 Thursday 23 June 2022 20:41:52 +0000 (0:00:03.311) 0:00:10.881 ********* 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) e2b071ca9b919b8fd60a4fe1e00e4f792ec2245359e8c48027020970791176d1 /etc/firewalld/zones/internal.xml 610e6e9bafe289c126adb751e772cd0224012f12738a8b8011454b1da8865c18 /etc/firewalld/zones/customzone.xml 1fbd6fcd1ca29e4438f7c982e2b9d595a93b93c1f9bdfbbf18745493df02e13e /etc/firewalld/zones/public.xml df2e066f9b8c0677c4887aa9a7032c4f94480408ff740036d98e648d11dd84c5 /etc/firewalld/zones/dmz.xml 958dce439fe299ce0b0fdb10c4c18412269fbab3f09660e4b210962728554953 /etc/firewalld/firewalld.conf STDERR: Shared connection to 127.0.0.3 closed. TASK [fedora.linux_system_roles.firewall : Calculate what has changed] ********* task path: /tmp/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:79 Thursday 23 June 2022 20:41:52 +0000 (0:00:00.294) 0:00:11.175 ********* changed: [/cache/centos-7.qcow2c.snap] => { "ansible_facts": { "firewall_lib_result": { "changed": true } }, "changed": true } TASK [fedora.linux_system_roles.firewall : Show diffs] ************************* task path: /tmp/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:85 Thursday 23 June 2022 20:41:52 +0000 (0:00:00.051) 0:00:11.227 ********* skipping: [/cache/centos-7.qcow2c.snap] => {} META: role_complete for /cache/centos-7.qcow2c.snap TASK [Fail if no changes are done] ********************************************* task path: /tmp/tmpp6g5_ykf/tests/firewall/tests_zone.yml:57 Thursday 23 June 2022 20:41:52 +0000 (0:00:00.045) 0:00:11.272 ********* skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Setup firewalld again] *************************************************** task path: /tmp/tmpp6g5_ykf/tests/firewall/tests_zone.yml:63 Thursday 23 June 2022 20:41:52 +0000 (0:00:00.035) 0:00:11.307 ********* TASK [fedora.linux_system_roles.firewall : include_tasks] ********************** task path: /tmp/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:1 Thursday 23 June 2022 20:41:52 +0000 (0:00:00.056) 0:00:11.364 ********* included: /tmp/tmpe2xtogrr/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/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Thursday 23 June 2022 20:41:52 +0000 (0:00:00.049) 0:00:11.413 ********* ok: [/cache/centos-7.qcow2c.snap] TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 Thursday 23 June 2022 20:41:53 +0000 (0:00:00.443) 0:00:11.856 ********* 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/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:12 Thursday 23 June 2022 20:41:53 +0000 (0:00:00.516) 0:00:12.372 ********* 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/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:18 Thursday 23 June 2022 20:41:54 +0000 (0:00:00.508) 0:00:12.881 ********* 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/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Thursday 23 June 2022 20:41:54 +0000 (0:00:00.039) 0:00:12.920 ********* ok: [/cache/centos-7.qcow2c.snap] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Thu 2022-06-23 20:41:40 UTC", "ActiveEnterTimestampMonotonic": "180235128", "ActiveExitTimestamp": "Thu 2022-06-23 20:41:39 UTC", "ActiveExitTimestampMonotonic": "179310680", "ActiveState": "active", "After": "dbus.service basic.target polkit.service system.slice", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Thu 2022-06-23 20:41:40 UTC", "AssertTimestampMonotonic": "180048311", "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": "Thu 2022-06-23 20:41:40 UTC", "ConditionTimestampMonotonic": "180048311", "Conflicts": "shutdown.target ipset.service ip6tables.service ebtables.service iptables.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": "18499", "ExecMainStartTimestamp": "Thu 2022-06-23 20:41:40 UTC", "ExecMainStartTimestampMonotonic": "180049079", "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=[Thu 2022-06-23 20:41:40 UTC] ; stop_time=[n/a] ; pid=18499 ; 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": "Thu 2022-06-23 20:41:40 UTC", "InactiveEnterTimestampMonotonic": "180047461", "InactiveExitTimestamp": "Thu 2022-06-23 20:41:40 UTC", "InactiveExitTimestampMonotonic": "180049112", "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": "18499", "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": "Thu 2022-06-23 20:41:40 UTC", "WatchdogTimestampMonotonic": "180235058", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.firewall : Check if previous replaced is defined] *** task path: /tmp/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:9 Thursday 23 June 2022 20:41:54 +0000 (0:00:00.383) 0:00:13.304 ********* 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/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:14 Thursday 23 June 2022 20:41:54 +0000 (0:00:00.049) 0:00:13.354 ********* 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) e2b071ca9b919b8fd60a4fe1e00e4f792ec2245359e8c48027020970791176d1 /etc/firewalld/zones/internal.xml 610e6e9bafe289c126adb751e772cd0224012f12738a8b8011454b1da8865c18 /etc/firewalld/zones/customzone.xml 1fbd6fcd1ca29e4438f7c982e2b9d595a93b93c1f9bdfbbf18745493df02e13e /etc/firewalld/zones/public.xml df2e066f9b8c0677c4887aa9a7032c4f94480408ff740036d98e648d11dd84c5 /etc/firewalld/zones/dmz.xml 958dce439fe299ce0b0fdb10c4c18412269fbab3f09660e4b210962728554953 /etc/firewalld/firewalld.conf STDERR: Shared connection to 127.0.0.3 closed. TASK [fedora.linux_system_roles.firewall : Configure firewall] ***************** task path: /tmp/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:36 Thursday 23 June 2022 20:41:55 +0000 (0:00:01.205) 0:00:14.559 ********* ok: [/cache/centos-7.qcow2c.snap] => (item={'zone': 'internal', 'service': ['tftp', 'ftp'], 'port': ['443/tcp', '443/udp'], 'forward_port': ['447/tcp;;1.2.3.4', '448/tcp;;1.2.3.5'], 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "forward_port": [ "447/tcp;;1.2.3.4", "448/tcp;;1.2.3.5" ], "port": [ "443/tcp", "443/udp" ], "service": [ "tftp", "ftp" ], "state": "enabled", "zone": "internal" } } ok: [/cache/centos-7.qcow2c.snap] => (item={'zone': 'internal', 'service': ['tftp', 'ftp'], 'port': ['443/tcp', '443/udp'], 'forward_port': ['447/tcp;;1.2.3.4', '448/tcp;;1.2.3.5'], 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "forward_port": [ "447/tcp;;1.2.3.4", "448/tcp;;1.2.3.5" ], "port": [ "443/tcp", "443/udp" ], "service": [ "tftp", "ftp" ], "state": "enabled", "zone": "internal" } } ok: [/cache/centos-7.qcow2c.snap] => (item={'zone': 'customzone', 'permanent': True, 'state': 'present'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "permanent": true, "state": "present", "zone": "customzone" } } ok: [/cache/centos-7.qcow2c.snap] => (item={'zone': 'customzone', 'permanent': True, 'masquerade': True, 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "masquerade": true, "permanent": true, "state": "enabled", "zone": "customzone" } } ok: [/cache/centos-7.qcow2c.snap] => (item={'set_default_zone': 'dmz', 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "set_default_zone": "dmz", "state": "enabled" } } ok: [/cache/centos-7.qcow2c.snap] => (item={'service': 'http', 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "service": "http", "state": "enabled" } } TASK [fedora.linux_system_roles.firewall : Get config files, checksums after] *** task path: /tmp/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:71 Thursday 23 June 2022 20:41:59 +0000 (0:00:03.279) 0:00:17.839 ********* 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) e2b071ca9b919b8fd60a4fe1e00e4f792ec2245359e8c48027020970791176d1 /etc/firewalld/zones/internal.xml 610e6e9bafe289c126adb751e772cd0224012f12738a8b8011454b1da8865c18 /etc/firewalld/zones/customzone.xml 1fbd6fcd1ca29e4438f7c982e2b9d595a93b93c1f9bdfbbf18745493df02e13e /etc/firewalld/zones/public.xml df2e066f9b8c0677c4887aa9a7032c4f94480408ff740036d98e648d11dd84c5 /etc/firewalld/zones/dmz.xml 958dce439fe299ce0b0fdb10c4c18412269fbab3f09660e4b210962728554953 /etc/firewalld/firewalld.conf STDERR: Shared connection to 127.0.0.3 closed. TASK [fedora.linux_system_roles.firewall : Calculate what has changed] ********* task path: /tmp/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:79 Thursday 23 June 2022 20:41:59 +0000 (0:00:00.274) 0:00:18.113 ********* ok: [/cache/centos-7.qcow2c.snap] => { "ansible_facts": { "firewall_lib_result": { "changed": false } }, "changed": false } TASK [fedora.linux_system_roles.firewall : Show diffs] ************************* task path: /tmp/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:85 Thursday 23 June 2022 20:41:59 +0000 (0:00:00.051) 0:00:18.165 ********* skipping: [/cache/centos-7.qcow2c.snap] => {} META: role_complete for /cache/centos-7.qcow2c.snap TASK [Fail on newly changes] *************************************************** task path: /tmp/tmpp6g5_ykf/tests/firewall/tests_zone.yml:91 Thursday 23 June 2022 20:41:59 +0000 (0:00:00.044) 0:00:18.209 ********* skipping: [/cache/centos-7.qcow2c.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify firewalld zone internal services] ********************************* task path: /tmp/tmpp6g5_ykf/tests/firewall/tests_zone.yml:97 Thursday 23 June 2022 20:41:59 +0000 (0:00:00.035) 0:00:18.245 ********* changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-services" ], "delta": "0:00:00.268904", "end": "2022-06-23 20:42:00.591140", "failed_when_result": false, "rc": 0, "start": "2022-06-23 20:42:00.322236" } STDOUT: dhcpv6-client ftp mdns samba-client ssh tftp TASK [Verify firewalld zone internal ports] ************************************ task path: /tmp/tmpp6g5_ykf/tests/firewall/tests_zone.yml:102 Thursday 23 June 2022 20:42:00 +0000 (0:00:00.707) 0:00:18.953 ********* changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-ports" ], "delta": "0:00:00.254411", "end": "2022-06-23 20:42:01.160409", "failed_when_result": false, "rc": 0, "start": "2022-06-23 20:42:00.905998" } STDOUT: 443/tcp 443/udp TASK [Verify firewalld zone internal forward ports] **************************** task path: /tmp/tmpp6g5_ykf/tests/firewall/tests_zone.yml:107 Thursday 23 June 2022 20:42:00 +0000 (0:00:00.571) 0:00:19.524 ********* changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-forward-ports" ], "delta": "0:00:00.262302", "end": "2022-06-23 20:42:01.746755", "failed_when_result": false, "rc": 0, "start": "2022-06-23 20:42:01.484453" } STDOUT: port=447:proto=tcp:toport=:toaddr=1.2.3.4 port=448:proto=tcp:toport=:toaddr=1.2.3.5 TASK [Verify custom zone has masquerade added to it] *************************** task path: /tmp/tmpp6g5_ykf/tests/firewall/tests_zone.yml:112 Thursday 23 June 2022 20:42:01 +0000 (0:00:00.585) 0:00:20.109 ********* changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=customzone", "--query-masquerade" ], "delta": "0:00:00.271426", "end": "2022-06-23 20:42:02.336010", "failed_when_result": false, "rc": 0, "start": "2022-06-23 20:42:02.064584" } STDOUT: yes TASK [Verify custom zone has masquerade added to it] *************************** task path: /tmp/tmpp6g5_ykf/tests/firewall/tests_zone.yml:117 Thursday 23 June 2022 20:42:02 +0000 (0:00:00.590) 0:00:20.700 ********* changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "cmd": [ "firewall-cmd", "--get-default-zone" ], "delta": "0:00:00.250393", "end": "2022-06-23 20:42:02.914557", "failed_when_result": false, "rc": 0, "start": "2022-06-23 20:42:02.664164" } STDOUT: dmz TASK [Verify that service http has been added to the default zone dmz] ********* task path: /tmp/tmpp6g5_ykf/tests/firewall/tests_zone.yml:122 Thursday 23 June 2022 20:42:02 +0000 (0:00:00.581) 0:00:21.281 ********* changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "cmd": [ "firewall-cmd", "--zone=dmz", "--query-service=http" ], "delta": "0:00:00.255365", "end": "2022-06-23 20:42:03.495247", "failed_when_result": false, "rc": 0, "start": "2022-06-23 20:42:03.239882" } STDOUT: yes TASK [Remove customzone zone] ************************************************** task path: /tmp/tmpp6g5_ykf/tests/firewall/tests_zone.yml:133 Thursday 23 June 2022 20:42:03 +0000 (0:00:00.585) 0:00:21.867 ********* changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--delete-zone=customzone" ], "delta": "0:00:00.266091", "end": "2022-06-23 20:42:04.092247", "failed_when_result": false, "rc": 0, "start": "2022-06-23 20:42:03.826156" } STDOUT: success TASK [Reset to zone defaults] ************************************************** task path: /tmp/tmpp6g5_ykf/tests/firewall/tests_zone.yml:138 Thursday 23 June 2022 20:42:03 +0000 (0:00:00.590) 0:00:22.457 ********* changed: [/cache/centos-7.qcow2c.snap] => { "changed": true, "cmd": "firewall-cmd --permanent --load-zone-defaults=internal\nfirewall-cmd --permanent --load-zone-defaults=external\nfirewall-cmd --permanent --load-zone-defaults=trusted\nfirewall-cmd --reload\n", "delta": "0:00:01.208822", "end": "2022-06-23 20:42:05.621793", "rc": 0, "start": "2022-06-23 20:42:04.412971" } STDOUT: success success STDERR: Error: NO_DEFAULTS: external Error: NO_DEFAULTS: trusted META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-7.qcow2c.snap : ok=36 changed=9 unreachable=0 failed=0 skipped=12 rescued=0 ignored=0 Thursday 23 June 2022 20:42:05 +0000 (0:00:01.532) 0:00:23.989 ********* =============================================================================== fedora.linux_system_roles.firewall : Configure firewall ----------------- 6.59s /tmp/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:36 fedora.linux_system_roles.firewall : Configure firewall ----------------- 1.66s /tmp/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:36 Reset to zone defaults -------------------------------------------------- 1.53s /tmp/tmpp6g5_ykf/tests/firewall/tests_zone.yml:138 ---------------------------- fedora.linux_system_roles.firewall : Get config files, checksums before and remove --- 1.42s /tmp/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:14 Gathering Facts --------------------------------------------------------- 1.00s /tmp/tmpp6g5_ykf/tests/firewall/tests_zone.yml:1 ------------------------------ fedora.linux_system_roles.firewall : Enable and start firewalld service --- 0.78s /tmp/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Verify firewalld zone internal services --------------------------------- 0.71s /tmp/tmpp6g5_ykf/tests/firewall/tests_zone.yml:97 ----------------------------- fedora.linux_system_roles.firewall : Install firewalld ------------------ 0.69s /tmp/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 fedora.linux_system_roles.firewall : Enable and start firewalld service --- 0.63s /tmp/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Verify custom zone has masquerade added to it --------------------------- 0.59s /tmp/tmpp6g5_ykf/tests/firewall/tests_zone.yml:112 ---------------------------- Remove customzone zone -------------------------------------------------- 0.59s /tmp/tmpp6g5_ykf/tests/firewall/tests_zone.yml:133 ---------------------------- Verify firewalld zone internal forward ports ---------------------------- 0.59s /tmp/tmpp6g5_ykf/tests/firewall/tests_zone.yml:107 ---------------------------- Verify that service http has been added to the default zone dmz --------- 0.59s /tmp/tmpp6g5_ykf/tests/firewall/tests_zone.yml:122 ---------------------------- Verify custom zone has masquerade added to it --------------------------- 0.58s /tmp/tmpp6g5_ykf/tests/firewall/tests_zone.yml:117 ---------------------------- Verify firewalld zone internal ports ------------------------------------ 0.57s /tmp/tmpp6g5_ykf/tests/firewall/tests_zone.yml:102 ---------------------------- fedora.linux_system_roles.firewall : Get config files, checksums after --- 0.57s /tmp/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:71 fedora.linux_system_roles.firewall : Install firewalld ------------------ 0.53s /tmp/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 fedora.linux_system_roles.firewall : Install python-firewall ------------ 0.52s /tmp/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:12 fedora.linux_system_roles.firewall : Install firewalld ------------------ 0.52s /tmp/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 fedora.linux_system_roles.firewall : Install python-firewall ------------ 0.51s /tmp/tmpe2xtogrr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:12