ansible-playbook [core 2.16.12] config file = None configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.12/site-packages/ansible ansible collection location = /tmp/collections-VEk executable location = /usr/local/bin/ansible-playbook python version = 3.12.1 (main, Feb 21 2024, 14:18:26) [GCC 8.5.0 20210514 (Red Hat 8.5.0-21)] (/usr/bin/python3.12) jinja version = 3.1.4 libyaml = True No config file found; using defaults running playbook inside collection fedora.linux_system_roles redirecting (type: callback) ansible.builtin.debug to ansible.posix.debug redirecting (type: callback) ansible.builtin.debug to ansible.posix.debug redirecting (type: callback) ansible.builtin.profile_tasks to ansible.posix.profile_tasks 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_issue_234.yml ************************************************** 1 plays in /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_issue_234.yml PLAY [Test issue 234] ********************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_issue_234.yml:2 Tuesday 15 October 2024 18:44:40 -0400 (0:00:00.009) 0:00:00.009 ******* ok: [managed-node1] TASK [Setup firewalld] ********************************************************* task path: /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_issue_234.yml:8 Tuesday 15 October 2024 18:44:41 -0400 (0:00:01.176) 0:00:01.185 ******* TASK [fedora.linux_system_roles.firewall : Setup firewalld] ******************** task path: /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:2 Tuesday 15 October 2024 18:44:41 -0400 (0:00:00.049) 0:00:01.234 ******* included: /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml for managed-node1 TASK [fedora.linux_system_roles.firewall : Ensure ansible_facts used by role] *** task path: /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Tuesday 15 October 2024 18:44:42 -0400 (0:00:00.022) 0:00:01.257 ******* skipping: [managed-node1] => { "changed": false, "false_condition": "__firewall_required_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Check if system is ostree] ********** task path: /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:10 Tuesday 15 October 2024 18:44:42 -0400 (0:00:00.033) 0:00:01.290 ******* ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.firewall : Set flag to indicate system is ostree] *** task path: /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:15 Tuesday 15 October 2024 18:44:42 -0400 (0:00:00.406) 0:00:01.697 ******* ok: [managed-node1] => { "ansible_facts": { "__firewall_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.firewall : Check if transactional-update exists in /sbin] *** task path: /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:22 Tuesday 15 October 2024 18:44:42 -0400 (0:00:00.021) 0:00:01.718 ******* ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.firewall : Set flag if transactional-update exists] *** task path: /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:27 Tuesday 15 October 2024 18:44:42 -0400 (0:00:00.317) 0:00:02.036 ******* ok: [managed-node1] => { "ansible_facts": { "__firewall_is_transactional": false }, "changed": false } TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:31 Tuesday 15 October 2024 18:44:42 -0400 (0:00:00.036) 0:00:02.072 ******* ok: [managed-node1] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.firewall : Notify user that reboot is needed to apply changes] *** task path: /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:43 Tuesday 15 October 2024 18:44:45 -0400 (0:00:03.128) 0:00:05.201 ******* skipping: [managed-node1] => { "false_condition": "__firewall_is_transactional | d(false)" } TASK [fedora.linux_system_roles.firewall : Reboot transactional update systems] *** task path: /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:48 Tuesday 15 October 2024 18:44:45 -0400 (0:00:00.033) 0:00:05.235 ******* skipping: [managed-node1] => { "changed": false, "false_condition": "__firewall_is_transactional | d(false)", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Fail if reboot is needed and not set] *** task path: /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:53 Tuesday 15 October 2024 18:44:46 -0400 (0:00:00.032) 0:00:05.268 ******* skipping: [managed-node1] => { "changed": false, "false_condition": "__firewall_is_transactional | d(false)", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Collect service facts] ************** task path: /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:5 Tuesday 15 October 2024 18:44:46 -0400 (0:00:00.031) 0:00:05.300 ******* skipping: [managed-node1] => { "changed": false, "false_condition": "firewall_disable_conflicting_services | bool", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Attempt to stop and disable conflicting services] *** task path: /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:9 Tuesday 15 October 2024 18:44:46 -0400 (0:00:00.031) 0:00:05.331 ******* skipping: [managed-node1] => (item=nftables) => { "ansible_loop_var": "item", "changed": false, "false_condition": "firewall_disable_conflicting_services | bool", "item": "nftables", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=iptables) => { "ansible_loop_var": "item", "changed": false, "false_condition": "firewall_disable_conflicting_services | bool", "item": "iptables", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=ufw) => { "ansible_loop_var": "item", "changed": false, "false_condition": "firewall_disable_conflicting_services | bool", "item": "ufw", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.firewall : Unmask firewalld service] *********** task path: /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:22 Tuesday 15 October 2024 18:44:46 -0400 (0:00:00.038) 0:00:05.369 ******* ok: [managed-node1] => { "changed": false, "name": "firewalld", "status": { "ActiveEnterTimestamp": "Tue 2024-10-15 18:41:38 EDT", "ActiveEnterTimestampMonotonic": "247682016", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "dbus.socket basic.target system.slice sysinit.target polkit.service dbus.service", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Tue 2024-10-15 18:41:38 EDT", "AssertTimestampMonotonic": "247373511", "Before": "shutdown.target network-pre.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "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", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2024-10-15 18:41:38 EDT", "ConditionTimestampMonotonic": "247373510", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target ipset.service ip6tables.service ebtables.service nftables.service iptables.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "7958", "ExecMainStartTimestamp": "Tue 2024-10-15 18:41:38 EDT", "ExecMainStartTimestampMonotonic": "247374989", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; ignore_errors=no ; start_time=[Tue 2024-10-15 18:41:38 EDT] ; stop_time=[n/a] ; pid=7958 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Tue 2024-10-15 18:41:38 EDT", "InactiveExitTimestampMonotonic": "247375200", "InvocationID": "9fd21a763ffd445fb38aef3771a7d05d", "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": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "14003", "LimitNPROCSoft": "14003", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14003", "LimitSIGPENDINGSoft": "14003", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "7958", "MemoryAccounting": "yes", "MemoryCurrent": "53555200", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "sysinit.target system.slice dbus.socket", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Tue 2024-10-15 18:41:38 EDT", "StateChangeTimestampMonotonic": "247682016", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "3", "TasksMax": "22405", "TimeoutStartUSec": "1min 30s", "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", "WatchdogTimestamp": "Tue 2024-10-15 18:41:38 EDT", "WatchdogTimestampMonotonic": "247682013", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.firewall : Enable and start firewalld service] *** task path: /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:28 Tuesday 15 October 2024 18:44:47 -0400 (0:00:00.928) 0:00:06.298 ******* ok: [managed-node1] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2024-10-15 18:41:38 EDT", "ActiveEnterTimestampMonotonic": "247682016", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "dbus.socket basic.target system.slice sysinit.target polkit.service dbus.service", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Tue 2024-10-15 18:41:38 EDT", "AssertTimestampMonotonic": "247373511", "Before": "shutdown.target network-pre.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "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", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2024-10-15 18:41:38 EDT", "ConditionTimestampMonotonic": "247373510", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target ipset.service ip6tables.service ebtables.service nftables.service iptables.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "7958", "ExecMainStartTimestamp": "Tue 2024-10-15 18:41:38 EDT", "ExecMainStartTimestampMonotonic": "247374989", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; ignore_errors=no ; start_time=[Tue 2024-10-15 18:41:38 EDT] ; stop_time=[n/a] ; pid=7958 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Tue 2024-10-15 18:41:38 EDT", "InactiveExitTimestampMonotonic": "247375200", "InvocationID": "9fd21a763ffd445fb38aef3771a7d05d", "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": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "14003", "LimitNPROCSoft": "14003", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14003", "LimitSIGPENDINGSoft": "14003", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "7958", "MemoryAccounting": "yes", "MemoryCurrent": "53555200", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "sysinit.target system.slice dbus.socket", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Tue 2024-10-15 18:41:38 EDT", "StateChangeTimestampMonotonic": "247682016", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "3", "TasksMax": "22405", "TimeoutStartUSec": "1min 30s", "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", "WatchdogTimestamp": "Tue 2024-10-15 18:41:38 EDT", "WatchdogTimestampMonotonic": "247682013", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.firewall : Check if previous replaced is defined] *** task path: /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:34 Tuesday 15 October 2024 18:44:47 -0400 (0:00:00.462) 0:00:06.760 ******* ok: [managed-node1] => { "ansible_facts": { "__firewall_previous_replaced": true, "__firewall_python_cmd": "/usr/libexec/platform-python", "__firewall_report_changed": true }, "changed": false } TASK [fedora.linux_system_roles.firewall : Get config files, checksums before and remove] *** task path: /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:43 Tuesday 15 October 2024 18:44:47 -0400 (0:00:00.041) 0:00:06.802 ******* ok: [managed-node1] => { "changed": false, "rc": 0 } STDOUT: 125431fb0f0e77e66255267a5da843aa1bf0b94b1f1b0cc88c1033a06732ef46 /etc/firewalld/firewalld.conf STDERR: Shared connection to 10.31.10.48 closed. TASK [fedora.linux_system_roles.firewall : Tell firewall module it is able to report changed] *** task path: /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:55 Tuesday 15 October 2024 18:44:48 -0400 (0:00:00.964) 0:00:07.766 ******* ok: [managed-node1] => { "ansible_facts": { "__firewall_report_changed": false }, "changed": false } TASK [fedora.linux_system_roles.firewall : Configure firewall] ***************** task path: /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:71 Tuesday 15 October 2024 18:44:48 -0400 (0:00:00.035) 0:00:07.802 ******* ok: [managed-node1] => (item={'service': ['cockpit', 'dhcpv6-client'], 'state': 'disabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "service": [ "cockpit", "dhcpv6-client" ], "state": "disabled" } } ok: [managed-node1] => (item={'zone': 'public', 'state': 'enabled', 'permanent': True, 'interface': 'ens18', 'services': ['ssh'], 'port': ['80/tcp', '443/tcp'], 'masquerade': True, 'forward_port': [{'port': 1194, 'proto': 'udp', 'toaddr': '192.168.1.1', 'toport': 1195}, {'port': 16001, 'proto': 'tcp', 'toaddr': '192.168.1.21', 'toport': 16001}]}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "forward_port": [ { "port": 1194, "proto": "udp", "toaddr": "192.168.1.1", "toport": 1195 }, { "port": 16001, "proto": "tcp", "toaddr": "192.168.1.21", "toport": 16001 } ], "interface": "ens18", "masquerade": true, "permanent": true, "port": [ "80/tcp", "443/tcp" ], "services": [ "ssh" ], "state": "enabled", "zone": "public" } } TASK [fedora.linux_system_roles.firewall : Gather firewall config information] *** task path: /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:120 Tuesday 15 October 2024 18:44:49 -0400 (0:00:01.255) 0:00:09.057 ******* skipping: [managed-node1] => (item={'service': ['cockpit', 'dhcpv6-client'], 'state': 'disabled'}) => { "ansible_loop_var": "item", "changed": false, "false_condition": "firewall | length == 1", "item": { "service": [ "cockpit", "dhcpv6-client" ], "state": "disabled" }, "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item={'zone': 'public', 'state': 'enabled', 'permanent': True, 'interface': 'ens18', 'services': ['ssh'], 'port': ['80/tcp', '443/tcp'], 'masquerade': True, 'forward_port': [{'port': 1194, 'proto': 'udp', 'toaddr': '192.168.1.1', 'toport': 1195}, {'port': 16001, 'proto': 'tcp', 'toaddr': '192.168.1.21', 'toport': 16001}]}) => { "ansible_loop_var": "item", "changed": false, "false_condition": "firewall | length == 1", "item": { "forward_port": [ { "port": 1194, "proto": "udp", "toaddr": "192.168.1.1", "toport": 1195 }, { "port": 16001, "proto": "tcp", "toaddr": "192.168.1.21", "toport": 16001 } ], "interface": "ens18", "masquerade": true, "permanent": true, "port": [ "80/tcp", "443/tcp" ], "services": [ "ssh" ], "state": "enabled", "zone": "public" }, "skip_reason": "Conditional result was False" } skipping: [managed-node1] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.firewall : Update firewalld_config fact] ******* task path: /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:130 Tuesday 15 October 2024 18:44:49 -0400 (0:00:00.069) 0:00:09.126 ******* skipping: [managed-node1] => { "changed": false, "false_condition": "firewall | length == 1", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Gather firewall config if no arguments] *** task path: /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:139 Tuesday 15 October 2024 18:44:49 -0400 (0:00:00.046) 0:00:09.173 ******* skipping: [managed-node1] => { "changed": false, "false_condition": "firewall == None or firewall | length == 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Update firewalld_config fact] ******* task path: /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:144 Tuesday 15 October 2024 18:44:49 -0400 (0:00:00.037) 0:00:09.210 ******* skipping: [managed-node1] => { "changed": false, "false_condition": "firewall == None or firewall | length == 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Get config files, checksums after] *** task path: /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:153 Tuesday 15 October 2024 18:44:49 -0400 (0:00:00.033) 0:00:09.244 ******* ok: [managed-node1] => { "changed": false, "rc": 0 } STDOUT: 84c33ff9c3a116640cae2f85896b66a19692519b9b821612acc955205c738566 /etc/firewalld/zones/public.xml 125431fb0f0e77e66255267a5da843aa1bf0b94b1f1b0cc88c1033a06732ef46 /etc/firewalld/firewalld.conf STDERR: Shared connection to 10.31.10.48 closed. TASK [fedora.linux_system_roles.firewall : Calculate what has changed] ********* task path: /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:163 Tuesday 15 October 2024 18:44:50 -0400 (0:00:00.315) 0:00:09.559 ******* changed: [managed-node1] => { "ansible_facts": { "firewall_lib_result": { "changed": true } }, "changed": true } TASK [fedora.linux_system_roles.firewall : Show diffs] ************************* task path: /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:169 Tuesday 15 October 2024 18:44:50 -0400 (0:00:00.036) 0:00:09.596 ******* skipping: [managed-node1] => { "false_condition": "__firewall_debug | d(false)" } TASK [Debug1] ****************************************************************** task path: /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_issue_234.yml:49 Tuesday 15 October 2024 18:44:50 -0400 (0:00:00.036) 0:00:09.632 ******* ok: [managed-node1] => { "changed": false, "cmd": [ "firewall-cmd", "--list-all-zones" ], "delta": "0:00:00.258624", "end": "2024-10-15 18:44:51.015609", "rc": 0, "start": "2024-10-15 18:44:50.756985" } STDOUT: block target: %%REJECT%% icmp-block-inversion: no interfaces: sources: services: ports: protocols: forward: no masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: dmz target: default icmp-block-inversion: no interfaces: sources: services: ssh ports: protocols: forward: no masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: drop target: DROP icmp-block-inversion: no interfaces: sources: services: ports: protocols: forward: no masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: external target: default icmp-block-inversion: no interfaces: sources: services: ssh ports: protocols: forward: no masquerade: yes forward-ports: source-ports: icmp-blocks: rich rules: home target: default icmp-block-inversion: no interfaces: sources: services: cockpit dhcpv6-client mdns samba-client ssh ports: protocols: forward: no masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: internal target: default icmp-block-inversion: no interfaces: sources: services: cockpit dhcpv6-client mdns samba-client ssh ports: protocols: forward: no masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: nm-shared target: ACCEPT icmp-block-inversion: no interfaces: sources: services: dhcp dns ssh ports: protocols: icmp ipv6-icmp forward: no masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: rule priority="32767" reject public (active) target: default icmp-block-inversion: no interfaces: ens18 eth0 sources: services: ssh ports: 80/tcp 443/tcp protocols: forward: no masquerade: yes forward-ports: port=1194:proto=udp:toport=1195:toaddr=192.168.1.1 port=16001:proto=tcp:toport=16001:toaddr=192.168.1.21 source-ports: icmp-blocks: rich rules: trusted target: ACCEPT icmp-block-inversion: no interfaces: sources: services: ports: protocols: forward: no masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: work target: default icmp-block-inversion: no interfaces: sources: services: cockpit dhcpv6-client ssh ports: protocols: forward: no masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: TASK [Reboot] ****************************************************************** task path: /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_issue_234.yml:53 Tuesday 15 October 2024 18:44:51 -0400 (0:00:00.684) 0:00:10.317 ******* changed: [managed-node1] => { "changed": true, "elapsed": 21, "rebooted": true } TASK [Debug2] ****************************************************************** task path: /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_issue_234.yml:56 Tuesday 15 October 2024 18:45:13 -0400 (0:00:22.316) 0:00:32.634 ******* ok: [managed-node1] => { "changed": false, "cmd": [ "firewall-cmd", "--list-all-zones" ], "delta": "0:00:00.276378", "end": "2024-10-15 18:45:13.260605", "rc": 0, "start": "2024-10-15 18:45:12.984227" } STDOUT: block target: %%REJECT%% icmp-block-inversion: no interfaces: sources: services: ports: protocols: forward: no masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: dmz target: default icmp-block-inversion: no interfaces: sources: services: ssh ports: protocols: forward: no masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: drop target: DROP icmp-block-inversion: no interfaces: sources: services: ports: protocols: forward: no masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: external target: default icmp-block-inversion: no interfaces: sources: services: ssh ports: protocols: forward: no masquerade: yes forward-ports: source-ports: icmp-blocks: rich rules: home target: default icmp-block-inversion: no interfaces: sources: services: cockpit dhcpv6-client mdns samba-client ssh ports: protocols: forward: no masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: internal target: default icmp-block-inversion: no interfaces: sources: services: cockpit dhcpv6-client mdns samba-client ssh ports: protocols: forward: no masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: nm-shared target: ACCEPT icmp-block-inversion: no interfaces: sources: services: dhcp dns ssh ports: protocols: icmp ipv6-icmp forward: no masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: rule priority="32767" reject public (active) target: default icmp-block-inversion: no interfaces: ens18 eth0 sources: services: ssh ports: 80/tcp 443/tcp protocols: forward: no masquerade: yes forward-ports: port=1194:proto=udp:toport=1195:toaddr=192.168.1.1 port=16001:proto=tcp:toport=16001:toaddr=192.168.1.21 source-ports: icmp-blocks: rich rules: trusted target: ACCEPT icmp-block-inversion: no interfaces: sources: services: ports: protocols: forward: no masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: work target: default icmp-block-inversion: no interfaces: sources: services: cockpit dhcpv6-client ssh ports: protocols: forward: no masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: TASK [Remove customzone zone] ************************************************** task path: /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_issue_234.yml:67 Tuesday 15 October 2024 18:45:13 -0400 (0:00:00.596) 0:00:33.230 ******* ok: [managed-node1] => { "changed": false, "cmd": [ "firewall-cmd", "--permanent", "--delete-zone=customzone" ], "delta": "0:00:00.245501", "end": "2024-10-15 18:45:13.813627", "failed_when_result": false, "rc": 112, "start": "2024-10-15 18:45:13.568126" } STDERR: Error: INVALID_ZONE: customzone MSG: non-zero return code TASK [Reset to zone defaults] ************************************************** task path: /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_issue_234.yml:73 Tuesday 15 October 2024 18:45:14 -0400 (0:00:00.552) 0:00:33.783 ******* ok: [managed-node1] => { "changed": false, "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.410269", "end": "2024-10-15 18:45:15.532717", "rc": 0, "start": "2024-10-15 18:45:14.122448" } STDOUT: success STDERR: Error: NO_DEFAULTS: internal Error: NO_DEFAULTS: external Error: NO_DEFAULTS: trusted PLAY RECAP ********************************************************************* managed-node1 : ok=20 changed=2 unreachable=0 failed=0 skipped=11 rescued=0 ignored=0 Tuesday 15 October 2024 18:45:16 -0400 (0:00:01.679) 0:00:35.462 ******* =============================================================================== Reboot ----------------------------------------------------------------- 22.32s /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_issue_234.yml:53 fedora.linux_system_roles.firewall : Install firewalld ------------------ 3.13s /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:31 Reset to zone defaults -------------------------------------------------- 1.68s /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_issue_234.yml:73 fedora.linux_system_roles.firewall : Configure firewall ----------------- 1.26s /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:71 Gathering Facts --------------------------------------------------------- 1.18s /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_issue_234.yml:2 fedora.linux_system_roles.firewall : Get config files, checksums before and remove --- 0.96s /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:43 fedora.linux_system_roles.firewall : Unmask firewalld service ----------- 0.93s /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:22 Debug1 ------------------------------------------------------------------ 0.68s /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_issue_234.yml:49 Debug2 ------------------------------------------------------------------ 0.60s /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_issue_234.yml:56 Remove customzone zone -------------------------------------------------- 0.55s /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_issue_234.yml:67 fedora.linux_system_roles.firewall : Enable and start firewalld service --- 0.46s /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:28 fedora.linux_system_roles.firewall : Check if system is ostree ---------- 0.41s /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:10 fedora.linux_system_roles.firewall : Check if transactional-update exists in /sbin --- 0.32s /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:22 fedora.linux_system_roles.firewall : Get config files, checksums after --- 0.32s /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:153 fedora.linux_system_roles.firewall : Gather firewall config information --- 0.07s /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:120 Setup firewalld --------------------------------------------------------- 0.05s /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_issue_234.yml:8 fedora.linux_system_roles.firewall : Update firewalld_config fact ------- 0.05s /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:130 fedora.linux_system_roles.firewall : Check if previous replaced is defined --- 0.04s /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:34 fedora.linux_system_roles.firewall : Attempt to stop and disable conflicting services --- 0.04s /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:9 fedora.linux_system_roles.firewall : Gather firewall config if no arguments --- 0.04s /tmp/collections-VEk/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:139