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/tmpvyhyaxwy 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/tmp55lbl9aa/tests/tests_zone.yml PLAY [Test firewalld zones] **************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp55lbl9aa/tests/tests_zone.yml:1 Friday 22 July 2022 00:21:41 +0000 (0:00:00.012) 0:00:00.012 *********** ok: [/cache/rhel-9.qcow2.snap] META: ran handlers TASK [Verify used firewalld zones] ********************************************* task path: /tmp/tmp55lbl9aa/tests/tests_zone.yml:11 Friday 22 July 2022 00:21:42 +0000 (0:00:01.131) 0:00:01.144 *********** TASK [linux-system-roles.firewall : include_tasks] ***************************** task path: /tmp/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/main.yml:1 Friday 22 July 2022 00:21:42 +0000 (0:00:00.074) 0:00:01.218 *********** included: /tmp/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml for /cache/rhel-9.qcow2.snap TASK [linux-system-roles.firewall : Ensure ansible_facts used by role] ********* task path: /tmp/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Friday 22 July 2022 00:21:42 +0000 (0:00:00.047) 0:00:01.265 *********** ok: [/cache/rhel-9.qcow2.snap] TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 Friday 22 July 2022 00:21:43 +0000 (0:00:00.520) 0:00:01.786 *********** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Friday 22 July 2022 00:21:44 +0000 (0:00:01.067) 0:00:02.854 *********** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Friday 22 July 2022 00:21:44 +0000 (0:00:00.038) 0:00:02.893 *********** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Friday 22 July 2022 00:21:45 +0000 (0:00:00.850) 0:00:03.743 *********** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Thu 2022-07-21 20:21:39 EDT", "ActiveEnterTimestampMonotonic": "224615823", "ActiveExitTimestamp": "Thu 2022-07-21 20:21:39 EDT", "ActiveExitTimestampMonotonic": "224405745", "ActiveState": "active", "After": "basic.target dbus-broker.service sysinit.target dbus.socket system.slice polkit.service", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Thu 2022-07-21 20:21:39 EDT", "AssertTimestampMonotonic": "224486650", "Before": "multi-user.target network-pre.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "317312000", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Thu 2022-07-21 20:21:39 EDT", "ConditionTimestampMonotonic": "224486648", "ConfigurationDirectoryMode": "0755", "Conflicts": "nftables.service shutdown.target iptables.service ebtables.service ipset.service ip6tables.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "\"man:firewalld(1)\"", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "37343", "ExecMainStartTimestamp": "Thu 2022-07-21 20:21:39 EDT", "ExecMainStartTimestampMonotonic": "224488873", "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 }", "ExecReloadEx": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; flags= ; 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-07-21 20:21:39 EDT] ; stop_time=[n/a] ; pid=37343 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; flags= ; start_time=[Thu 2022-07-21 20:21:39 EDT] ; stop_time=[n/a] ; pid=37343 ; code=(null) ; status=0/0 }", "ExitType": "main", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Thu 2022-07-21 20:21:39 EDT", "InactiveEnterTimestampMonotonic": "224486007", "InactiveExitTimestamp": "Thu 2022-07-21 20:21:39 EDT", "InactiveExitTimestampMonotonic": "224489145", "InvocationID": "5b77ba7866f5477880d2b53663cbb6fa", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "6843", "LimitNPROCSoft": "6843", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6843", "LimitSIGPENDINGSoft": "6843", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "37343", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "23715840", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "firewalld.service dbus-org.fedoraproject.FirewallD1.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket sysinit.target system.slice", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Thu 2022-07-21 20:21:39 EDT", "StateChangeTimestampMonotonic": "224615823", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "2", "TasksMax": "10949", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "1min 30s", "TimeoutStopFailureMode": "terminate", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [linux-system-roles.firewall : Check if previous replaced is defined] ***** task path: /tmp/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/main.yml:9 Friday 22 July 2022 00:21:46 +0000 (0:00:00.759) 0:00:04.502 *********** ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "__firewall_previous_replaced": false, "__firewall_python_cmd": "/usr/bin/python3" }, "changed": false } TASK [linux-system-roles.firewall : Get config files, checksums before and remove] *** task path: /tmp/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/main.yml:18 Friday 22 July 2022 00:21:46 +0000 (0:00:00.047) 0:00:04.550 *********** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/main.yml:40 Friday 22 July 2022 00:21:46 +0000 (0:00:00.031) 0:00:04.582 *********** ok: [/cache/rhel-9.qcow2.snap] => (item={'zone': 'internal', 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "internal" } } ok: [/cache/rhel-9.qcow2.snap] => (item={'zone': 'external', 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "external" } } ok: [/cache/rhel-9.qcow2.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/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/main.yml:77 Friday 22 July 2022 00:21:47 +0000 (0:00:01.606) 0:00:06.189 *********** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Calculate what has changed] **************** task path: /tmp/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/main.yml:85 Friday 22 July 2022 00:21:47 +0000 (0:00:00.035) 0:00:06.225 *********** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Show diffs] ******************************** task path: /tmp/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/main.yml:94 Friday 22 July 2022 00:21:47 +0000 (0:00:00.033) 0:00:06.259 *********** skipping: [/cache/rhel-9.qcow2.snap] => {} META: role_complete for /cache/rhel-9.qcow2.snap TASK [Fail on missing zones] *************************************************** task path: /tmp/tmp55lbl9aa/tests/tests_zone.yml:23 Friday 22 July 2022 00:21:47 +0000 (0:00:00.041) 0:00:06.300 *********** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Setup firewalld] ********************************************************* task path: /tmp/tmp55lbl9aa/tests/tests_zone.yml:29 Friday 22 July 2022 00:21:47 +0000 (0:00:00.033) 0:00:06.334 *********** TASK [linux-system-roles.firewall : include_tasks] ***************************** task path: /tmp/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/main.yml:1 Friday 22 July 2022 00:21:47 +0000 (0:00:00.054) 0:00:06.389 *********** included: /tmp/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml for /cache/rhel-9.qcow2.snap TASK [linux-system-roles.firewall : Ensure ansible_facts used by role] ********* task path: /tmp/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Friday 22 July 2022 00:21:47 +0000 (0:00:00.047) 0:00:06.437 *********** ok: [/cache/rhel-9.qcow2.snap] TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 Friday 22 July 2022 00:21:48 +0000 (0:00:00.512) 0:00:06.949 *********** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Friday 22 July 2022 00:21:49 +0000 (0:00:00.825) 0:00:07.775 *********** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Friday 22 July 2022 00:21:49 +0000 (0:00:00.040) 0:00:07.815 *********** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Friday 22 July 2022 00:21:50 +0000 (0:00:00.846) 0:00:08.662 *********** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Thu 2022-07-21 20:21:39 EDT", "ActiveEnterTimestampMonotonic": "224615823", "ActiveExitTimestamp": "Thu 2022-07-21 20:21:39 EDT", "ActiveExitTimestampMonotonic": "224405745", "ActiveState": "active", "After": "basic.target dbus-broker.service sysinit.target dbus.socket system.slice polkit.service", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Thu 2022-07-21 20:21:39 EDT", "AssertTimestampMonotonic": "224486650", "Before": "multi-user.target network-pre.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "540859000", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Thu 2022-07-21 20:21:39 EDT", "ConditionTimestampMonotonic": "224486648", "ConfigurationDirectoryMode": "0755", "Conflicts": "nftables.service shutdown.target iptables.service ebtables.service ipset.service ip6tables.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "\"man:firewalld(1)\"", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "37343", "ExecMainStartTimestamp": "Thu 2022-07-21 20:21:39 EDT", "ExecMainStartTimestampMonotonic": "224488873", "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 }", "ExecReloadEx": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; flags= ; 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-07-21 20:21:39 EDT] ; stop_time=[n/a] ; pid=37343 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; flags= ; start_time=[Thu 2022-07-21 20:21:39 EDT] ; stop_time=[n/a] ; pid=37343 ; code=(null) ; status=0/0 }", "ExitType": "main", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Thu 2022-07-21 20:21:39 EDT", "InactiveEnterTimestampMonotonic": "224486007", "InactiveExitTimestamp": "Thu 2022-07-21 20:21:39 EDT", "InactiveExitTimestampMonotonic": "224489145", "InvocationID": "5b77ba7866f5477880d2b53663cbb6fa", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "6843", "LimitNPROCSoft": "6843", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6843", "LimitSIGPENDINGSoft": "6843", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "37343", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "24952832", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "firewalld.service dbus-org.fedoraproject.FirewallD1.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket sysinit.target system.slice", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Thu 2022-07-21 20:21:39 EDT", "StateChangeTimestampMonotonic": "224615823", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "2", "TasksMax": "10949", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "1min 30s", "TimeoutStopFailureMode": "terminate", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [linux-system-roles.firewall : Check if previous replaced is defined] ***** task path: /tmp/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/main.yml:9 Friday 22 July 2022 00:21:50 +0000 (0:00:00.510) 0:00:09.172 *********** ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "__firewall_previous_replaced": true, "__firewall_python_cmd": "/usr/bin/python3" }, "changed": false } TASK [linux-system-roles.firewall : Get config files, checksums before and remove] *** task path: /tmp/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/main.yml:18 Friday 22 July 2022 00:21:50 +0000 (0:00:00.099) 0:00:09.271 *********** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "rc": 0 } STDERR: Shared connection to 127.0.0.3 closed. TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/main.yml:40 Friday 22 July 2022 00:21:51 +0000 (0:00:00.235) 0:00:09.506 *********** ok: [/cache/rhel-9.qcow2.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/rhel-9.qcow2.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/rhel-9.qcow2.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/rhel-9.qcow2.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/rhel-9.qcow2.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/rhel-9.qcow2.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/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/main.yml:77 Friday 22 July 2022 00:21:54 +0000 (0:00:03.128) 0:00:12.634 *********** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "rc": 0 } STDOUT: 09fa9483695b07907a4b382b3c7ea7173fd18e4f59296d39de5d3cf4ab381b3b /etc/firewalld/zones/internal.xml 610e6e9bafe289c126adb751e772cd0224012f12738a8b8011454b1da8865c18 /etc/firewalld/zones/customzone.xml 2920e617d0927ea6680528e1c4784c092917e4bd002f4baef9edc8ee6f50a3c3 /etc/firewalld/zones/public.xml e033a4592feef4480b815bd63ef2f8a2319b606a552febb7cfeb716c1d396b7b /etc/firewalld/zones/dmz.xml 414874ced74b68ce42fa113643f47725535bcc62276497de026375670de0c4f7 /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/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/main.yml:85 Friday 22 July 2022 00:21:54 +0000 (0:00:00.279) 0:00:12.913 *********** changed: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "firewall_lib_result": { "changed": true } }, "changed": true } TASK [linux-system-roles.firewall : Show diffs] ******************************** task path: /tmp/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/main.yml:94 Friday 22 July 2022 00:21:54 +0000 (0:00:00.074) 0:00:12.988 *********** skipping: [/cache/rhel-9.qcow2.snap] => {} META: role_complete for /cache/rhel-9.qcow2.snap TASK [Fail if no changes are done] ********************************************* task path: /tmp/tmp55lbl9aa/tests/tests_zone.yml:59 Friday 22 July 2022 00:21:54 +0000 (0:00:00.044) 0:00:13.033 *********** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Setup firewalld again] *************************************************** task path: /tmp/tmp55lbl9aa/tests/tests_zone.yml:65 Friday 22 July 2022 00:21:54 +0000 (0:00:00.034) 0:00:13.067 *********** TASK [linux-system-roles.firewall : include_tasks] ***************************** task path: /tmp/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/main.yml:1 Friday 22 July 2022 00:21:54 +0000 (0:00:00.082) 0:00:13.150 *********** included: /tmp/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml for /cache/rhel-9.qcow2.snap TASK [linux-system-roles.firewall : Ensure ansible_facts used by role] ********* task path: /tmp/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Friday 22 July 2022 00:21:54 +0000 (0:00:00.044) 0:00:13.195 *********** ok: [/cache/rhel-9.qcow2.snap] TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 Friday 22 July 2022 00:21:55 +0000 (0:00:00.510) 0:00:13.705 *********** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Friday 22 July 2022 00:21:56 +0000 (0:00:00.819) 0:00:14.524 *********** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Friday 22 July 2022 00:21:56 +0000 (0:00:00.048) 0:00:14.573 *********** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Friday 22 July 2022 00:21:56 +0000 (0:00:00.825) 0:00:15.398 *********** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Thu 2022-07-21 20:21:39 EDT", "ActiveEnterTimestampMonotonic": "224615823", "ActiveExitTimestamp": "Thu 2022-07-21 20:21:39 EDT", "ActiveExitTimestampMonotonic": "224405745", "ActiveState": "active", "After": "basic.target dbus-broker.service sysinit.target dbus.socket system.slice polkit.service", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Thu 2022-07-21 20:21:39 EDT", "AssertTimestampMonotonic": "224486650", "Before": "multi-user.target network-pre.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "1140324000", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Thu 2022-07-21 20:21:39 EDT", "ConditionTimestampMonotonic": "224486648", "ConfigurationDirectoryMode": "0755", "Conflicts": "nftables.service shutdown.target iptables.service ebtables.service ipset.service ip6tables.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "\"man:firewalld(1)\"", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "37343", "ExecMainStartTimestamp": "Thu 2022-07-21 20:21:39 EDT", "ExecMainStartTimestampMonotonic": "224488873", "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 }", "ExecReloadEx": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; flags= ; 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-07-21 20:21:39 EDT] ; stop_time=[n/a] ; pid=37343 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; flags= ; start_time=[Thu 2022-07-21 20:21:39 EDT] ; stop_time=[n/a] ; pid=37343 ; code=(null) ; status=0/0 }", "ExitType": "main", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Thu 2022-07-21 20:21:39 EDT", "InactiveEnterTimestampMonotonic": "224486007", "InactiveExitTimestamp": "Thu 2022-07-21 20:21:39 EDT", "InactiveExitTimestampMonotonic": "224489145", "InvocationID": "5b77ba7866f5477880d2b53663cbb6fa", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "6843", "LimitNPROCSoft": "6843", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6843", "LimitSIGPENDINGSoft": "6843", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "37343", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "26660864", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "firewalld.service dbus-org.fedoraproject.FirewallD1.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket sysinit.target system.slice", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Thu 2022-07-21 20:21:39 EDT", "StateChangeTimestampMonotonic": "224615823", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "5", "TasksMax": "10949", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "1min 30s", "TimeoutStopFailureMode": "terminate", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [linux-system-roles.firewall : Check if previous replaced is defined] ***** task path: /tmp/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/main.yml:9 Friday 22 July 2022 00:21:57 +0000 (0:00:00.507) 0:00:15.906 *********** ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "__firewall_previous_replaced": true, "__firewall_python_cmd": "/usr/bin/python3" }, "changed": false } TASK [linux-system-roles.firewall : Get config files, checksums before and remove] *** task path: /tmp/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/main.yml:18 Friday 22 July 2022 00:21:57 +0000 (0:00:00.051) 0:00:15.957 *********** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "rc": 0 } STDOUT: 09fa9483695b07907a4b382b3c7ea7173fd18e4f59296d39de5d3cf4ab381b3b /etc/firewalld/zones/internal.xml 610e6e9bafe289c126adb751e772cd0224012f12738a8b8011454b1da8865c18 /etc/firewalld/zones/customzone.xml 2920e617d0927ea6680528e1c4784c092917e4bd002f4baef9edc8ee6f50a3c3 /etc/firewalld/zones/public.xml e033a4592feef4480b815bd63ef2f8a2319b606a552febb7cfeb716c1d396b7b /etc/firewalld/zones/dmz.xml 414874ced74b68ce42fa113643f47725535bcc62276497de026375670de0c4f7 /etc/firewalld/firewalld.conf STDERR: Shared connection to 127.0.0.3 closed. TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/main.yml:40 Friday 22 July 2022 00:21:58 +0000 (0:00:00.492) 0:00:16.450 *********** ok: [/cache/rhel-9.qcow2.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/rhel-9.qcow2.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/rhel-9.qcow2.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/rhel-9.qcow2.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/rhel-9.qcow2.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/rhel-9.qcow2.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/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/main.yml:77 Friday 22 July 2022 00:22:01 +0000 (0:00:03.105) 0:00:19.556 *********** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "rc": 0 } STDOUT: 09fa9483695b07907a4b382b3c7ea7173fd18e4f59296d39de5d3cf4ab381b3b /etc/firewalld/zones/internal.xml 610e6e9bafe289c126adb751e772cd0224012f12738a8b8011454b1da8865c18 /etc/firewalld/zones/customzone.xml 2920e617d0927ea6680528e1c4784c092917e4bd002f4baef9edc8ee6f50a3c3 /etc/firewalld/zones/public.xml e033a4592feef4480b815bd63ef2f8a2319b606a552febb7cfeb716c1d396b7b /etc/firewalld/zones/dmz.xml 414874ced74b68ce42fa113643f47725535bcc62276497de026375670de0c4f7 /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/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/main.yml:85 Friday 22 July 2022 00:22:01 +0000 (0:00:00.282) 0:00:19.839 *********** ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "firewall_lib_result": { "changed": false } }, "changed": false } TASK [linux-system-roles.firewall : Show diffs] ******************************** task path: /tmp/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/main.yml:94 Friday 22 July 2022 00:22:01 +0000 (0:00:00.047) 0:00:19.887 *********** skipping: [/cache/rhel-9.qcow2.snap] => {} META: role_complete for /cache/rhel-9.qcow2.snap TASK [Fail on newly changes] *************************************************** task path: /tmp/tmp55lbl9aa/tests/tests_zone.yml:95 Friday 22 July 2022 00:22:01 +0000 (0:00:00.041) 0:00:19.928 *********** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify firewalld zone internal services] ********************************* task path: /tmp/tmp55lbl9aa/tests/tests_zone.yml:101 Friday 22 July 2022 00:22:01 +0000 (0:00:00.032) 0:00:19.961 *********** changed: [/cache/rhel-9.qcow2.snap] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-services" ], "delta": "0:00:00.231060", "end": "2022-07-21 20:22:01.173941", "failed_when_result": false, "rc": 0, "start": "2022-07-21 20:22:00.942881" } STDOUT: cockpit dhcpv6-client ftp mdns samba-client ssh tftp TASK [Verify firewalld zone internal ports] ************************************ task path: /tmp/tmp55lbl9aa/tests/tests_zone.yml:108 Friday 22 July 2022 00:22:02 +0000 (0:00:00.706) 0:00:20.667 *********** changed: [/cache/rhel-9.qcow2.snap] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-ports" ], "delta": "0:00:00.220190", "end": "2022-07-21 20:22:01.769998", "failed_when_result": false, "rc": 0, "start": "2022-07-21 20:22:01.549808" } STDOUT: 443/tcp 443/udp TASK [Verify firewalld zone internal forward ports] **************************** task path: /tmp/tmp55lbl9aa/tests/tests_zone.yml:115 Friday 22 July 2022 00:22:02 +0000 (0:00:00.595) 0:00:21.263 *********** changed: [/cache/rhel-9.qcow2.snap] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-forward-ports" ], "delta": "0:00:00.216778", "end": "2022-07-21 20:22:02.352781", "failed_when_result": false, "rc": 0, "start": "2022-07-21 20:22:02.136003" } 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/tmp55lbl9aa/tests/tests_zone.yml:124 Friday 22 July 2022 00:22:03 +0000 (0:00:00.584) 0:00:21.847 *********** changed: [/cache/rhel-9.qcow2.snap] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=customzone", "--query-masquerade" ], "delta": "0:00:01.227477", "end": "2022-07-21 20:22:03.945451", "failed_when_result": false, "rc": 0, "start": "2022-07-21 20:22:02.717974" } STDOUT: yes TASK [Verify custom zone has masquerade added to it] *************************** task path: /tmp/tmp55lbl9aa/tests/tests_zone.yml:130 Friday 22 July 2022 00:22:05 +0000 (0:00:01.596) 0:00:23.444 *********** changed: [/cache/rhel-9.qcow2.snap] => { "changed": true, "cmd": [ "firewall-cmd", "--get-default-zone" ], "delta": "0:00:00.211974", "end": "2022-07-21 20:22:04.536147", "failed_when_result": false, "rc": 0, "start": "2022-07-21 20:22:04.324173" } STDOUT: dmz TASK [Verify that service http has been added to the default zone dmz] ********* task path: /tmp/tmp55lbl9aa/tests/tests_zone.yml:136 Friday 22 July 2022 00:22:05 +0000 (0:00:00.587) 0:00:24.032 *********** changed: [/cache/rhel-9.qcow2.snap] => { "changed": true, "cmd": [ "firewall-cmd", "--zone=dmz", "--query-service=http" ], "delta": "0:00:00.208547", "end": "2022-07-21 20:22:05.115096", "failed_when_result": false, "rc": 0, "start": "2022-07-21 20:22:04.906549" } STDOUT: yes TASK [Remove customzone zone] ************************************************** task path: /tmp/tmp55lbl9aa/tests/tests_zone.yml:148 Friday 22 July 2022 00:22:06 +0000 (0:00:00.579) 0:00:24.611 *********** changed: [/cache/rhel-9.qcow2.snap] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--delete-zone=customzone" ], "delta": "0:00:00.212827", "end": "2022-07-21 20:22:05.717692", "failed_when_result": false, "rc": 0, "start": "2022-07-21 20:22:05.504865" } STDOUT: success TASK [Reset to zone defaults] ************************************************** task path: /tmp/tmp55lbl9aa/tests/tests_zone.yml:153 Friday 22 July 2022 00:22:06 +0000 (0:00:00.598) 0:00:25.209 *********** changed: [/cache/rhel-9.qcow2.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:00.991138", "end": "2022-07-21 20:22:07.110849", "rc": 0, "start": "2022-07-21 20:22:06.119711" } STDOUT: success success STDERR: Error: NO_DEFAULTS: external Error: NO_DEFAULTS: trusted META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-9.qcow2.snap : ok=36 changed=9 unreachable=0 failed=0 skipped=12 rescued=0 ignored=0 Friday 22 July 2022 00:22:08 +0000 (0:00:01.405) 0:00:26.615 *********** =============================================================================== linux-system-roles.firewall : Configure firewall ------------------------ 6.23s /tmp/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/main.yml:40 ---- linux-system-roles.firewall : Configure firewall ------------------------ 1.61s /tmp/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/main.yml:40 ---- Verify custom zone has masquerade added to it --------------------------- 1.60s /tmp/tmp55lbl9aa/tests/tests_zone.yml:124 ------------------------------------- Reset to zone defaults -------------------------------------------------- 1.41s /tmp/tmp55lbl9aa/tests/tests_zone.yml:153 ------------------------------------- Gathering Facts --------------------------------------------------------- 1.13s /tmp/tmp55lbl9aa/tests/tests_zone.yml:1 --------------------------------------- linux-system-roles.firewall : Install firewalld ------------------------- 1.07s /tmp/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 linux-system-roles.firewall : Enable and start firewalld service -------- 1.02s /tmp/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 ----- linux-system-roles.firewall : Install python3-firewall ------------------ 0.85s /tmp/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 linux-system-roles.firewall : Install python3-firewall ------------------ 0.85s /tmp/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 linux-system-roles.firewall : Install firewalld ------------------------- 0.83s /tmp/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 linux-system-roles.firewall : Install python3-firewall ------------------ 0.83s /tmp/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 linux-system-roles.firewall : Install firewalld ------------------------- 0.82s /tmp/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 linux-system-roles.firewall : Enable and start firewalld service -------- 0.76s /tmp/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 ----- linux-system-roles.firewall : Get config files, checksums before and remove --- 0.73s /tmp/tmp55lbl9aa/tests/roles/linux-system-roles.firewall/tasks/main.yml:18 ---- Verify firewalld zone internal services --------------------------------- 0.71s /tmp/tmp55lbl9aa/tests/tests_zone.yml:101 ------------------------------------- Remove customzone zone -------------------------------------------------- 0.60s /tmp/tmp55lbl9aa/tests/tests_zone.yml:148 ------------------------------------- Verify firewalld zone internal ports ------------------------------------ 0.60s /tmp/tmp55lbl9aa/tests/tests_zone.yml:108 ------------------------------------- Verify custom zone has masquerade added to it --------------------------- 0.59s /tmp/tmp55lbl9aa/tests/tests_zone.yml:130 ------------------------------------- Verify firewalld zone internal forward ports ---------------------------- 0.58s /tmp/tmp55lbl9aa/tests/tests_zone.yml:115 ------------------------------------- Verify that service http has been added to the default zone dmz --------- 0.58s /tmp/tmp55lbl9aa/tests/tests_zone.yml:136 ------------------------------------- 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/tmpvyhyaxwy 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/tmpwsd_sg3v/tests/firewall/tests_zone.yml PLAY [Test firewalld zones] **************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpwsd_sg3v/tests/firewall/tests_zone.yml:1 Friday 22 July 2022 00:26:03 +0000 (0:00:00.013) 0:00:00.013 *********** ok: [/cache/rhel-9.qcow2.snap] META: ran handlers TASK [Verify used firewalld zones] ********************************************* task path: /tmp/tmpwsd_sg3v/tests/firewall/tests_zone.yml:11 Friday 22 July 2022 00:26:04 +0000 (0:00:01.114) 0:00:01.128 *********** TASK [fedora.linux_system_roles.firewall : include_tasks] ********************** task path: /tmp/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:1 Friday 22 July 2022 00:26:04 +0000 (0:00:00.076) 0:00:01.204 *********** included: /tmp/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml for /cache/rhel-9.qcow2.snap TASK [fedora.linux_system_roles.firewall : Ensure ansible_facts used by role] *** task path: /tmp/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Friday 22 July 2022 00:26:04 +0000 (0:00:00.047) 0:00:01.251 *********** ok: [/cache/rhel-9.qcow2.snap] TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 Friday 22 July 2022 00:26:04 +0000 (0:00:00.519) 0:00:01.771 *********** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.firewall : Install python-firewall] ************ task path: /tmp/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:12 Friday 22 July 2022 00:26:05 +0000 (0:00:00.998) 0:00:02.769 *********** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Install python3-firewall] *********** task path: /tmp/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:18 Friday 22 July 2022 00:26:05 +0000 (0:00:00.037) 0:00:02.807 *********** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.firewall : Enable and start firewalld service] *** task path: /tmp/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Friday 22 July 2022 00:26:06 +0000 (0:00:00.827) 0:00:03.635 *********** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Thu 2022-07-21 20:26:01 EDT", "ActiveEnterTimestampMonotonic": "229089566", "ActiveExitTimestamp": "Thu 2022-07-21 20:26:00 EDT", "ActiveExitTimestampMonotonic": "228893951", "ActiveState": "active", "After": "dbus-broker.service sysinit.target polkit.service basic.target dbus.socket system.slice", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Thu 2022-07-21 20:26:00 EDT", "AssertTimestampMonotonic": "228962941", "Before": "shutdown.target multi-user.target network-pre.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "313260000", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Thu 2022-07-21 20:26:00 EDT", "ConditionTimestampMonotonic": "228962940", "ConfigurationDirectoryMode": "0755", "Conflicts": "ipset.service nftables.service shutdown.target iptables.service ebtables.service ip6tables.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "\"man:firewalld(1)\"", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "37339", "ExecMainStartTimestamp": "Thu 2022-07-21 20:26:00 EDT", "ExecMainStartTimestampMonotonic": "228964927", "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 }", "ExecReloadEx": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; flags= ; 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-07-21 20:26:00 EDT] ; stop_time=[n/a] ; pid=37339 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; flags= ; start_time=[Thu 2022-07-21 20:26:00 EDT] ; stop_time=[n/a] ; pid=37339 ; code=(null) ; status=0/0 }", "ExitType": "main", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Thu 2022-07-21 20:26:00 EDT", "InactiveEnterTimestampMonotonic": "228962323", "InactiveExitTimestamp": "Thu 2022-07-21 20:26:00 EDT", "InactiveExitTimestampMonotonic": "228965206", "InvocationID": "2047bc1c2a7b428e84a287d24ef23349", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "6843", "LimitNPROCSoft": "6843", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6843", "LimitSIGPENDINGSoft": "6843", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "37339", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "22601728", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "firewalld.service dbus-org.fedoraproject.FirewallD1.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket sysinit.target system.slice", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Thu 2022-07-21 20:26:01 EDT", "StateChangeTimestampMonotonic": "229089566", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "2", "TasksMax": "10949", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "1min 30s", "TimeoutStopFailureMode": "terminate", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.firewall : Check if previous replaced is defined] *** task path: /tmp/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:9 Friday 22 July 2022 00:26:07 +0000 (0:00:00.758) 0:00:04.393 *********** ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "__firewall_previous_replaced": false, "__firewall_python_cmd": "/usr/bin/python3" }, "changed": false } TASK [fedora.linux_system_roles.firewall : Get config files, checksums before and remove] *** task path: /tmp/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:14 Friday 22 July 2022 00:26:07 +0000 (0:00:00.048) 0:00:04.442 *********** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Configure firewall] ***************** task path: /tmp/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:36 Friday 22 July 2022 00:26:07 +0000 (0:00:00.031) 0:00:04.473 *********** ok: [/cache/rhel-9.qcow2.snap] => (item={'zone': 'internal', 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "internal" } } ok: [/cache/rhel-9.qcow2.snap] => (item={'zone': 'external', 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "external" } } ok: [/cache/rhel-9.qcow2.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/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:71 Friday 22 July 2022 00:26:09 +0000 (0:00:01.661) 0:00:06.134 *********** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Calculate what has changed] ********* task path: /tmp/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:79 Friday 22 July 2022 00:26:09 +0000 (0:00:00.036) 0:00:06.171 *********** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Show diffs] ************************* task path: /tmp/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:85 Friday 22 July 2022 00:26:09 +0000 (0:00:00.036) 0:00:06.207 *********** skipping: [/cache/rhel-9.qcow2.snap] => {} META: role_complete for /cache/rhel-9.qcow2.snap TASK [Fail on missing zones] *************************************************** task path: /tmp/tmpwsd_sg3v/tests/firewall/tests_zone.yml:23 Friday 22 July 2022 00:26:09 +0000 (0:00:00.042) 0:00:06.249 *********** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Setup firewalld] ********************************************************* task path: /tmp/tmpwsd_sg3v/tests/firewall/tests_zone.yml:29 Friday 22 July 2022 00:26:09 +0000 (0:00:00.034) 0:00:06.284 *********** TASK [fedora.linux_system_roles.firewall : include_tasks] ********************** task path: /tmp/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:1 Friday 22 July 2022 00:26:09 +0000 (0:00:00.058) 0:00:06.342 *********** included: /tmp/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml for /cache/rhel-9.qcow2.snap TASK [fedora.linux_system_roles.firewall : Ensure ansible_facts used by role] *** task path: /tmp/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Friday 22 July 2022 00:26:09 +0000 (0:00:00.044) 0:00:06.387 *********** ok: [/cache/rhel-9.qcow2.snap] TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 Friday 22 July 2022 00:26:09 +0000 (0:00:00.518) 0:00:06.905 *********** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.firewall : Install python-firewall] ************ task path: /tmp/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:12 Friday 22 July 2022 00:26:10 +0000 (0:00:00.882) 0:00:07.788 *********** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Install python3-firewall] *********** task path: /tmp/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:18 Friday 22 July 2022 00:26:10 +0000 (0:00:00.038) 0:00:07.826 *********** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.firewall : Enable and start firewalld service] *** task path: /tmp/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Friday 22 July 2022 00:26:11 +0000 (0:00:00.893) 0:00:08.719 *********** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Thu 2022-07-21 20:26:01 EDT", "ActiveEnterTimestampMonotonic": "229089566", "ActiveExitTimestamp": "Thu 2022-07-21 20:26:00 EDT", "ActiveExitTimestampMonotonic": "228893951", "ActiveState": "active", "After": "dbus-broker.service sysinit.target polkit.service basic.target dbus.socket system.slice", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Thu 2022-07-21 20:26:00 EDT", "AssertTimestampMonotonic": "228962941", "Before": "shutdown.target multi-user.target network-pre.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "554014000", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Thu 2022-07-21 20:26:00 EDT", "ConditionTimestampMonotonic": "228962940", "ConfigurationDirectoryMode": "0755", "Conflicts": "ipset.service nftables.service shutdown.target iptables.service ebtables.service ip6tables.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "\"man:firewalld(1)\"", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "37339", "ExecMainStartTimestamp": "Thu 2022-07-21 20:26:00 EDT", "ExecMainStartTimestampMonotonic": "228964927", "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 }", "ExecReloadEx": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; flags= ; 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-07-21 20:26:00 EDT] ; stop_time=[n/a] ; pid=37339 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; flags= ; start_time=[Thu 2022-07-21 20:26:00 EDT] ; stop_time=[n/a] ; pid=37339 ; code=(null) ; status=0/0 }", "ExitType": "main", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Thu 2022-07-21 20:26:00 EDT", "InactiveEnterTimestampMonotonic": "228962323", "InactiveExitTimestamp": "Thu 2022-07-21 20:26:00 EDT", "InactiveExitTimestampMonotonic": "228965206", "InvocationID": "2047bc1c2a7b428e84a287d24ef23349", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "6843", "LimitNPROCSoft": "6843", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6843", "LimitSIGPENDINGSoft": "6843", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "37339", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "23961600", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "firewalld.service dbus-org.fedoraproject.FirewallD1.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket sysinit.target system.slice", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Thu 2022-07-21 20:26:01 EDT", "StateChangeTimestampMonotonic": "229089566", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "2", "TasksMax": "10949", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "1min 30s", "TimeoutStopFailureMode": "terminate", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.firewall : Check if previous replaced is defined] *** task path: /tmp/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:9 Friday 22 July 2022 00:26:12 +0000 (0:00:00.564) 0:00:09.283 *********** ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "__firewall_previous_replaced": true, "__firewall_python_cmd": "/usr/bin/python3" }, "changed": false } TASK [fedora.linux_system_roles.firewall : Get config files, checksums before and remove] *** task path: /tmp/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:14 Friday 22 July 2022 00:26:12 +0000 (0:00:00.078) 0:00:09.362 *********** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "rc": 0 } STDERR: Shared connection to 127.0.0.3 closed. TASK [fedora.linux_system_roles.firewall : Configure firewall] ***************** task path: /tmp/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:36 Friday 22 July 2022 00:26:12 +0000 (0:00:00.247) 0:00:09.610 *********** ok: [/cache/rhel-9.qcow2.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/rhel-9.qcow2.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/rhel-9.qcow2.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/rhel-9.qcow2.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/rhel-9.qcow2.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/rhel-9.qcow2.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/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:71 Friday 22 July 2022 00:26:15 +0000 (0:00:03.153) 0:00:12.763 *********** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "rc": 0 } STDOUT: 09fa9483695b07907a4b382b3c7ea7173fd18e4f59296d39de5d3cf4ab381b3b /etc/firewalld/zones/internal.xml 610e6e9bafe289c126adb751e772cd0224012f12738a8b8011454b1da8865c18 /etc/firewalld/zones/customzone.xml 2920e617d0927ea6680528e1c4784c092917e4bd002f4baef9edc8ee6f50a3c3 /etc/firewalld/zones/public.xml e033a4592feef4480b815bd63ef2f8a2319b606a552febb7cfeb716c1d396b7b /etc/firewalld/zones/dmz.xml 414874ced74b68ce42fa113643f47725535bcc62276497de026375670de0c4f7 /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/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:79 Friday 22 July 2022 00:26:16 +0000 (0:00:00.332) 0:00:13.096 *********** changed: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "firewall_lib_result": { "changed": true } }, "changed": true } TASK [fedora.linux_system_roles.firewall : Show diffs] ************************* task path: /tmp/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:85 Friday 22 July 2022 00:26:16 +0000 (0:00:00.051) 0:00:13.147 *********** skipping: [/cache/rhel-9.qcow2.snap] => {} META: role_complete for /cache/rhel-9.qcow2.snap TASK [Fail if no changes are done] ********************************************* task path: /tmp/tmpwsd_sg3v/tests/firewall/tests_zone.yml:57 Friday 22 July 2022 00:26:16 +0000 (0:00:00.047) 0:00:13.195 *********** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Setup firewalld again] *************************************************** task path: /tmp/tmpwsd_sg3v/tests/firewall/tests_zone.yml:63 Friday 22 July 2022 00:26:16 +0000 (0:00:00.037) 0:00:13.232 *********** TASK [fedora.linux_system_roles.firewall : include_tasks] ********************** task path: /tmp/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:1 Friday 22 July 2022 00:26:16 +0000 (0:00:00.055) 0:00:13.287 *********** included: /tmp/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml for /cache/rhel-9.qcow2.snap TASK [fedora.linux_system_roles.firewall : Ensure ansible_facts used by role] *** task path: /tmp/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Friday 22 July 2022 00:26:16 +0000 (0:00:00.044) 0:00:13.332 *********** ok: [/cache/rhel-9.qcow2.snap] TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 Friday 22 July 2022 00:26:16 +0000 (0:00:00.513) 0:00:13.846 *********** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.firewall : Install python-firewall] ************ task path: /tmp/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:12 Friday 22 July 2022 00:26:17 +0000 (0:00:00.837) 0:00:14.683 *********** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Install python3-firewall] *********** task path: /tmp/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:18 Friday 22 July 2022 00:26:17 +0000 (0:00:00.040) 0:00:14.724 *********** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.firewall : Enable and start firewalld service] *** task path: /tmp/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Friday 22 July 2022 00:26:18 +0000 (0:00:00.831) 0:00:15.556 *********** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Thu 2022-07-21 20:26:01 EDT", "ActiveEnterTimestampMonotonic": "229089566", "ActiveExitTimestamp": "Thu 2022-07-21 20:26:00 EDT", "ActiveExitTimestampMonotonic": "228893951", "ActiveState": "active", "After": "dbus-broker.service sysinit.target polkit.service basic.target dbus.socket system.slice", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Thu 2022-07-21 20:26:00 EDT", "AssertTimestampMonotonic": "228962941", "Before": "shutdown.target multi-user.target network-pre.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "1173411000", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Thu 2022-07-21 20:26:00 EDT", "ConditionTimestampMonotonic": "228962940", "ConfigurationDirectoryMode": "0755", "Conflicts": "ipset.service nftables.service shutdown.target iptables.service ebtables.service ip6tables.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "\"man:firewalld(1)\"", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "37339", "ExecMainStartTimestamp": "Thu 2022-07-21 20:26:00 EDT", "ExecMainStartTimestampMonotonic": "228964927", "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 }", "ExecReloadEx": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; flags= ; 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-07-21 20:26:00 EDT] ; stop_time=[n/a] ; pid=37339 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; flags= ; start_time=[Thu 2022-07-21 20:26:00 EDT] ; stop_time=[n/a] ; pid=37339 ; code=(null) ; status=0/0 }", "ExitType": "main", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Thu 2022-07-21 20:26:00 EDT", "InactiveEnterTimestampMonotonic": "228962323", "InactiveExitTimestamp": "Thu 2022-07-21 20:26:00 EDT", "InactiveExitTimestampMonotonic": "228965206", "InvocationID": "2047bc1c2a7b428e84a287d24ef23349", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "6843", "LimitNPROCSoft": "6843", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6843", "LimitSIGPENDINGSoft": "6843", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "37339", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "27729920", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "firewalld.service dbus-org.fedoraproject.FirewallD1.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket sysinit.target system.slice", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Thu 2022-07-21 20:26:01 EDT", "StateChangeTimestampMonotonic": "229089566", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "5", "TasksMax": "10949", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "1min 30s", "TimeoutStopFailureMode": "terminate", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.firewall : Check if previous replaced is defined] *** task path: /tmp/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:9 Friday 22 July 2022 00:26:19 +0000 (0:00:00.523) 0:00:16.079 *********** ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "__firewall_previous_replaced": true, "__firewall_python_cmd": "/usr/bin/python3" }, "changed": false } TASK [fedora.linux_system_roles.firewall : Get config files, checksums before and remove] *** task path: /tmp/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:14 Friday 22 July 2022 00:26:19 +0000 (0:00:00.050) 0:00:16.130 *********** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "rc": 0 } STDOUT: 09fa9483695b07907a4b382b3c7ea7173fd18e4f59296d39de5d3cf4ab381b3b /etc/firewalld/zones/internal.xml 610e6e9bafe289c126adb751e772cd0224012f12738a8b8011454b1da8865c18 /etc/firewalld/zones/customzone.xml 2920e617d0927ea6680528e1c4784c092917e4bd002f4baef9edc8ee6f50a3c3 /etc/firewalld/zones/public.xml e033a4592feef4480b815bd63ef2f8a2319b606a552febb7cfeb716c1d396b7b /etc/firewalld/zones/dmz.xml 414874ced74b68ce42fa113643f47725535bcc62276497de026375670de0c4f7 /etc/firewalld/firewalld.conf STDERR: Shared connection to 127.0.0.3 closed. TASK [fedora.linux_system_roles.firewall : Configure firewall] ***************** task path: /tmp/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:36 Friday 22 July 2022 00:26:19 +0000 (0:00:00.513) 0:00:16.643 *********** ok: [/cache/rhel-9.qcow2.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/rhel-9.qcow2.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/rhel-9.qcow2.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/rhel-9.qcow2.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/rhel-9.qcow2.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/rhel-9.qcow2.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/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:71 Friday 22 July 2022 00:26:22 +0000 (0:00:03.176) 0:00:19.820 *********** ok: [/cache/rhel-9.qcow2.snap] => { "changed": false, "rc": 0 } STDOUT: 09fa9483695b07907a4b382b3c7ea7173fd18e4f59296d39de5d3cf4ab381b3b /etc/firewalld/zones/internal.xml 610e6e9bafe289c126adb751e772cd0224012f12738a8b8011454b1da8865c18 /etc/firewalld/zones/customzone.xml 2920e617d0927ea6680528e1c4784c092917e4bd002f4baef9edc8ee6f50a3c3 /etc/firewalld/zones/public.xml e033a4592feef4480b815bd63ef2f8a2319b606a552febb7cfeb716c1d396b7b /etc/firewalld/zones/dmz.xml 414874ced74b68ce42fa113643f47725535bcc62276497de026375670de0c4f7 /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/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:79 Friday 22 July 2022 00:26:23 +0000 (0:00:00.282) 0:00:20.103 *********** ok: [/cache/rhel-9.qcow2.snap] => { "ansible_facts": { "firewall_lib_result": { "changed": false } }, "changed": false } TASK [fedora.linux_system_roles.firewall : Show diffs] ************************* task path: /tmp/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:85 Friday 22 July 2022 00:26:23 +0000 (0:00:00.051) 0:00:20.154 *********** skipping: [/cache/rhel-9.qcow2.snap] => {} META: role_complete for /cache/rhel-9.qcow2.snap TASK [Fail on newly changes] *************************************************** task path: /tmp/tmpwsd_sg3v/tests/firewall/tests_zone.yml:91 Friday 22 July 2022 00:26:23 +0000 (0:00:00.047) 0:00:20.201 *********** skipping: [/cache/rhel-9.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify firewalld zone internal services] ********************************* task path: /tmp/tmpwsd_sg3v/tests/firewall/tests_zone.yml:97 Friday 22 July 2022 00:26:23 +0000 (0:00:00.036) 0:00:20.238 *********** changed: [/cache/rhel-9.qcow2.snap] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-services" ], "delta": "0:00:00.239820", "end": "2022-07-21 20:26:22.958488", "failed_when_result": false, "rc": 0, "start": "2022-07-21 20:26:22.718668" } STDOUT: cockpit dhcpv6-client ftp mdns samba-client ssh tftp TASK [Verify firewalld zone internal ports] ************************************ task path: /tmp/tmpwsd_sg3v/tests/firewall/tests_zone.yml:102 Friday 22 July 2022 00:26:24 +0000 (0:00:00.753) 0:00:20.992 *********** changed: [/cache/rhel-9.qcow2.snap] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-ports" ], "delta": "0:00:00.236775", "end": "2022-07-21 20:26:23.582856", "failed_when_result": false, "rc": 0, "start": "2022-07-21 20:26:23.346081" } STDOUT: 443/tcp 443/udp TASK [Verify firewalld zone internal forward ports] **************************** task path: /tmp/tmpwsd_sg3v/tests/firewall/tests_zone.yml:107 Friday 22 July 2022 00:26:24 +0000 (0:00:00.624) 0:00:21.616 *********** changed: [/cache/rhel-9.qcow2.snap] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-forward-ports" ], "delta": "0:00:00.221169", "end": "2022-07-21 20:26:24.181806", "failed_when_result": false, "rc": 0, "start": "2022-07-21 20:26:23.960637" } 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/tmpwsd_sg3v/tests/firewall/tests_zone.yml:112 Friday 22 July 2022 00:26:25 +0000 (0:00:00.598) 0:00:22.215 *********** changed: [/cache/rhel-9.qcow2.snap] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=customzone", "--query-masquerade" ], "delta": "0:00:00.222903", "end": "2022-07-21 20:26:24.820395", "failed_when_result": false, "rc": 0, "start": "2022-07-21 20:26:24.597492" } STDOUT: yes TASK [Verify custom zone has masquerade added to it] *************************** task path: /tmp/tmpwsd_sg3v/tests/firewall/tests_zone.yml:117 Friday 22 July 2022 00:26:25 +0000 (0:00:00.640) 0:00:22.855 *********** changed: [/cache/rhel-9.qcow2.snap] => { "changed": true, "cmd": [ "firewall-cmd", "--get-default-zone" ], "delta": "0:00:00.228846", "end": "2022-07-21 20:26:25.456700", "failed_when_result": false, "rc": 0, "start": "2022-07-21 20:26:25.227854" } STDOUT: dmz TASK [Verify that service http has been added to the default zone dmz] ********* task path: /tmp/tmpwsd_sg3v/tests/firewall/tests_zone.yml:122 Friday 22 July 2022 00:26:26 +0000 (0:00:00.644) 0:00:23.499 *********** changed: [/cache/rhel-9.qcow2.snap] => { "changed": true, "cmd": [ "firewall-cmd", "--zone=dmz", "--query-service=http" ], "delta": "0:00:00.217597", "end": "2022-07-21 20:26:26.080152", "failed_when_result": false, "rc": 0, "start": "2022-07-21 20:26:25.862555" } STDOUT: yes TASK [Remove customzone zone] ************************************************** task path: /tmp/tmpwsd_sg3v/tests/firewall/tests_zone.yml:133 Friday 22 July 2022 00:26:27 +0000 (0:00:00.615) 0:00:24.114 *********** changed: [/cache/rhel-9.qcow2.snap] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--delete-zone=customzone" ], "delta": "0:00:00.213240", "end": "2022-07-21 20:26:26.666730", "failed_when_result": false, "rc": 0, "start": "2022-07-21 20:26:26.453490" } STDOUT: success TASK [Reset to zone defaults] ************************************************** task path: /tmp/tmpwsd_sg3v/tests/firewall/tests_zone.yml:138 Friday 22 July 2022 00:26:27 +0000 (0:00:00.583) 0:00:24.698 *********** changed: [/cache/rhel-9.qcow2.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.027849", "end": "2022-07-21 20:26:28.110887", "rc": 0, "start": "2022-07-21 20:26:27.083038" } STDOUT: success success STDERR: Error: NO_DEFAULTS: external Error: NO_DEFAULTS: trusted META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-9.qcow2.snap : ok=36 changed=9 unreachable=0 failed=0 skipped=12 rescued=0 ignored=0 Friday 22 July 2022 00:26:29 +0000 (0:00:01.452) 0:00:26.150 *********** =============================================================================== fedora.linux_system_roles.firewall : Configure firewall ----------------- 6.33s /tmp/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:36 fedora.linux_system_roles.firewall : Configure firewall ----------------- 1.66s /tmp/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:36 Reset to zone defaults -------------------------------------------------- 1.45s /tmp/tmpwsd_sg3v/tests/firewall/tests_zone.yml:138 ---------------------------- Gathering Facts --------------------------------------------------------- 1.11s /tmp/tmpwsd_sg3v/tests/firewall/tests_zone.yml:1 ------------------------------ fedora.linux_system_roles.firewall : Enable and start firewalld service --- 1.09s /tmp/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 fedora.linux_system_roles.firewall : Install firewalld ------------------ 1.00s /tmp/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 fedora.linux_system_roles.firewall : Install python3-firewall ----------- 0.89s /tmp/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:18 fedora.linux_system_roles.firewall : Install firewalld ------------------ 0.88s /tmp/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 fedora.linux_system_roles.firewall : Install firewalld ------------------ 0.84s /tmp/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 fedora.linux_system_roles.firewall : Install python3-firewall ----------- 0.83s /tmp/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:18 fedora.linux_system_roles.firewall : Install python3-firewall ----------- 0.83s /tmp/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:18 fedora.linux_system_roles.firewall : Get config files, checksums before and remove --- 0.76s /tmp/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:14 fedora.linux_system_roles.firewall : Enable and start firewalld service --- 0.76s /tmp/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Verify firewalld zone internal services --------------------------------- 0.75s /tmp/tmpwsd_sg3v/tests/firewall/tests_zone.yml:97 ----------------------------- Verify custom zone has masquerade added to it --------------------------- 0.64s /tmp/tmpwsd_sg3v/tests/firewall/tests_zone.yml:117 ---------------------------- Verify custom zone has masquerade added to it --------------------------- 0.64s /tmp/tmpwsd_sg3v/tests/firewall/tests_zone.yml:112 ---------------------------- Verify firewalld zone internal ports ------------------------------------ 0.62s /tmp/tmpwsd_sg3v/tests/firewall/tests_zone.yml:102 ---------------------------- fedora.linux_system_roles.firewall : Get config files, checksums after --- 0.62s /tmp/tmpvyhyaxwy/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:71 Verify that service http has been added to the default zone dmz --------- 0.62s /tmp/tmpwsd_sg3v/tests/firewall/tests_zone.yml:122 ---------------------------- Verify firewalld zone internal forward ports ---------------------------- 0.60s /tmp/tmpwsd_sg3v/tests/firewall/tests_zone.yml:107 ----------------------------