ansible-playbook 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Nov 14 2023, 16:14:06) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] Using /etc/ansible/ansible.cfg as config file [WARNING]: running playbook inside collection fedora.linux_system_roles Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: tests_zone.yml ******************************************************* 1 plays in /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml PLAY [Test firewalld zones] **************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:2 Wednesday 14 May 2025 15:49:44 -0400 (0:00:00.025) 0:00:00.025 ********* ok: [managed-node1] META: ran handlers TASK [Verify used firewalld zones] ********************************************* task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:13 Wednesday 14 May 2025 15:49:45 -0400 (0:00:00.970) 0:00:00.995 ********* TASK [fedora.linux_system_roles.firewall : Setup firewalld] ******************** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:2 Wednesday 14 May 2025 15:49:46 -0400 (0:00:00.214) 0:00:01.209 ********* included: /tmp/collections-VZi/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-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Wednesday 14 May 2025 15:49:46 -0400 (0:00:00.105) 0:00:01.315 ********* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Check if system is ostree] ********** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:10 Wednesday 14 May 2025 15:49:46 -0400 (0:00:00.078) 0:00:01.394 ********* 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-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:15 Wednesday 14 May 2025 15:49:46 -0400 (0:00:00.546) 0:00:01.941 ********* 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-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:22 Wednesday 14 May 2025 15:49:46 -0400 (0:00:00.051) 0:00:01.993 ********* ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.firewall : Set flag if transactional-update exists] *** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:27 Wednesday 14 May 2025 15:49:47 -0400 (0:00:00.381) 0:00:02.374 ********* ok: [managed-node1] => { "ansible_facts": { "__firewall_is_transactional": false }, "changed": false } TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:31 Wednesday 14 May 2025 15:49:47 -0400 (0:00:00.084) 0:00:02.458 ********* ok: [managed-node1] => { "changed": false, "rc": 0, "results": [ "firewalld-0.6.3-13.el7_9.noarch providing firewalld is already installed" ] } TASK [fedora.linux_system_roles.firewall : Notify user that reboot is needed to apply changes] *** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:43 Wednesday 14 May 2025 15:49:48 -0400 (0:00:00.900) 0:00:03.359 ********* skipping: [managed-node1] => {} TASK [fedora.linux_system_roles.firewall : Reboot transactional update systems] *** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:48 Wednesday 14 May 2025 15:49:48 -0400 (0:00:00.058) 0:00:03.417 ********* skipping: [managed-node1] => { "changed": 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-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:53 Wednesday 14 May 2025 15:49:48 -0400 (0:00:00.074) 0:00:03.492 ********* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Collect service facts] ************** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:5 Wednesday 14 May 2025 15:49:48 -0400 (0:00:00.068) 0:00:03.560 ********* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Attempt to stop and disable conflicting services] *** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:9 Wednesday 14 May 2025 15:49:48 -0400 (0:00:00.074) 0:00:03.635 ********* skipping: [managed-node1] => (item=nftables) => { "ansible_loop_var": "item", "changed": false, "item": "nftables", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=iptables) => { "ansible_loop_var": "item", "changed": false, "item": "iptables", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=ufw) => { "ansible_loop_var": "item", "changed": false, "item": "ufw", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Unmask firewalld service] *********** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:22 Wednesday 14 May 2025 15:49:48 -0400 (0:00:00.097) 0:00:03.733 ********* ok: [managed-node1] => { "changed": false, "name": "firewalld", "status": { "ActiveEnterTimestamp": "Wed 2025-05-14 15:46:40 EDT", "ActiveEnterTimestampMonotonic": "258934696", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "polkit.service basic.target system.slice dbus.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Wed 2025-05-14 15:46:40 EDT", "AssertTimestampMonotonic": "258683605", "Before": "network-pre.target shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2025-05-14 15:46:40 EDT", "ConditionTimestampMonotonic": "258683603", "Conflicts": "shutdown.target ebtables.service iptables.service ip6tables.service ipset.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "EnvironmentFile": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "9564", "ExecMainStartTimestamp": "Wed 2025-05-14 15:46:40 EDT", "ExecMainStartTimestampMonotonic": "258684808", "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=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Wed 2025-05-14 15:46:40 EDT", "InactiveExitTimestampMonotonic": "258685285", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "14311", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "14311", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "9564", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "system.slice basic.target", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogTimestamp": "Wed 2025-05-14 15:46:40 EDT", "WatchdogTimestampMonotonic": "258934155", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.firewall : Enable and start firewalld service] *** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:28 Wednesday 14 May 2025 15:49:49 -0400 (0:00:00.707) 0:00:04.440 ********* ok: [managed-node1] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2025-05-14 15:46:40 EDT", "ActiveEnterTimestampMonotonic": "258934696", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "polkit.service basic.target system.slice dbus.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Wed 2025-05-14 15:46:40 EDT", "AssertTimestampMonotonic": "258683605", "Before": "network-pre.target shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2025-05-14 15:46:40 EDT", "ConditionTimestampMonotonic": "258683603", "Conflicts": "shutdown.target ebtables.service iptables.service ip6tables.service ipset.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "EnvironmentFile": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "9564", "ExecMainStartTimestamp": "Wed 2025-05-14 15:46:40 EDT", "ExecMainStartTimestampMonotonic": "258684808", "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=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Wed 2025-05-14 15:46:40 EDT", "InactiveExitTimestampMonotonic": "258685285", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "14311", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "14311", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "9564", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "system.slice basic.target", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogTimestamp": "Wed 2025-05-14 15:46:40 EDT", "WatchdogTimestampMonotonic": "258934155", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.firewall : Check if previous replaced is defined] *** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:34 Wednesday 14 May 2025 15:49:49 -0400 (0:00:00.437) 0:00:04.878 ********* ok: [managed-node1] => { "ansible_facts": { "__firewall_previous_replaced": false, "__firewall_python_cmd": "/usr/bin/python", "__firewall_report_changed": true }, "changed": false } TASK [fedora.linux_system_roles.firewall : Get config files, checksums before and remove] *** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:43 Wednesday 14 May 2025 15:49:49 -0400 (0:00:00.060) 0:00:04.938 ********* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Tell firewall module it is able to report changed] *** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:55 Wednesday 14 May 2025 15:49:49 -0400 (0:00:00.048) 0:00:04.987 ********* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Configure firewall] ***************** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:71 Wednesday 14 May 2025 15:49:49 -0400 (0:00:00.045) 0:00:05.032 ********* ok: [managed-node1] => (item={u'state': u'enabled', u'zone': u'internal'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "internal" } } ok: [managed-node1] => (item={u'state': u'enabled', u'zone': u'external'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "external" } } ok: [managed-node1] => (item={u'state': u'enabled', u'zone': u'trusted'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "trusted" } } TASK [fedora.linux_system_roles.firewall : Gather firewall config information] *** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:121 Wednesday 14 May 2025 15:49:51 -0400 (0:00:01.905) 0:00:06.937 ********* skipping: [managed-node1] => (item={u'state': u'enabled', u'zone': u'internal'}) => { "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "internal" }, "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item={u'state': u'enabled', u'zone': u'external'}) => { "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "external" }, "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item={u'state': u'enabled', u'zone': u'trusted'}) => { "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "trusted" }, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Update firewalld_config fact] ******* task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:131 Wednesday 14 May 2025 15:49:51 -0400 (0:00:00.098) 0:00:07.036 ********* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Gather firewall config if no arguments] *** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:140 Wednesday 14 May 2025 15:49:51 -0400 (0:00:00.061) 0:00:07.098 ********* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Update firewalld_config fact] ******* task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:145 Wednesday 14 May 2025 15:49:52 -0400 (0:00:00.053) 0:00:07.151 ********* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Get config files, checksums after] *** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:154 Wednesday 14 May 2025 15:49:52 -0400 (0:00:00.046) 0:00:07.198 ********* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Calculate what has changed] ********* task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:164 Wednesday 14 May 2025 15:49:52 -0400 (0:00:00.045) 0:00:07.244 ********* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Show diffs] ************************* task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:170 Wednesday 14 May 2025 15:49:52 -0400 (0:00:00.046) 0:00:07.291 ********* skipping: [managed-node1] => {} TASK [Fail on missing zones] *************************************************** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:25 Wednesday 14 May 2025 15:49:52 -0400 (0:00:00.046) 0:00:07.337 ********* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Setup firewalld] ********************************************************* task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:32 Wednesday 14 May 2025 15:49:52 -0400 (0:00:00.045) 0:00:07.382 ********* TASK [fedora.linux_system_roles.firewall : Setup firewalld] ******************** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:2 Wednesday 14 May 2025 15:49:52 -0400 (0:00:00.122) 0:00:07.505 ********* included: /tmp/collections-VZi/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-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Wednesday 14 May 2025 15:49:52 -0400 (0:00:00.099) 0:00:07.604 ********* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Check if system is ostree] ********** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:10 Wednesday 14 May 2025 15:49:52 -0400 (0:00:00.073) 0:00:07.678 ********* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Set flag to indicate system is ostree] *** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:15 Wednesday 14 May 2025 15:49:52 -0400 (0:00:00.069) 0:00:07.747 ********* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Check if transactional-update exists in /sbin] *** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:22 Wednesday 14 May 2025 15:49:52 -0400 (0:00:00.070) 0:00:07.818 ********* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Set flag if transactional-update exists] *** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:27 Wednesday 14 May 2025 15:49:52 -0400 (0:00:00.070) 0:00:07.888 ********* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:31 Wednesday 14 May 2025 15:49:52 -0400 (0:00:00.050) 0:00:07.939 ********* ok: [managed-node1] => { "changed": false, "rc": 0, "results": [ "firewalld-0.6.3-13.el7_9.noarch providing firewalld is already installed" ] } TASK [fedora.linux_system_roles.firewall : Notify user that reboot is needed to apply changes] *** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:43 Wednesday 14 May 2025 15:49:53 -0400 (0:00:00.643) 0:00:08.582 ********* skipping: [managed-node1] => {} TASK [fedora.linux_system_roles.firewall : Reboot transactional update systems] *** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:48 Wednesday 14 May 2025 15:49:53 -0400 (0:00:00.053) 0:00:08.635 ********* skipping: [managed-node1] => { "changed": 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-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:53 Wednesday 14 May 2025 15:49:53 -0400 (0:00:00.061) 0:00:08.697 ********* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Collect service facts] ************** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:5 Wednesday 14 May 2025 15:49:53 -0400 (0:00:00.070) 0:00:08.767 ********* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Attempt to stop and disable conflicting services] *** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:9 Wednesday 14 May 2025 15:49:53 -0400 (0:00:00.070) 0:00:08.838 ********* skipping: [managed-node1] => (item=nftables) => { "ansible_loop_var": "item", "changed": false, "item": "nftables", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=iptables) => { "ansible_loop_var": "item", "changed": false, "item": "iptables", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=ufw) => { "ansible_loop_var": "item", "changed": false, "item": "ufw", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Unmask firewalld service] *********** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:22 Wednesday 14 May 2025 15:49:53 -0400 (0:00:00.080) 0:00:08.919 ********* ok: [managed-node1] => { "changed": false, "name": "firewalld", "status": { "ActiveEnterTimestamp": "Wed 2025-05-14 15:46:40 EDT", "ActiveEnterTimestampMonotonic": "258934696", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "polkit.service basic.target system.slice dbus.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Wed 2025-05-14 15:46:40 EDT", "AssertTimestampMonotonic": "258683605", "Before": "network-pre.target shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2025-05-14 15:46:40 EDT", "ConditionTimestampMonotonic": "258683603", "Conflicts": "shutdown.target ebtables.service iptables.service ip6tables.service ipset.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "EnvironmentFile": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "9564", "ExecMainStartTimestamp": "Wed 2025-05-14 15:46:40 EDT", "ExecMainStartTimestampMonotonic": "258684808", "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=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Wed 2025-05-14 15:46:40 EDT", "InactiveExitTimestampMonotonic": "258685285", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "14311", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "14311", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "9564", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "system.slice basic.target", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogTimestamp": "Wed 2025-05-14 15:46:40 EDT", "WatchdogTimestampMonotonic": "258934155", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.firewall : Enable and start firewalld service] *** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:28 Wednesday 14 May 2025 15:49:54 -0400 (0:00:00.423) 0:00:09.343 ********* ok: [managed-node1] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2025-05-14 15:46:40 EDT", "ActiveEnterTimestampMonotonic": "258934696", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "polkit.service basic.target system.slice dbus.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Wed 2025-05-14 15:46:40 EDT", "AssertTimestampMonotonic": "258683605", "Before": "network-pre.target shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2025-05-14 15:46:40 EDT", "ConditionTimestampMonotonic": "258683603", "Conflicts": "shutdown.target ebtables.service iptables.service ip6tables.service ipset.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "EnvironmentFile": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "9564", "ExecMainStartTimestamp": "Wed 2025-05-14 15:46:40 EDT", "ExecMainStartTimestampMonotonic": "258684808", "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=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Wed 2025-05-14 15:46:40 EDT", "InactiveExitTimestampMonotonic": "258685285", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "14311", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "14311", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "9564", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "system.slice basic.target", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogTimestamp": "Wed 2025-05-14 15:46:40 EDT", "WatchdogTimestampMonotonic": "258934155", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.firewall : Check if previous replaced is defined] *** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:34 Wednesday 14 May 2025 15:49:54 -0400 (0:00:00.422) 0:00:09.766 ********* ok: [managed-node1] => { "ansible_facts": { "__firewall_previous_replaced": true, "__firewall_python_cmd": "/usr/bin/python", "__firewall_report_changed": true }, "changed": false } TASK [fedora.linux_system_roles.firewall : Get config files, checksums before and remove] *** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:43 Wednesday 14 May 2025 15:49:54 -0400 (0:00:00.077) 0:00:09.843 ********* ok: [managed-node1] => { "changed": false, "rc": 0 } STDOUT: 65a9e4a0653b58f6808edcf6d432f6676485af237e73cb7adaabab4df3fac7bc /etc/firewalld/firewalld.conf STDERR: Shared connection to 10.31.15.21 closed. TASK [fedora.linux_system_roles.firewall : Tell firewall module it is able to report changed] *** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:55 Wednesday 14 May 2025 15:49:55 -0400 (0:00:00.940) 0:00:10.783 ********* ok: [managed-node1] => { "ansible_facts": { "__firewall_report_changed": false }, "changed": false } TASK [fedora.linux_system_roles.firewall : Configure firewall] ***************** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:71 Wednesday 14 May 2025 15:49:55 -0400 (0:00:00.049) 0:00:10.833 ********* ok: [managed-node1] => (item={u'state': u'enabled', u'service': [u'tftp', u'ftp'], u'port': [u'443/tcp', u'443/udp'], u'zone': u'internal', u'forward_port': [u'447/tcp;;1.2.3.4', u'448/tcp;;1.2.3.5']}) => { "__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: [managed-node1] => (item={u'state': u'enabled', u'service': [u'tftp', u'ftp'], u'port': [u'443/tcp', u'443/udp'], u'zone': u'internal', u'forward_port': [u'447/tcp;;1.2.3.4', u'448/tcp;;1.2.3.5']}) => { "__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: [managed-node1] => (item={u'state': u'present', u'permanent': True, u'zone': u'customzone'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "permanent": true, "state": "present", "zone": "customzone" } } ok: [managed-node1] => (item={u'masquerade': True, u'state': u'enabled', u'permanent': True, u'zone': u'customzone'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "masquerade": true, "permanent": true, "state": "enabled", "zone": "customzone" } } ok: [managed-node1] => (item={u'state': u'enabled', u'set_default_zone': u'dmz'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "set_default_zone": "dmz", "state": "enabled" } } ok: [managed-node1] => (item={u'state': u'enabled', u'service': u'http'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "service": "http", "state": "enabled" } } TASK [fedora.linux_system_roles.firewall : Gather firewall config information] *** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:121 Wednesday 14 May 2025 15:49:59 -0400 (0:00:03.519) 0:00:14.353 ********* skipping: [managed-node1] => (item={u'state': u'enabled', u'service': [u'tftp', u'ftp'], u'port': [u'443/tcp', u'443/udp'], u'zone': u'internal', u'forward_port': [u'447/tcp;;1.2.3.4', u'448/tcp;;1.2.3.5']}) => { "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" }, "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item={u'state': u'enabled', u'service': [u'tftp', u'ftp'], u'port': [u'443/tcp', u'443/udp'], u'zone': u'internal', u'forward_port': [u'447/tcp;;1.2.3.4', u'448/tcp;;1.2.3.5']}) => { "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" }, "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item={u'state': u'present', u'permanent': True, u'zone': u'customzone'}) => { "ansible_loop_var": "item", "changed": false, "item": { "permanent": true, "state": "present", "zone": "customzone" }, "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item={u'masquerade': True, u'state': u'enabled', u'permanent': True, u'zone': u'customzone'}) => { "ansible_loop_var": "item", "changed": false, "item": { "masquerade": true, "permanent": true, "state": "enabled", "zone": "customzone" }, "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item={u'state': u'enabled', u'set_default_zone': u'dmz'}) => { "ansible_loop_var": "item", "changed": false, "item": { "set_default_zone": "dmz", "state": "enabled" }, "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item={u'state': u'enabled', u'service': u'http'}) => { "ansible_loop_var": "item", "changed": false, "item": { "service": "http", "state": "enabled" }, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Update firewalld_config fact] ******* task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:131 Wednesday 14 May 2025 15:49:59 -0400 (0:00:00.106) 0:00:14.459 ********* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Gather firewall config if no arguments] *** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:140 Wednesday 14 May 2025 15:49:59 -0400 (0:00:00.046) 0:00:14.506 ********* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Update firewalld_config fact] ******* task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:145 Wednesday 14 May 2025 15:49:59 -0400 (0:00:00.047) 0:00:14.553 ********* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Get config files, checksums after] *** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:154 Wednesday 14 May 2025 15:49:59 -0400 (0:00:00.046) 0:00:14.599 ********* ok: [managed-node1] => { "changed": false, "rc": 0 } STDOUT: e2b071ca9b919b8fd60a4fe1e00e4f792ec2245359e8c48027020970791176d1 /etc/firewalld/zones/internal.xml df2e066f9b8c0677c4887aa9a7032c4f94480408ff740036d98e648d11dd84c5 /etc/firewalld/zones/dmz.xml 610e6e9bafe289c126adb751e772cd0224012f12738a8b8011454b1da8865c18 /etc/firewalld/zones/customzone.xml 958dce439fe299ce0b0fdb10c4c18412269fbab3f09660e4b210962728554953 /etc/firewalld/firewalld.conf STDERR: Shared connection to 10.31.15.21 closed. TASK [fedora.linux_system_roles.firewall : Calculate what has changed] ********* task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:164 Wednesday 14 May 2025 15:49:59 -0400 (0:00:00.387) 0:00:14.987 ********* changed: [managed-node1] => { "ansible_facts": { "firewall_lib_result": { "changed": true } }, "changed": true } TASK [fedora.linux_system_roles.firewall : Show diffs] ************************* task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:170 Wednesday 14 May 2025 15:49:59 -0400 (0:00:00.053) 0:00:15.041 ********* skipping: [managed-node1] => {} TASK [Fail if no changes are done] ********************************************* task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:60 Wednesday 14 May 2025 15:49:59 -0400 (0:00:00.047) 0:00:15.088 ********* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Setup firewalld again] *************************************************** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:67 Wednesday 14 May 2025 15:50:00 -0400 (0:00:00.046) 0:00:15.134 ********* TASK [fedora.linux_system_roles.firewall : Setup firewalld] ******************** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:2 Wednesday 14 May 2025 15:50:00 -0400 (0:00:00.087) 0:00:15.222 ********* included: /tmp/collections-VZi/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-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Wednesday 14 May 2025 15:50:00 -0400 (0:00:00.061) 0:00:15.284 ********* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Check if system is ostree] ********** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:10 Wednesday 14 May 2025 15:50:00 -0400 (0:00:00.121) 0:00:15.405 ********* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Set flag to indicate system is ostree] *** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:15 Wednesday 14 May 2025 15:50:00 -0400 (0:00:00.045) 0:00:15.451 ********* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Check if transactional-update exists in /sbin] *** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:22 Wednesday 14 May 2025 15:50:00 -0400 (0:00:00.044) 0:00:15.496 ********* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Set flag if transactional-update exists] *** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:27 Wednesday 14 May 2025 15:50:00 -0400 (0:00:00.044) 0:00:15.540 ********* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:31 Wednesday 14 May 2025 15:50:00 -0400 (0:00:00.045) 0:00:15.586 ********* ok: [managed-node1] => { "changed": false, "rc": 0, "results": [ "firewalld-0.6.3-13.el7_9.noarch providing firewalld is already installed" ] } TASK [fedora.linux_system_roles.firewall : Notify user that reboot is needed to apply changes] *** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:43 Wednesday 14 May 2025 15:50:01 -0400 (0:00:00.635) 0:00:16.221 ********* skipping: [managed-node1] => {} TASK [fedora.linux_system_roles.firewall : Reboot transactional update systems] *** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:48 Wednesday 14 May 2025 15:50:01 -0400 (0:00:00.046) 0:00:16.267 ********* skipping: [managed-node1] => { "changed": 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-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:53 Wednesday 14 May 2025 15:50:01 -0400 (0:00:00.047) 0:00:16.315 ********* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Collect service facts] ************** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:5 Wednesday 14 May 2025 15:50:01 -0400 (0:00:00.046) 0:00:16.362 ********* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Attempt to stop and disable conflicting services] *** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:9 Wednesday 14 May 2025 15:50:01 -0400 (0:00:00.045) 0:00:16.408 ********* skipping: [managed-node1] => (item=nftables) => { "ansible_loop_var": "item", "changed": false, "item": "nftables", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=iptables) => { "ansible_loop_var": "item", "changed": false, "item": "iptables", "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item=ufw) => { "ansible_loop_var": "item", "changed": false, "item": "ufw", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Unmask firewalld service] *********** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:22 Wednesday 14 May 2025 15:50:01 -0400 (0:00:00.064) 0:00:16.472 ********* ok: [managed-node1] => { "changed": false, "name": "firewalld", "status": { "ActiveEnterTimestamp": "Wed 2025-05-14 15:46:40 EDT", "ActiveEnterTimestampMonotonic": "258934696", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "polkit.service basic.target system.slice dbus.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Wed 2025-05-14 15:46:40 EDT", "AssertTimestampMonotonic": "258683605", "Before": "network-pre.target shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2025-05-14 15:46:40 EDT", "ConditionTimestampMonotonic": "258683603", "Conflicts": "shutdown.target ebtables.service iptables.service ip6tables.service ipset.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "EnvironmentFile": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "9564", "ExecMainStartTimestamp": "Wed 2025-05-14 15:46:40 EDT", "ExecMainStartTimestampMonotonic": "258684808", "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=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Wed 2025-05-14 15:46:40 EDT", "InactiveExitTimestampMonotonic": "258685285", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "14311", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "14311", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "9564", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "system.slice basic.target", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogTimestamp": "Wed 2025-05-14 15:46:40 EDT", "WatchdogTimestampMonotonic": "258934155", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.firewall : Enable and start firewalld service] *** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:28 Wednesday 14 May 2025 15:50:01 -0400 (0:00:00.418) 0:00:16.891 ********* ok: [managed-node1] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2025-05-14 15:46:40 EDT", "ActiveEnterTimestampMonotonic": "258934696", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "polkit.service basic.target system.slice dbus.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Wed 2025-05-14 15:46:40 EDT", "AssertTimestampMonotonic": "258683605", "Before": "network-pre.target shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2025-05-14 15:46:40 EDT", "ConditionTimestampMonotonic": "258683603", "Conflicts": "shutdown.target ebtables.service iptables.service ip6tables.service ipset.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "EnvironmentFile": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "9564", "ExecMainStartTimestamp": "Wed 2025-05-14 15:46:40 EDT", "ExecMainStartTimestampMonotonic": "258684808", "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=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Wed 2025-05-14 15:46:40 EDT", "InactiveExitTimestampMonotonic": "258685285", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "14311", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "14311", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "9564", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "system.slice basic.target", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogTimestamp": "Wed 2025-05-14 15:46:40 EDT", "WatchdogTimestampMonotonic": "258934155", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.firewall : Check if previous replaced is defined] *** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:34 Wednesday 14 May 2025 15:50:02 -0400 (0:00:00.402) 0:00:17.293 ********* ok: [managed-node1] => { "ansible_facts": { "__firewall_previous_replaced": true, "__firewall_python_cmd": "/usr/bin/python", "__firewall_report_changed": true }, "changed": false } TASK [fedora.linux_system_roles.firewall : Get config files, checksums before and remove] *** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:43 Wednesday 14 May 2025 15:50:02 -0400 (0:00:00.051) 0:00:17.345 ********* ok: [managed-node1] => { "changed": false, "rc": 0 } STDOUT: e2b071ca9b919b8fd60a4fe1e00e4f792ec2245359e8c48027020970791176d1 /etc/firewalld/zones/internal.xml df2e066f9b8c0677c4887aa9a7032c4f94480408ff740036d98e648d11dd84c5 /etc/firewalld/zones/dmz.xml 610e6e9bafe289c126adb751e772cd0224012f12738a8b8011454b1da8865c18 /etc/firewalld/zones/customzone.xml 958dce439fe299ce0b0fdb10c4c18412269fbab3f09660e4b210962728554953 /etc/firewalld/firewalld.conf STDERR: Shared connection to 10.31.15.21 closed. TASK [fedora.linux_system_roles.firewall : Tell firewall module it is able to report changed] *** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:55 Wednesday 14 May 2025 15:50:03 -0400 (0:00:00.876) 0:00:18.221 ********* ok: [managed-node1] => { "ansible_facts": { "__firewall_report_changed": false }, "changed": false } TASK [fedora.linux_system_roles.firewall : Configure firewall] ***************** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:71 Wednesday 14 May 2025 15:50:03 -0400 (0:00:00.051) 0:00:18.273 ********* ok: [managed-node1] => (item={u'state': u'enabled', u'service': [u'tftp', u'ftp'], u'port': [u'443/tcp', u'443/udp'], u'zone': u'internal', u'forward_port': [u'447/tcp;;1.2.3.4', u'448/tcp;;1.2.3.5']}) => { "__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: [managed-node1] => (item={u'state': u'enabled', u'service': [u'tftp', u'ftp'], u'port': [u'443/tcp', u'443/udp'], u'zone': u'internal', u'forward_port': [u'447/tcp;;1.2.3.4', u'448/tcp;;1.2.3.5']}) => { "__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: [managed-node1] => (item={u'state': u'present', u'permanent': True, u'zone': u'customzone'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "permanent": true, "state": "present", "zone": "customzone" } } ok: [managed-node1] => (item={u'masquerade': True, u'state': u'enabled', u'permanent': True, u'zone': u'customzone'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "masquerade": true, "permanent": true, "state": "enabled", "zone": "customzone" } } ok: [managed-node1] => (item={u'state': u'enabled', u'set_default_zone': u'dmz'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "set_default_zone": "dmz", "state": "enabled" } } ok: [managed-node1] => (item={u'state': u'enabled', u'service': u'http'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "service": "http", "state": "enabled" } } TASK [fedora.linux_system_roles.firewall : Gather firewall config information] *** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:121 Wednesday 14 May 2025 15:50:06 -0400 (0:00:03.482) 0:00:21.756 ********* skipping: [managed-node1] => (item={u'state': u'enabled', u'service': [u'tftp', u'ftp'], u'port': [u'443/tcp', u'443/udp'], u'zone': u'internal', u'forward_port': [u'447/tcp;;1.2.3.4', u'448/tcp;;1.2.3.5']}) => { "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" }, "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item={u'state': u'enabled', u'service': [u'tftp', u'ftp'], u'port': [u'443/tcp', u'443/udp'], u'zone': u'internal', u'forward_port': [u'447/tcp;;1.2.3.4', u'448/tcp;;1.2.3.5']}) => { "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" }, "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item={u'state': u'present', u'permanent': True, u'zone': u'customzone'}) => { "ansible_loop_var": "item", "changed": false, "item": { "permanent": true, "state": "present", "zone": "customzone" }, "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item={u'masquerade': True, u'state': u'enabled', u'permanent': True, u'zone': u'customzone'}) => { "ansible_loop_var": "item", "changed": false, "item": { "masquerade": true, "permanent": true, "state": "enabled", "zone": "customzone" }, "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item={u'state': u'enabled', u'set_default_zone': u'dmz'}) => { "ansible_loop_var": "item", "changed": false, "item": { "set_default_zone": "dmz", "state": "enabled" }, "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item={u'state': u'enabled', u'service': u'http'}) => { "ansible_loop_var": "item", "changed": false, "item": { "service": "http", "state": "enabled" }, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Update firewalld_config fact] ******* task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:131 Wednesday 14 May 2025 15:50:06 -0400 (0:00:00.109) 0:00:21.865 ********* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Gather firewall config if no arguments] *** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:140 Wednesday 14 May 2025 15:50:06 -0400 (0:00:00.047) 0:00:21.913 ********* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Update firewalld_config fact] ******* task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:145 Wednesday 14 May 2025 15:50:06 -0400 (0:00:00.045) 0:00:21.958 ********* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Get config files, checksums after] *** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:154 Wednesday 14 May 2025 15:50:06 -0400 (0:00:00.045) 0:00:22.004 ********* ok: [managed-node1] => { "changed": false, "rc": 0 } STDOUT: e2b071ca9b919b8fd60a4fe1e00e4f792ec2245359e8c48027020970791176d1 /etc/firewalld/zones/internal.xml df2e066f9b8c0677c4887aa9a7032c4f94480408ff740036d98e648d11dd84c5 /etc/firewalld/zones/dmz.xml 610e6e9bafe289c126adb751e772cd0224012f12738a8b8011454b1da8865c18 /etc/firewalld/zones/customzone.xml 958dce439fe299ce0b0fdb10c4c18412269fbab3f09660e4b210962728554953 /etc/firewalld/firewalld.conf STDERR: Shared connection to 10.31.15.21 closed. TASK [fedora.linux_system_roles.firewall : Calculate what has changed] ********* task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:164 Wednesday 14 May 2025 15:50:07 -0400 (0:00:00.389) 0:00:22.393 ********* ok: [managed-node1] => { "ansible_facts": { "firewall_lib_result": { "changed": false } }, "changed": false } TASK [fedora.linux_system_roles.firewall : Show diffs] ************************* task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:170 Wednesday 14 May 2025 15:50:07 -0400 (0:00:00.054) 0:00:22.447 ********* skipping: [managed-node1] => {} TASK [Fail on newly changes] *************************************************** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:95 Wednesday 14 May 2025 15:50:07 -0400 (0:00:00.047) 0:00:22.495 ********* skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify firewalld zone internal services] ********************************* task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:102 Wednesday 14 May 2025 15:50:07 -0400 (0:00:00.045) 0:00:22.540 ********* ok: [managed-node1] => { "changed": false, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-services" ], "delta": "0:00:00.275623", "end": "2025-05-14 15:50:08.119883", "failed_when_result": false, "rc": 0, "start": "2025-05-14 15:50:07.844260" } STDOUT: dhcpv6-client ftp mdns samba-client ssh tftp TASK [Verify firewalld zone internal ports] ************************************ task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:108 Wednesday 14 May 2025 15:50:08 -0400 (0:00:00.738) 0:00:23.279 ********* ok: [managed-node1] => { "changed": false, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-ports" ], "delta": "0:00:00.289353", "end": "2025-05-14 15:50:08.733986", "failed_when_result": false, "rc": 0, "start": "2025-05-14 15:50:08.444633" } STDOUT: 443/tcp 443/udp TASK [Verify firewalld zone internal forward ports] **************************** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:114 Wednesday 14 May 2025 15:50:08 -0400 (0:00:00.615) 0:00:23.894 ********* ok: [managed-node1] => { "changed": false, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-forward-ports" ], "delta": "0:00:00.270159", "end": "2025-05-14 15:50:09.335120", "failed_when_result": false, "rc": 0, "start": "2025-05-14 15:50:09.064961" } 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/collections-VZi/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:120 Wednesday 14 May 2025 15:50:09 -0400 (0:00:00.600) 0:00:24.495 ********* ok: [managed-node1] => { "changed": false, "cmd": [ "firewall-cmd", "--permanent", "--zone=customzone", "--query-masquerade" ], "delta": "0:00:00.267402", "end": "2025-05-14 15:50:09.932305", "failed_when_result": false, "rc": 0, "start": "2025-05-14 15:50:09.664903" } STDOUT: yes TASK [Verify custom zone has masquerade added to it] *************************** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:126 Wednesday 14 May 2025 15:50:09 -0400 (0:00:00.595) 0:00:25.090 ********* ok: [managed-node1] => { "changed": false, "cmd": [ "firewall-cmd", "--get-default-zone" ], "delta": "0:00:00.255485", "end": "2025-05-14 15:50:10.517817", "failed_when_result": false, "rc": 0, "start": "2025-05-14 15:50:10.262332" } STDOUT: dmz TASK [Verify that service http has been added to the default zone dmz] ********* task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:132 Wednesday 14 May 2025 15:50:10 -0400 (0:00:00.584) 0:00:25.675 ********* ok: [managed-node1] => { "changed": false, "cmd": [ "firewall-cmd", "--zone=dmz", "--query-service=http" ], "delta": "0:00:00.272925", "end": "2025-05-14 15:50:11.120740", "failed_when_result": false, "rc": 0, "start": "2025-05-14 15:50:10.847815" } STDOUT: yes TASK [Remove customzone zone] ************************************************** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:144 Wednesday 14 May 2025 15:50:11 -0400 (0:00:00.603) 0:00:26.279 ********* ok: [managed-node1] => { "changed": false, "cmd": [ "firewall-cmd", "--permanent", "--delete-zone=customzone" ], "delta": "0:00:00.271196", "end": "2025-05-14 15:50:11.719897", "failed_when_result": false, "rc": 0, "start": "2025-05-14 15:50:11.448701" } STDOUT: success TASK [Reset to zone defaults] ************************************************** task path: /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:150 Wednesday 14 May 2025 15:50:11 -0400 (0:00:00.600) 0:00:26.879 ********* 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.280237", "end": "2025-05-14 15:50:13.328693", "rc": 0, "start": "2025-05-14 15:50:12.048456" } STDOUT: success success STDERR: Error: NO_DEFAULTS: external Error: NO_DEFAULTS: trusted META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* managed-node1 : ok=39 changed=1 unreachable=0 failed=0 skipped=48 rescued=0 ignored=0 Wednesday 14 May 2025 15:50:13 -0400 (0:00:01.599) 0:00:28.479 ********* =============================================================================== fedora.linux_system_roles.firewall : Configure firewall ----------------- 3.48s /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:71 fedora.linux_system_roles.firewall : Configure firewall ----------------- 1.91s /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:71 Reset to zone defaults -------------------------------------------------- 1.60s /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:150 Gathering Facts --------------------------------------------------------- 0.97s /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:2 fedora.linux_system_roles.firewall : Install firewalld ------------------ 0.90s /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:31 fedora.linux_system_roles.firewall : Get config files, checksums before and remove --- 0.88s /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:43 Verify firewalld zone internal services --------------------------------- 0.74s /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:102 fedora.linux_system_roles.firewall : Unmask firewalld service ----------- 0.71s /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:22 fedora.linux_system_roles.firewall : Install firewalld ------------------ 0.64s /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:31 fedora.linux_system_roles.firewall : Install firewalld ------------------ 0.64s /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:31 Verify firewalld zone internal ports ------------------------------------ 0.62s /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:108 Verify that service http has been added to the default zone dmz --------- 0.60s /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:132 Remove customzone zone -------------------------------------------------- 0.60s /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:144 Verify firewalld zone internal forward ports ---------------------------- 0.60s /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:114 Verify custom zone has masquerade added to it --------------------------- 0.60s /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:120 Verify custom zone has masquerade added to it --------------------------- 0.58s /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_zone.yml:126 fedora.linux_system_roles.firewall : Check if system is ostree ---------- 0.55s /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:10 fedora.linux_system_roles.firewall : Enable and start firewalld service --- 0.44s /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:28 fedora.linux_system_roles.firewall : Unmask firewalld service ----------- 0.42s /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:22 fedora.linux_system_roles.firewall : Enable and start firewalld service --- 0.40s /tmp/collections-VZi/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:28