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_ansible.yml **************************************************** 1 plays in /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:2 Monday 19 May 2025 00:30:12 -0400 (0:00:00.025) 0:00:00.025 ************ ok: [managed-node1] META: ran handlers TASK [fedora.linux_system_roles.firewall : Setup firewalld] ******************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:2 Monday 19 May 2025 00:30:14 -0400 (0:00:02.170) 0:00:02.196 ************ included: /tmp/collections-S5Q/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-S5Q/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Monday 19 May 2025 00:30:14 -0400 (0:00:00.036) 0:00:02.232 ************ 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-S5Q/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:10 Monday 19 May 2025 00:30:14 -0400 (0:00:00.045) 0:00:02.278 ************ 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-S5Q/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:15 Monday 19 May 2025 00:30:14 -0400 (0:00:00.495) 0:00:02.773 ************ 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-S5Q/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:22 Monday 19 May 2025 00:30:14 -0400 (0:00:00.053) 0:00:02.827 ************ ok: [managed-node1] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.firewall : Set flag if transactional-update exists] *** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:27 Monday 19 May 2025 00:30:15 -0400 (0:00:00.346) 0:00:03.173 ************ ok: [managed-node1] => { "ansible_facts": { "__firewall_is_transactional": false }, "changed": false } TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:31 Monday 19 May 2025 00:30:15 -0400 (0:00:00.069) 0:00:03.243 ************ 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-S5Q/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:43 Monday 19 May 2025 00:30:16 -0400 (0:00:00.881) 0:00:04.125 ************ skipping: [managed-node1] => {} TASK [fedora.linux_system_roles.firewall : Reboot transactional update systems] *** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:48 Monday 19 May 2025 00:30:16 -0400 (0:00:00.042) 0:00:04.167 ************ 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-S5Q/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:53 Monday 19 May 2025 00:30:16 -0400 (0:00:00.042) 0:00:04.210 ************ skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Check which conflicting services are enabled] *** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:5 Monday 19 May 2025 00:30:16 -0400 (0:00:00.044) 0:00:04.254 ************ 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 : Attempt to stop and disable conflicting services] *** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:14 Monday 19 May 2025 00:30:16 -0400 (0:00:00.092) 0:00:04.346 ************ skipping: [managed-node1] => (item={u'skip_reason': u'Conditional result was False', u'item': u'nftables', u'skipped': True, u'ansible_loop_var': u'item', u'changed': False}) => { "ansible_loop_var": "item", "changed": false, "item": { "ansible_loop_var": "item", "changed": false, "item": "nftables", "skip_reason": "Conditional result was False", "skipped": true }, "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item={u'skip_reason': u'Conditional result was False', u'item': u'iptables', u'skipped': True, u'ansible_loop_var': u'item', u'changed': False}) => { "ansible_loop_var": "item", "changed": false, "item": { "ansible_loop_var": "item", "changed": false, "item": "iptables", "skip_reason": "Conditional result was False", "skipped": true }, "skip_reason": "Conditional result was False" } skipping: [managed-node1] => (item={u'skip_reason': u'Conditional result was False', u'item': u'ufw', u'skipped': True, u'ansible_loop_var': u'item', u'changed': False}) => { "ansible_loop_var": "item", "changed": false, "item": { "ansible_loop_var": "item", "changed": false, "item": "ufw", "skip_reason": "Conditional result was False", "skipped": true }, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Unmask firewalld service] *********** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:24 Monday 19 May 2025 00:30:16 -0400 (0:00:00.100) 0:00:04.446 ************ ok: [managed-node1] => { "changed": false, "name": "firewalld", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "basic.target polkit.service system.slice dbus.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "network-pre.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "Conflicts": "ipset.service ip6tables.service ebtables.service shutdown.target iptables.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": "0", "ExecMainStartTimestampMonotonic": "0", "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", "InactiveExitTimestampMonotonic": "0", "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": "0", "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": "dead", "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": "disabled", "Wants": "network-pre.target", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.firewall : Enable and start firewalld service] *** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:30 Monday 19 May 2025 00:30:17 -0400 (0:00:00.738) 0:00:05.185 ************ changed: [managed-node1] => { "changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "basic.target polkit.service system.slice dbus.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "network-pre.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "Conflicts": "iptables.service ipset.service shutdown.target ip6tables.service ebtables.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": "0", "ExecMainStartTimestampMonotonic": "0", "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", "InactiveExitTimestampMonotonic": "0", "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": "0", "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": "dead", "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": "disabled", "Wants": "network-pre.target", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.firewall : Check if previous replaced is defined] *** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:36 Monday 19 May 2025 00:30:18 -0400 (0:00:00.843) 0:00:06.029 ************ 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-S5Q/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:45 Monday 19 May 2025 00:30:18 -0400 (0:00:00.064) 0:00:06.093 ************ 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-S5Q/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:57 Monday 19 May 2025 00:30:18 -0400 (0:00:00.047) 0:00:06.141 ************ skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Configure firewall] ***************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:73 Monday 19 May 2025 00:30:18 -0400 (0:00:00.040) 0:00:06.182 ************ TASK [fedora.linux_system_roles.firewall : Gather firewall config information] *** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:123 Monday 19 May 2025 00:30:18 -0400 (0:00:00.042) 0:00:06.224 ************ TASK [fedora.linux_system_roles.firewall : Update firewalld_config fact] ******* task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:133 Monday 19 May 2025 00:30:18 -0400 (0:00:00.041) 0:00:06.266 ************ 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-S5Q/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:142 Monday 19 May 2025 00:30:18 -0400 (0:00:00.042) 0:00:06.308 ************ ok: [managed-node1] => { "changed": false, "firewall_config": { "custom": { "zones": { "public": { "description": "For use in public areas. You do not trust the other computers on networks to not harm your computer. Only selected incoming connections are accepted.", "forward_ports": [], "icmp_block_inversion": false, "icmp_blocks": [], "interfaces": [], "masqerade": false, "ports": [], "protocols": [], "rules_str": [], "services": [ "ssh", "dhcpv6-client" ], "short": "Public", "source_ports": [], "sources": [], "target": "default", "version": "" } } }, "default": { "helpers": [ "snmp", "amanda", "ftp", "proto-gre", "h323", "irc", "pptp", "sane", "netbios-ns", "RAS", "Q.931", "sip", "tftp" ], "icmptypes": [ "redirect", "failed-policy", "precedence-cutoff", "bad-header", "required-option-missing", "tos-host-unreachable", "host-unknown", "time-exceeded", "port-unreachable", "tos-network-unreachable", "parameter-problem", "tos-host-redirect", "destination-unreachable", "no-route", "fragmentation-needed", "unknown-option", "address-unreachable", "echo-reply", "host-unreachable", "ttl-zero-during-reassembly", "router-advertisement", "network-prohibited", "source-quench", "communication-prohibited", "protocol-unreachable", "router-solicitation", "network-unreachable", "network-unknown", "host-redirect", "timestamp-reply", "packet-too-big", "timestamp-request", "neighbour-solicitation", "tos-network-redirect", "ttl-zero-during-transit", "network-redirect", "host-prohibited", "reject-route", "ip-header-bad", "unknown-header-type", "echo-request", "source-route-failed", "host-precedence-violation", "neighbour-advertisement", "beyond-scope" ], "services": [ "rsh", "kprop", "pmwebapis", "libvirt", "snmp", "kpasswd", "pop3s", "imap", "jenkins", "dropbox-lansync", "docker-registry", "etcd-client", "mongodb", "tor-socks", "samba-dc", "vdsm", "ganglia-master", "iscsi-target", "proxy-dhcp", "high-availability", "RH-Satellite-6-capsule", "condor-collector", "ftp", "kibana", "freeipa-ldaps", "freeipa-ldap", "smtp-submission", "kshell", "amqps", "libvirt-tls", "nfs3", "ptp", "bitcoin-testnet-rpc", "managesieve", "mssql", "xmpp-local", "synergy", "bacula", "mqtt", "amanda-k5-client", "ipp-client", "matrix", "ntp", "amanda-client", "nut", "bitcoin", "privoxy", "RH-Satellite-6", "syncthing", "mountd", "distcc", "postgresql", "nrpe", "svdrp", "wbem-https", "bgp", "pmproxy", "murmur", "etcd-server", "mqtt-tls", "sips", "irc", "bitcoin-testnet", "apcupsd", "tinc", "kerberos", "radius", "transmission-client", "pmwebapi", "ovirt-vmconsole", "steam-streaming", "isns", "dhcpv6", "lightning-network", "git", "rtsp", "squid", "openvpn", "smtps", "cfengine", "zabbix-agent", "samba-client", "rsyncd", "ovirt-storageconsole", "ircs", "llmnr", "gre", "ldaps", "xmpp-client", "dhcp", "xmpp-server", "sane", "vnc-server", "ceph", "freeipa-replication", "dns", "docker-swarm", "mosh", "xmpp-bosh", "klogin", "slp", "snmptrap", "upnp-client", "ceph-mon", "samba", "rpc-bind", "salt-master", "wsmans", "bitcoin-rpc", "minidlna", "tftp-client", "freeipa-trust", "syslog-tls", "ipsec", "dhcpv6-client", "telnet", "https", "audit", "ssh", "pop3", "nmea-0183", "zabbix-server", "wsman", "xdmcp", "puppetmaster", "finger", "ipp", "ms-wbt", "syncthing-gui", "redis", "syslog", "ganglia-client", "ovirt-imageio", "pmcd", "ldap", "nfs", "kadmin", "sip", "ctdb", "spideroak-lansync", "amqp", "mdns", "http", "quassel", "imaps", "mysql", "elasticsearch", "bacula-client", "smtp", "tftp", "svn", "plex", "wbem-http", "pulseaudio" ], "zones": [ "block", "internal", "drop", "public", "work", "trusted", "external", "home", "dmz" ] }, "default_zone": "public" } } TASK [fedora.linux_system_roles.firewall : Update firewalld_config fact] ******* task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:147 Monday 19 May 2025 00:30:19 -0400 (0:00:00.687) 0:00:06.996 ************ ok: [managed-node1] => { "ansible_facts": { "firewall_config": { "custom": { "zones": { "public": { "description": "For use in public areas. You do not trust the other computers on networks to not harm your computer. Only selected incoming connections are accepted.", "forward_ports": [], "icmp_block_inversion": false, "icmp_blocks": [], "interfaces": [], "masqerade": false, "ports": [], "protocols": [], "rules_str": [], "services": [ "ssh", "dhcpv6-client" ], "short": "Public", "source_ports": [], "sources": [], "target": "default", "version": "" } } }, "default": { "helpers": [ "snmp", "amanda", "ftp", "proto-gre", "h323", "irc", "pptp", "sane", "netbios-ns", "RAS", "Q.931", "sip", "tftp" ], "icmptypes": [ "redirect", "failed-policy", "precedence-cutoff", "bad-header", "required-option-missing", "tos-host-unreachable", "host-unknown", "time-exceeded", "port-unreachable", "tos-network-unreachable", "parameter-problem", "tos-host-redirect", "destination-unreachable", "no-route", "fragmentation-needed", "unknown-option", "address-unreachable", "echo-reply", "host-unreachable", "ttl-zero-during-reassembly", "router-advertisement", "network-prohibited", "source-quench", "communication-prohibited", "protocol-unreachable", "router-solicitation", "network-unreachable", "network-unknown", "host-redirect", "timestamp-reply", "packet-too-big", "timestamp-request", "neighbour-solicitation", "tos-network-redirect", "ttl-zero-during-transit", "network-redirect", "host-prohibited", "reject-route", "ip-header-bad", "unknown-header-type", "echo-request", "source-route-failed", "host-precedence-violation", "neighbour-advertisement", "beyond-scope" ], "services": [ "rsh", "kprop", "pmwebapis", "libvirt", "snmp", "kpasswd", "pop3s", "imap", "jenkins", "dropbox-lansync", "docker-registry", "etcd-client", "mongodb", "tor-socks", "samba-dc", "vdsm", "ganglia-master", "iscsi-target", "proxy-dhcp", "high-availability", "RH-Satellite-6-capsule", "condor-collector", "ftp", "kibana", "freeipa-ldaps", "freeipa-ldap", "smtp-submission", "kshell", "amqps", "libvirt-tls", "nfs3", "ptp", "bitcoin-testnet-rpc", "managesieve", "mssql", "xmpp-local", "synergy", "bacula", "mqtt", "amanda-k5-client", "ipp-client", "matrix", "ntp", "amanda-client", "nut", "bitcoin", "privoxy", "RH-Satellite-6", "syncthing", "mountd", "distcc", "postgresql", "nrpe", "svdrp", "wbem-https", "bgp", "pmproxy", "murmur", "etcd-server", "mqtt-tls", "sips", "irc", "bitcoin-testnet", "apcupsd", "tinc", "kerberos", "radius", "transmission-client", "pmwebapi", "ovirt-vmconsole", "steam-streaming", "isns", "dhcpv6", "lightning-network", "git", "rtsp", "squid", "openvpn", "smtps", "cfengine", "zabbix-agent", "samba-client", "rsyncd", "ovirt-storageconsole", "ircs", "llmnr", "gre", "ldaps", "xmpp-client", "dhcp", "xmpp-server", "sane", "vnc-server", "ceph", "freeipa-replication", "dns", "docker-swarm", "mosh", "xmpp-bosh", "klogin", "slp", "snmptrap", "upnp-client", "ceph-mon", "samba", "rpc-bind", "salt-master", "wsmans", "bitcoin-rpc", "minidlna", "tftp-client", "freeipa-trust", "syslog-tls", "ipsec", "dhcpv6-client", "telnet", "https", "audit", "ssh", "pop3", "nmea-0183", "zabbix-server", "wsman", "xdmcp", "puppetmaster", "finger", "ipp", "ms-wbt", "syncthing-gui", "redis", "syslog", "ganglia-client", "ovirt-imageio", "pmcd", "ldap", "nfs", "kadmin", "sip", "ctdb", "spideroak-lansync", "amqp", "mdns", "http", "quassel", "imaps", "mysql", "elasticsearch", "bacula-client", "smtp", "tftp", "svn", "plex", "wbem-http", "pulseaudio" ], "zones": [ "block", "internal", "drop", "public", "work", "trusted", "external", "home", "dmz" ] }, "default_zone": "public" } }, "changed": false } TASK [fedora.linux_system_roles.firewall : Get config files, checksums after] *** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:156 Monday 19 May 2025 00:30:19 -0400 (0:00:00.084) 0:00:07.081 ************ 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-S5Q/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:166 Monday 19 May 2025 00:30:19 -0400 (0:00:00.060) 0:00:07.141 ************ skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Show diffs] ************************* task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:172 Monday 19 May 2025 00:30:19 -0400 (0:00:00.050) 0:00:07.192 ************ skipping: [managed-node1] => {} TASK [Get default zone] ******************************************************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:11 Monday 19 May 2025 00:30:19 -0400 (0:00:00.044) 0:00:07.237 ************ ok: [managed-node1] => { "changed": false, "cmd": [ "firewall-offline-cmd", "--get-default-zone" ], "delta": "0:00:00.225773", "end": "2025-05-19 00:30:19.975222", "rc": 0, "start": "2025-05-19 00:30:19.749449" } STDOUT: public TASK [Remove custom zone] ****************************************************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:21 Monday 19 May 2025 00:30:20 -0400 (0:00:00.658) 0:00:07.895 ************ ok: [managed-node1] => { "changed": false, "cmd": [ "firewall-offline-cmd", "--delete-zone=custom" ], "delta": "0:00:00.216501", "end": "2025-05-19 00:30:20.492903", "failed_when_result": false, "rc": 112, "start": "2025-05-19 00:30:20.276402" } STDERR: INVALID_ZONE: get_zone(): custom MSG: non-zero return code TASK [Reset internal zone to defaults] ***************************************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:27 Monday 19 May 2025 00:30:20 -0400 (0:00:00.534) 0:00:08.430 ************ ok: [managed-node1] => { "changed": false, "cmd": [ "firewall-offline-cmd", "--load-zone-defaults=internal" ], "delta": "0:00:00.216232", "end": "2025-05-19 00:30:21.026016", "failed_when_result": false, "rc": 22, "start": "2025-05-19 00:30:20.809784" } STDERR: NO_DEFAULTS: internal MSG: non-zero return code TASK [Reset trusted zone to defaults] ****************************************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:33 Monday 19 May 2025 00:30:21 -0400 (0:00:00.557) 0:00:08.987 ************ ok: [managed-node1] => { "changed": false, "cmd": [ "firewall-offline-cmd", "--load-zone-defaults=trusted" ], "delta": "0:00:00.217863", "end": "2025-05-19 00:30:21.615854", "failed_when_result": false, "rc": 22, "start": "2025-05-19 00:30:21.397991" } STDERR: NO_DEFAULTS: trusted MSG: non-zero return code TASK [Reset dmz zone to defaults] ********************************************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:39 Monday 19 May 2025 00:30:21 -0400 (0:00:00.606) 0:00:09.594 ************ ok: [managed-node1] => { "changed": false, "cmd": [ "firewall-offline-cmd", "--load-zone-defaults=dmz" ], "delta": "0:00:00.215106", "end": "2025-05-19 00:30:22.210417", "failed_when_result": false, "rc": 22, "start": "2025-05-19 00:30:21.995311" } STDERR: NO_DEFAULTS: dmz MSG: non-zero return code TASK [Reset drop zone to defaults] ********************************************* task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:45 Monday 19 May 2025 00:30:22 -0400 (0:00:00.577) 0:00:10.172 ************ ok: [managed-node1] => { "changed": false, "cmd": [ "firewall-offline-cmd", "--load-zone-defaults=drop" ], "delta": "0:00:00.217865", "end": "2025-05-19 00:30:22.800743", "failed_when_result": false, "rc": 22, "start": "2025-05-19 00:30:22.582878" } STDERR: NO_DEFAULTS: drop MSG: non-zero return code TASK [Reset public zone to defaults] ******************************************* task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:51 Monday 19 May 2025 00:30:22 -0400 (0:00:00.570) 0:00:10.742 ************ ok: [managed-node1] => { "changed": false, "cmd": [ "firewall-offline-cmd", "--load-zone-defaults=public" ], "delta": "0:00:00.214145", "end": "2025-05-19 00:30:23.371745", "failed_when_result": false, "rc": 0, "start": "2025-05-19 00:30:23.157600" } STDOUT: success TASK [Reset default zone to defaults] ****************************************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:57 Monday 19 May 2025 00:30:23 -0400 (0:00:00.593) 0:00:11.335 ************ ok: [managed-node1] => { "changed": false, "cmd": "zone=$(firewall-offline-cmd --get-default-zone)\nfirewall-offline-cmd --load-zone-defaults=$zone\n", "delta": "0:00:00.437650", "end": "2025-05-19 00:30:24.188661", "failed_when_result": false, "rc": 0, "start": "2025-05-19 00:30:23.751011" } STDOUT: success TASK [Create custom zone] ****************************************************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:66 Monday 19 May 2025 00:30:24 -0400 (0:00:00.817) 0:00:12.153 ************ changed: [managed-node1] => { "changed": true, "cmd": [ "firewall-offline-cmd", "--new-zone=custom" ], "delta": "0:00:00.216423", "end": "2025-05-19 00:30:24.782540", "failed_when_result": false, "rc": 0, "start": "2025-05-19 00:30:24.566117" } STDOUT: success TASK [Reload firewalld] ******************************************************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:72 Monday 19 May 2025 00:30:24 -0400 (0:00:00.573) 0:00:12.727 ************ changed: [managed-node1] => { "changed": true, "cmd": [ "firewall-cmd", "--reload" ], "delta": "0:00:00.455031", "end": "2025-05-19 00:30:25.592498", "failed_when_result": false, "rc": 0, "start": "2025-05-19 00:30:25.137467" } STDOUT: success TASK [Permit traffic in default zone for https service] ************************ task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:80 Monday 19 May 2025 00:30:25 -0400 (0:00:00.827) 0:00:13.554 ************ changed: [managed-node1] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Permit traffic in default zone for https service, again] ***************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:88 Monday 19 May 2025 00:30:26 -0400 (0:00:00.787) 0:00:14.341 ************ ok: [managed-node1] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Permit traffic in default zone on port 8081/tcp] ************************* task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:96 Monday 19 May 2025 00:30:27 -0400 (0:00:00.578) 0:00:14.919 ************ changed: [managed-node1] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Permit traffic in default zone on port 8081/tcp, again] ****************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:104 Monday 19 May 2025 00:30:27 -0400 (0:00:00.562) 0:00:15.482 ************ ok: [managed-node1] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Allow port 161-162/udp in permanent default zone] ************************ task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:112 Monday 19 May 2025 00:30:28 -0400 (0:00:00.586) 0:00:16.068 ************ changed: [managed-node1] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Allow port 161-162/udp in permanent default zone, again] ***************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:120 Monday 19 May 2025 00:30:28 -0400 (0:00:00.554) 0:00:16.623 ************ ok: [managed-node1] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Do not permit traffic in default zone on port 8081/tcp] ****************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:128 Monday 19 May 2025 00:30:29 -0400 (0:00:00.535) 0:00:17.159 ************ changed: [managed-node1] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Do not permit traffic in default zone on port 8081/tcp, again] *********** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:136 Monday 19 May 2025 00:30:29 -0400 (0:00:00.562) 0:00:17.721 ************ ok: [managed-node1] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Allow service http in permanent dmz zone] ******************************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:144 Monday 19 May 2025 00:30:30 -0400 (0:00:00.607) 0:00:18.329 ************ changed: [managed-node1] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Allow service http in permanent dmz zone, again] ************************* task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:153 Monday 19 May 2025 00:30:31 -0400 (0:00:00.554) 0:00:18.884 ************ ok: [managed-node1] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Allow service ftp with limitation using rich rule in permanent default zone] *** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:162 Monday 19 May 2025 00:30:31 -0400 (0:00:00.561) 0:00:19.445 ************ changed: [managed-node1] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Allow service ftp with limitation using rich rule in permanent default zone, again] *** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:170 Monday 19 May 2025 00:30:32 -0400 (0:00:00.550) 0:00:19.996 ************ ok: [managed-node1] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Allow source 192.0.2.0/24 in internal zone] ****************************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:178 Monday 19 May 2025 00:30:32 -0400 (0:00:00.603) 0:00:20.600 ************ changed: [managed-node1] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Allow source 192.0.2.0/24 in internal zone, again] *********************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:187 Monday 19 May 2025 00:30:33 -0400 (0:00:00.568) 0:00:21.168 ************ ok: [managed-node1] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Allow nm interface eth0 in permanent trusted zone] *********************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:196 Monday 19 May 2025 00:30:33 -0400 (0:00:00.555) 0:00:21.724 ************ changed: [managed-node1] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Allow nm interface eth0 in permanent trusted zone, again] **************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:205 Monday 19 May 2025 00:30:34 -0400 (0:00:00.605) 0:00:22.329 ************ ok: [managed-node1] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Disable nm interface eth0 in permanent trusted zone] ********************* task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:214 Monday 19 May 2025 00:30:35 -0400 (0:00:00.645) 0:00:22.974 ************ changed: [managed-node1] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Disable nm interface eth0 in permanent trusted zone, again] ************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:223 Monday 19 May 2025 00:30:35 -0400 (0:00:00.624) 0:00:23.599 ************ ok: [managed-node1] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Allow interface eth2 in permanent trusted zone] ************************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:232 Monday 19 May 2025 00:30:36 -0400 (0:00:00.606) 0:00:24.206 ************ changed: [managed-node1] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Allow interface eth2 in permanent trusted zone, again] ******************* task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:241 Monday 19 May 2025 00:30:36 -0400 (0:00:00.599) 0:00:24.805 ************ ok: [managed-node1] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Allow masquerading in permanent dmz zone] ******************************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:250 Monday 19 May 2025 00:30:37 -0400 (0:00:00.616) 0:00:25.421 ************ changed: [managed-node1] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Allow masquerading in permanent dmz zone, again] ************************* task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:258 Monday 19 May 2025 00:30:38 -0400 (0:00:00.609) 0:00:26.031 ************ ok: [managed-node1] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Ensure permanent custom zone exists (no change)] ************************* task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:266 Monday 19 May 2025 00:30:38 -0400 (0:00:00.535) 0:00:26.566 ************ ok: [managed-node1] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Ensure ICMP block inversion in permanent drop zone] ********************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:274 Monday 19 May 2025 00:30:39 -0400 (0:00:00.530) 0:00:27.097 ************ changed: [managed-node1] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Ensure ICMP block inversion in permanent drop zone, again] *************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:282 Monday 19 May 2025 00:30:39 -0400 (0:00:00.544) 0:00:27.641 ************ ok: [managed-node1] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Block ICMP echo-request in permanent drop zone] ************************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:290 Monday 19 May 2025 00:30:40 -0400 (0:00:00.579) 0:00:28.221 ************ changed: [managed-node1] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Block ICMP echo-request in permanent drop zone, again] ******************* task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:299 Monday 19 May 2025 00:30:40 -0400 (0:00:00.554) 0:00:28.775 ************ ok: [managed-node1] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Ensure default target in permanent internal zone (no change)] ************ task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:308 Monday 19 May 2025 00:30:41 -0400 (0:00:00.558) 0:00:29.333 ************ ok: [managed-node1] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Ensure target ACCEPT in permanent internal zone] ************************* task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:317 Monday 19 May 2025 00:30:42 -0400 (0:00:00.592) 0:00:29.926 ************ changed: [managed-node1] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Ensure target ACCEPT in permanent internal zone, again] ****************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:326 Monday 19 May 2025 00:30:42 -0400 (0:00:00.817) 0:00:30.744 ************ ok: [managed-node1] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Ensure default target in permanent internal zone] ************************ task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:335 Monday 19 May 2025 00:30:43 -0400 (0:00:00.578) 0:00:31.323 ************ changed: [managed-node1] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Ensure default target in permanent internal zone, again] ***************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:344 Monday 19 May 2025 00:30:44 -0400 (0:00:00.822) 0:00:32.146 ************ ok: [managed-node1] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Redirect port 443 to 8443 with Rich Rule in permanent and runtime public zone] *** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:353 Monday 19 May 2025 00:30:44 -0400 (0:00:00.581) 0:00:32.728 ************ changed: [managed-node1] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Redirect port 443 to 8443 with Rich Rule in permanent and runtime public zone, again] *** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:363 Monday 19 May 2025 00:30:45 -0400 (0:00:00.556) 0:00:33.284 ************ ok: [managed-node1] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Firewalld custom zone] *************************************************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:373 Monday 19 May 2025 00:30:45 -0400 (0:00:00.565) 0:00:33.850 ************ changed: [managed-node1] => { "__firewall_changed": true, "changed": true } TASK [Assert firewalld custom zone] ******************************************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:381 Monday 19 May 2025 00:30:46 -0400 (0:00:00.767) 0:00:34.617 ************ ok: [managed-node1] => { "changed": false } MSG: All assertions passed TASK [Add masquerade to custom zone] ******************************************* task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:386 Monday 19 May 2025 00:30:46 -0400 (0:00:00.057) 0:00:34.675 ************ changed: [managed-node1] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Add masquerade to custom zone, again] ************************************ task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:396 Monday 19 May 2025 00:30:47 -0400 (0:00:00.574) 0:00:35.250 ************ ok: [managed-node1] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Set the default zone to something other than dmz] ************************ task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:406 Monday 19 May 2025 00:30:47 -0400 (0:00:00.606) 0:00:35.857 ************ ok: [managed-node1] => { "changed": false, "cmd": "cur_zone=$(firewall-offline-cmd --get-default-zone)\nif [ \"$cur_zone\" != public ]; then\n firewall-offline-cmd --set-default-zone public\nfi\n", "delta": "0:00:00.223875", "end": "2025-05-19 00:30:48.483508", "rc": 0, "start": "2025-05-19 00:30:48.259633" } TASK [Set default zone] ******************************************************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:415 Monday 19 May 2025 00:30:48 -0400 (0:00:00.557) 0:00:36.414 ************ changed: [managed-node1] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Set default zone, again] ************************************************* task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:422 Monday 19 May 2025 00:30:49 -0400 (0:00:00.631) 0:00:37.046 ************ ok: [managed-node1] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Add multiple custom services] ******************************************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:429 Monday 19 May 2025 00:30:49 -0400 (0:00:00.625) 0:00:37.672 ************ ok: [managed-node1] => { "changed": false, "failed_when_result": false } MSG: can only add, modify, or remove one service at a time TASK [Add custom service without details] ************************************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:439 Monday 19 May 2025 00:30:50 -0400 (0:00:00.486) 0:00:38.158 ************ changed: [managed-node1] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Add custom service that already exists] ********************************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:447 Monday 19 May 2025 00:30:51 -0400 (0:00:00.797) 0:00:38.956 ************ ok: [managed-node1] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Add description to custom service] *************************************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:455 Monday 19 May 2025 00:30:51 -0400 (0:00:00.558) 0:00:39.514 ************ changed: [managed-node1] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Add short description to custom service] ********************************* task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:464 Monday 19 May 2025 00:30:52 -0400 (0:00:00.794) 0:00:40.309 ************ changed: [managed-node1] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Add source_ports to custom service] ************************************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:473 Monday 19 May 2025 00:30:53 -0400 (0:00:00.757) 0:00:41.066 ************ changed: [managed-node1] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Add source_ports to custom service again] ******************************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:482 Monday 19 May 2025 00:30:53 -0400 (0:00:00.753) 0:00:41.819 ************ ok: [managed-node1] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Add invalid protocol to custom service] ********************************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:491 Monday 19 May 2025 00:30:54 -0400 (0:00:00.548) 0:00:42.368 ************ ok: [managed-node1] => { "changed": false, "failed_when_result": false } MSG: INVALID_PROTOCOL: nonexistentprotocol TASK [Add valid protocol to custom service] ************************************ task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:500 Monday 19 May 2025 00:30:55 -0400 (0:00:00.575) 0:00:42.944 ************ changed: [managed-node1] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Remove valid protocol from customservice] ******************************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:509 Monday 19 May 2025 00:30:55 -0400 (0:00:00.815) 0:00:43.759 ************ changed: [managed-node1] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Remove ports from custom service without deleting service] *************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:518 Monday 19 May 2025 00:30:56 -0400 (0:00:00.842) 0:00:44.602 ************ changed: [managed-node1] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Add destination addresses] *********************************************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:527 Monday 19 May 2025 00:30:57 -0400 (0:00:00.831) 0:00:45.433 ************ changed: [managed-node1] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Add includes] ************************************************************ task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:538 Monday 19 May 2025 00:30:58 -0400 (0:00:00.800) 0:00:46.234 ************ skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Add includes again to check idempotence] ********************************* task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:552 Monday 19 May 2025 00:30:58 -0400 (0:00:00.067) 0:00:46.302 ************ skipping: [managed-node1] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Delete custom service] *************************************************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:566 Monday 19 May 2025 00:30:58 -0400 (0:00:00.074) 0:00:46.376 ************ changed: [managed-node1] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Delete custom service again] ********************************************* task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:574 Monday 19 May 2025 00:30:59 -0400 (0:00:00.804) 0:00:47.180 ************ ok: [managed-node1] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Add custom service with all the elements at once] ************************ task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:582 Monday 19 May 2025 00:30:59 -0400 (0:00:00.577) 0:00:47.758 ************ changed: [managed-node1] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Add helper module that already is on customservice] ********************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:600 Monday 19 May 2025 00:31:00 -0400 (0:00:00.816) 0:00:48.574 ************ ok: [managed-node1] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Forward port 40 to 0.0.0.0:8080 (string)] ******************************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:609 Monday 19 May 2025 00:31:01 -0400 (0:00:00.567) 0:00:49.141 ************ changed: [managed-node1] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Forward same port again (string)] **************************************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:616 Monday 19 May 2025 00:31:01 -0400 (0:00:00.585) 0:00:49.727 ************ ok: [managed-node1] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Disable forward port (string)] ******************************************* task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:623 Monday 19 May 2025 00:31:02 -0400 (0:00:00.591) 0:00:50.319 ************ changed: [managed-node1] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Forward port (dict form)] ************************************************ task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:630 Monday 19 May 2025 00:31:03 -0400 (0:00:00.596) 0:00:50.916 ************ changed: [managed-node1] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Forward port again (dict form)] ****************************************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:641 Monday 19 May 2025 00:31:03 -0400 (0:00:00.583) 0:00:51.500 ************ ok: [managed-node1] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Disable forward port (dict form)] **************************************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:652 Monday 19 May 2025 00:31:04 -0400 (0:00:00.535) 0:00:52.035 ************ changed: [managed-node1] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Remove custom zone] ****************************************************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:671 Monday 19 May 2025 00:31:04 -0400 (0:00:00.663) 0:00:52.699 ************ ok: [managed-node1] => { "changed": false, "cmd": [ "firewall-offline-cmd", "--delete-zone=custom" ], "delta": "0:00:00.216318", "end": "2025-05-19 00:31:05.330914", "failed_when_result": false, "rc": 0, "start": "2025-05-19 00:31:05.114596" } STDOUT: success TASK [Remove customzone zone] ************************************************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:677 Monday 19 May 2025 00:31:05 -0400 (0:00:00.572) 0:00:53.272 ************ ok: [managed-node1] => { "changed": false, "cmd": [ "firewall-offline-cmd", "--delete-zone=customzone" ], "delta": "0:00:00.216944", "end": "2025-05-19 00:31:05.869580", "failed_when_result": false, "rc": 0, "start": "2025-05-19 00:31:05.652636" } STDOUT: success TASK [Reset internal zone to defaults] ***************************************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:683 Monday 19 May 2025 00:31:05 -0400 (0:00:00.566) 0:00:53.838 ************ ok: [managed-node1] => { "changed": false, "cmd": [ "firewall-offline-cmd", "--load-zone-defaults=internal" ], "delta": "0:00:00.216327", "end": "2025-05-19 00:31:06.454751", "failed_when_result": false, "rc": 0, "start": "2025-05-19 00:31:06.238424" } STDOUT: success TASK [Reset trusted zone to defaults] ****************************************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:689 Monday 19 May 2025 00:31:06 -0400 (0:00:00.566) 0:00:54.405 ************ ok: [managed-node1] => { "changed": false, "cmd": [ "firewall-offline-cmd", "--load-zone-defaults=trusted" ], "delta": "0:00:00.216530", "end": "2025-05-19 00:31:07.009551", "failed_when_result": false, "rc": 0, "start": "2025-05-19 00:31:06.793021" } STDOUT: success TASK [Reset dmz zone to defaults] ********************************************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:695 Monday 19 May 2025 00:31:07 -0400 (0:00:00.573) 0:00:54.979 ************ ok: [managed-node1] => { "changed": false, "cmd": [ "firewall-offline-cmd", "--load-zone-defaults=dmz" ], "delta": "0:00:00.216389", "end": "2025-05-19 00:31:07.601365", "failed_when_result": false, "rc": 0, "start": "2025-05-19 00:31:07.384976" } STDOUT: success TASK [Reset drop zone to defaults] ********************************************* task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:701 Monday 19 May 2025 00:31:07 -0400 (0:00:00.597) 0:00:55.576 ************ ok: [managed-node1] => { "changed": false, "cmd": [ "firewall-offline-cmd", "--load-zone-defaults=drop" ], "delta": "0:00:00.216871", "end": "2025-05-19 00:31:08.189669", "failed_when_result": false, "rc": 0, "start": "2025-05-19 00:31:07.972798" } STDOUT: success TASK [Reset public zone to defaults] ******************************************* task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:707 Monday 19 May 2025 00:31:08 -0400 (0:00:00.580) 0:00:56.157 ************ ok: [managed-node1] => { "changed": false, "cmd": [ "firewall-offline-cmd", "--load-zone-defaults=public" ], "delta": "0:00:00.216190", "end": "2025-05-19 00:31:08.793138", "failed_when_result": false, "rc": 0, "start": "2025-05-19 00:31:08.576948" } STDOUT: success TASK [Reset default zone to defaults] ****************************************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:713 Monday 19 May 2025 00:31:08 -0400 (0:00:00.602) 0:00:56.760 ************ ok: [managed-node1] => { "changed": false, "cmd": [ "firewall-offline-cmd", "--load-zone-defaults=public" ], "delta": "0:00:00.218154", "end": "2025-05-19 00:31:09.410382", "failed_when_result": false, "rc": 22, "start": "2025-05-19 00:31:09.192228" } STDERR: NO_DEFAULTS: public MSG: non-zero return code TASK [Reset default zone] ****************************************************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:719 Monday 19 May 2025 00:31:09 -0400 (0:00:00.592) 0:00:57.352 ************ ok: [managed-node1] => { "changed": false, "cmd": "cur_zone=$(firewall-offline-cmd --get-default-zone)\nif [ \"$cur_zone\" != public ]; then\n firewall-offline-cmd --set-default-zone=public\nfi\n", "delta": "0:00:00.432574", "end": "2025-05-19 00:31:10.219638", "rc": 0, "start": "2025-05-19 00:31:09.787064" } STDOUT: success TASK [Reload firewalld] ******************************************************** task path: /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:728 Monday 19 May 2025 00:31:10 -0400 (0:00:00.793) 0:00:58.146 ************ changed: [managed-node1] => { "changed": true, "cmd": [ "firewall-cmd", "--reload" ], "delta": "0:00:00.445145", "end": "2025-05-19 00:31:11.029594", "failed_when_result": false, "rc": 0, "start": "2025-05-19 00:31:10.584449" } STDOUT: success META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* managed-node1 : ok=95 changed=37 unreachable=0 failed=0 skipped=16 rescued=0 ignored=0 Monday 19 May 2025 00:31:11 -0400 (0:00:00.827) 0:00:58.973 ************ =============================================================================== Gathering Facts --------------------------------------------------------- 2.17s /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:2 fedora.linux_system_roles.firewall : Install firewalld ------------------ 0.88s /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:31 fedora.linux_system_roles.firewall : Enable and start firewalld service --- 0.84s /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:30 Remove valid protocol from customservice -------------------------------- 0.84s /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:509 Remove ports from custom service without deleting service --------------- 0.83s /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:518 Reload firewalld -------------------------------------------------------- 0.83s /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:728 Reload firewalld -------------------------------------------------------- 0.83s /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:72 Ensure default target in permanent internal zone ------------------------ 0.82s /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:335 Ensure target ACCEPT in permanent internal zone ------------------------- 0.82s /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:317 Reset default zone to defaults ------------------------------------------ 0.82s /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:57 Add custom service with all the elements at once ------------------------ 0.82s /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:582 Add valid protocol to custom service ------------------------------------ 0.82s /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:500 Delete custom service --------------------------------------------------- 0.80s /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:566 Add destination addresses ----------------------------------------------- 0.80s /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:527 Add custom service without details -------------------------------------- 0.80s /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:439 Add description to custom service --------------------------------------- 0.79s /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:455 Reset default zone ------------------------------------------------------ 0.79s /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:719 Permit traffic in default zone for https service ------------------------ 0.79s /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:80 Firewalld custom zone --------------------------------------------------- 0.77s /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:373 Add short description to custom service --------------------------------- 0.76s /tmp/collections-S5Q/ansible_collections/fedora/linux_system_roles/tests/firewall/tests_ansible.yml:464