# STDOUT: ---v---v---v---v---v--- ansible-playbook [core 2.16.0] config file = /etc/ansible/ansible.cfg configured module search path = ['/home/jenkins/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /opt/ansible-2.16/lib/python3.11/site-packages/ansible ansible collection location = /WORKDIR/git-use-cs9-containers677xcdg/.collection executable location = /opt/ansible-2.16/bin/ansible-playbook python version = 3.11.5 (main, Sep 7 2023, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] (/opt/ansible-2.16/bin/python) jinja version = 3.1.2 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: tests_ansible.yml **************************************************** 1 plays in /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:2 Friday 14 June 2024 11:46:27 +0000 (0:00:00.014) 0:00:00.014 *********** ok: [sut] TASK [fedora.linux_system_roles.firewall : Setup firewalld] ******************** task path: /WORKDIR/git-use-cs9-containers677xcdg/.collection/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:2 Friday 14 June 2024 11:46:28 +0000 (0:00:00.902) 0:00:00.916 *********** included: /WORKDIR/git-use-cs9-containers677xcdg/.collection/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml for sut TASK [fedora.linux_system_roles.firewall : Ensure ansible_facts used by role] *** task path: /WORKDIR/git-use-cs9-containers677xcdg/.collection/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Friday 14 June 2024 11:46:28 +0000 (0:00:00.012) 0:00:00.929 *********** skipping: [sut] => { "changed": false, "false_condition": "__firewall_required_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Check if system is ostree] ********** task path: /WORKDIR/git-use-cs9-containers677xcdg/.collection/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:10 Friday 14 June 2024 11:46:28 +0000 (0:00:00.018) 0:00:00.947 *********** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [fedora.linux_system_roles.firewall : Set flag to indicate system is ostree] *** task path: /WORKDIR/git-use-cs9-containers677xcdg/.collection/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:15 Friday 14 June 2024 11:46:28 +0000 (0:00:00.184) 0:00:01.132 *********** ok: [sut] => { "ansible_facts": { "__firewall_is_ostree": false }, "changed": false } TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /WORKDIR/git-use-cs9-containers677xcdg/.collection/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 Friday 14 June 2024 11:46:28 +0000 (0:00:00.016) 0:00:01.149 *********** ok: [sut] => { "changed": false, "rc": 0, "results": [ "firewalld-0.6.3-13.el7_9.noarch providing firewalld is already installed" ] } TASK [fedora.linux_system_roles.firewall : Collect service facts] ************** task path: /WORKDIR/git-use-cs9-containers677xcdg/.collection/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:5 Friday 14 June 2024 11:46:28 +0000 (0:00:00.575) 0:00:01.724 *********** skipping: [sut] => { "changed": false, "false_condition": "firewall_disable_conflicting_services | bool", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Attempt to stop and disable conflicting services] *** task path: /WORKDIR/git-use-cs9-containers677xcdg/.collection/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:9 Friday 14 June 2024 11:46:28 +0000 (0:00:00.016) 0:00:01.741 *********** skipping: [sut] => (item=nftables) => { "ansible_loop_var": "item", "changed": false, "false_condition": "firewall_disable_conflicting_services | bool", "item": "nftables", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=iptables) => { "ansible_loop_var": "item", "changed": false, "false_condition": "firewall_disable_conflicting_services | bool", "item": "iptables", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=ufw) => { "ansible_loop_var": "item", "changed": false, "false_condition": "firewall_disable_conflicting_services | bool", "item": "ufw", "skip_reason": "Conditional result was False" } skipping: [sut] => { "changed": false } MSG: All items skipped TASK [fedora.linux_system_roles.firewall : Unmask firewalld service] *********** task path: /WORKDIR/git-use-cs9-containers677xcdg/.collection/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:22 Friday 14 June 2024 11:46:28 +0000 (0:00:00.027) 0:00:01.769 *********** ok: [sut] => { "changed": false, "name": "firewalld", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "polkit.service basic.target 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 iptables.service ebtables.service ip6tables.service shutdown.target", "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": "basic.target system.slice", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "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: /WORKDIR/git-use-cs9-containers677xcdg/.collection/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:28 Friday 14 June 2024 11:46:29 +0000 (0:00:00.416) 0:00:02.186 *********** changed: [sut] => { "changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "polkit.service basic.target 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": "ip6tables.service ipset.service shutdown.target ebtables.service 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": "basic.target system.slice", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "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: /WORKDIR/git-use-cs9-containers677xcdg/.collection/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:34 Friday 14 June 2024 11:46:30 +0000 (0:00:01.292) 0:00:03.479 *********** ok: [sut] => { "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: /WORKDIR/git-use-cs9-containers677xcdg/.collection/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:43 Friday 14 June 2024 11:46:30 +0000 (0:00:00.023) 0:00:03.502 *********** skipping: [sut] => { "changed": false, "false_condition": "__firewall_previous_replaced | bool", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Tell firewall module it is able to report changed] *** task path: /WORKDIR/git-use-cs9-containers677xcdg/.collection/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:55 Friday 14 June 2024 11:46:30 +0000 (0:00:00.016) 0:00:03.519 *********** skipping: [sut] => { "changed": false, "false_condition": "__firewall_previous_replaced | bool", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Configure firewall] ***************** task path: /WORKDIR/git-use-cs9-containers677xcdg/.collection/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:71 Friday 14 June 2024 11:46:30 +0000 (0:00:00.020) 0:00:03.539 *********** skipping: [sut] => { "changed": false, "skipped_reason": "No items in the list" } TASK [fedora.linux_system_roles.firewall : Gather firewall config information] *** task path: /WORKDIR/git-use-cs9-containers677xcdg/.collection/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:120 Friday 14 June 2024 11:46:30 +0000 (0:00:00.022) 0:00:03.562 *********** skipping: [sut] => { "changed": false, "skipped_reason": "No items in the list" } TASK [fedora.linux_system_roles.firewall : Update firewalld_config fact] ******* task path: /WORKDIR/git-use-cs9-containers677xcdg/.collection/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:130 Friday 14 June 2024 11:46:30 +0000 (0:00:00.021) 0:00:03.584 *********** skipping: [sut] => { "changed": false, "false_condition": "firewall | length == 1", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Gather firewall config if no arguments] *** task path: /WORKDIR/git-use-cs9-containers677xcdg/.collection/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:139 Friday 14 June 2024 11:46:30 +0000 (0:00:00.018) 0:00:03.602 *********** ok: [sut] => { "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", "proto-gre", "sip", "netbios-ns", "ftp", "RAS", "h323", "sane", "Q.931", "irc", "amanda", "tftp", "pptp" ], "icmptypes": [ "beyond-scope", "source-route-failed", "network-unknown", "network-unreachable", "host-prohibited", "unknown-option", "precedence-cutoff", "protocol-unreachable", "timestamp-request", "packet-too-big", "network-redirect", "tos-host-unreachable", "port-unreachable", "router-advertisement", "ip-header-bad", "echo-reply", "tos-network-redirect", "reject-route", "source-quench", "unknown-header-type", "host-unreachable", "communication-prohibited", "failed-policy", "router-solicitation", "echo-request", "timestamp-reply", "required-option-missing", "tos-host-redirect", "tos-network-unreachable", "network-prohibited", "host-unknown", "destination-unreachable", "neighbour-solicitation", "no-route", "neighbour-advertisement", "fragmentation-needed", "host-precedence-violation", "redirect", "host-redirect", "parameter-problem", "ttl-zero-during-reassembly", "address-unreachable", "bad-header", "time-exceeded", "ttl-zero-during-transit" ], "services": [ "freeipa-trust", "docker-registry", "condor-collector", "mssql", "amanda-k5-client", "quassel", "tftp-client", "bitcoin-testnet-rpc", "libvirt-tls", "llmnr", "high-availability", "rsyncd", "rtsp", "imaps", "pmwebapi", "xmpp-bosh", "xdmcp", "ms-wbt", "ipsec", "ovirt-vmconsole", "etcd-server", "minidlna", "steam-streaming", "samba", "rpc-bind", "syncthing", "iscsi-target", "klogin", "puppetmaster", "zabbix-server", "mysql", "git", "imap", "kprop", "zabbix-agent", "mqtt", "RH-Satellite-6", "amqp", "ganglia-master", "wsman", "distcc", "privoxy", "upnp-client", "elasticsearch", "snmp", "kadmin", "svdrp", "bitcoin", "ldap", "bacula-client", "postgresql", "bitcoin-testnet", "pop3s", "amanda-client", "bacula", "sip", "libvirt", "ircs", "jenkins", "salt-master", "ldaps", "wsmans", "pmproxy", "redis", "mountd", "ntp", "pop3", "cfengine", "spideroak-lansync", "mongodb", "finger", "smtp-submission", "proxy-dhcp", "vdsm", "ssh", "dns", "tinc", "ceph-mon", "smtp", "ftp", "rsh", "radius", "dhcp", "managesieve", "samba-client", "bitcoin-rpc", "squid", "syslog-tls", "transmission-client", "kibana", "synergy", "isns", "RH-Satellite-6-capsule", "wbem-https", "nut", "wbem-http", "docker-swarm", "snmptrap", "samba-dc", "mosh", "telnet", "pmwebapis", "ctdb", "kpasswd", "nmea-0183", "sane", "https", "kerberos", "pulseaudio", "ptp", "xmpp-server", "matrix", "dhcpv6-client", "ceph", "http", "apcupsd", "dropbox-lansync", "ganglia-client", "plex", "nfs", "tor-socks", "smtps", "xmpp-client", "svn", "dhcpv6", "ipp-client", "murmur", "kshell", "irc", "openvpn", "mqtt-tls", "slp", "sips", "nfs3", "freeipa-ldaps", "tftp", "syncthing-gui", "nrpe", "amqps", "gre", "vnc-server", "ipp", "etcd-client", "lightning-network", "freeipa-replication", "freeipa-ldap", "audit", "ovirt-imageio", "syslog", "pmcd", "ovirt-storageconsole", "bgp", "xmpp-local", "mdns" ], "zones": [ "dmz", "internal", "block", "public", "work", "external", "trusted", "drop", "home" ] }, "default_zone": "public" } } TASK [fedora.linux_system_roles.firewall : Update firewalld_config fact] ******* task path: /WORKDIR/git-use-cs9-containers677xcdg/.collection/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:144 Friday 14 June 2024 11:46:32 +0000 (0:00:01.732) 0:00:05.335 *********** ok: [sut] => { "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", "proto-gre", "sip", "netbios-ns", "ftp", "RAS", "h323", "sane", "Q.931", "irc", "amanda", "tftp", "pptp" ], "icmptypes": [ "beyond-scope", "source-route-failed", "network-unknown", "network-unreachable", "host-prohibited", "unknown-option", "precedence-cutoff", "protocol-unreachable", "timestamp-request", "packet-too-big", "network-redirect", "tos-host-unreachable", "port-unreachable", "router-advertisement", "ip-header-bad", "echo-reply", "tos-network-redirect", "reject-route", "source-quench", "unknown-header-type", "host-unreachable", "communication-prohibited", "failed-policy", "router-solicitation", "echo-request", "timestamp-reply", "required-option-missing", "tos-host-redirect", "tos-network-unreachable", "network-prohibited", "host-unknown", "destination-unreachable", "neighbour-solicitation", "no-route", "neighbour-advertisement", "fragmentation-needed", "host-precedence-violation", "redirect", "host-redirect", "parameter-problem", "ttl-zero-during-reassembly", "address-unreachable", "bad-header", "time-exceeded", "ttl-zero-during-transit" ], "services": [ "freeipa-trust", "docker-registry", "condor-collector", "mssql", "amanda-k5-client", "quassel", "tftp-client", "bitcoin-testnet-rpc", "libvirt-tls", "llmnr", "high-availability", "rsyncd", "rtsp", "imaps", "pmwebapi", "xmpp-bosh", "xdmcp", "ms-wbt", "ipsec", "ovirt-vmconsole", "etcd-server", "minidlna", "steam-streaming", "samba", "rpc-bind", "syncthing", "iscsi-target", "klogin", "puppetmaster", "zabbix-server", "mysql", "git", "imap", "kprop", "zabbix-agent", "mqtt", "RH-Satellite-6", "amqp", "ganglia-master", "wsman", "distcc", "privoxy", "upnp-client", "elasticsearch", "snmp", "kadmin", "svdrp", "bitcoin", "ldap", "bacula-client", "postgresql", "bitcoin-testnet", "pop3s", "amanda-client", "bacula", "sip", "libvirt", "ircs", "jenkins", "salt-master", "ldaps", "wsmans", "pmproxy", "redis", "mountd", "ntp", "pop3", "cfengine", "spideroak-lansync", "mongodb", "finger", "smtp-submission", "proxy-dhcp", "vdsm", "ssh", "dns", "tinc", "ceph-mon", "smtp", "ftp", "rsh", "radius", "dhcp", "managesieve", "samba-client", "bitcoin-rpc", "squid", "syslog-tls", "transmission-client", "kibana", "synergy", "isns", "RH-Satellite-6-capsule", "wbem-https", "nut", "wbem-http", "docker-swarm", "snmptrap", "samba-dc", "mosh", "telnet", "pmwebapis", "ctdb", "kpasswd", "nmea-0183", "sane", "https", "kerberos", "pulseaudio", "ptp", "xmpp-server", "matrix", "dhcpv6-client", "ceph", "http", "apcupsd", "dropbox-lansync", "ganglia-client", "plex", "nfs", "tor-socks", "smtps", "xmpp-client", "svn", "dhcpv6", "ipp-client", "murmur", "kshell", "irc", "openvpn", "mqtt-tls", "slp", "sips", "nfs3", "freeipa-ldaps", "tftp", "syncthing-gui", "nrpe", "amqps", "gre", "vnc-server", "ipp", "etcd-client", "lightning-network", "freeipa-replication", "freeipa-ldap", "audit", "ovirt-imageio", "syslog", "pmcd", "ovirt-storageconsole", "bgp", "xmpp-local", "mdns" ], "zones": [ "dmz", "internal", "block", "public", "work", "external", "trusted", "drop", "home" ] }, "default_zone": "public" } }, "changed": false } TASK [fedora.linux_system_roles.firewall : Get config files, checksums after] *** task path: /WORKDIR/git-use-cs9-containers677xcdg/.collection/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:153 Friday 14 June 2024 11:46:32 +0000 (0:00:00.022) 0:00:05.357 *********** skipping: [sut] => { "changed": false, "false_condition": "__firewall_previous_replaced | bool", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Calculate what has changed] ********* task path: /WORKDIR/git-use-cs9-containers677xcdg/.collection/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:163 Friday 14 June 2024 11:46:32 +0000 (0:00:00.015) 0:00:05.372 *********** skipping: [sut] => { "changed": false, "false_condition": "__firewall_previous_replaced | bool", "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Show diffs] ************************* task path: /WORKDIR/git-use-cs9-containers677xcdg/.collection/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:169 Friday 14 June 2024 11:46:32 +0000 (0:00:00.015) 0:00:05.388 *********** skipping: [sut] => { "false_condition": "__firewall_previous_replaced | bool" } TASK [Get default zone] ******************************************************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:11 Friday 14 June 2024 11:46:32 +0000 (0:00:00.016) 0:00:05.404 *********** ok: [sut] => { "changed": false, "cmd": [ "firewall-cmd", "--get-default-zone" ], "delta": "0:00:00.523152", "end": "2024-06-14 11:46:33.214291", "rc": 0, "start": "2024-06-14 11:46:32.691139" } STDOUT: public TASK [Remove custom zone] ****************************************************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:21 Friday 14 June 2024 11:46:33 +0000 (0:00:00.702) 0:00:06.107 *********** ok: [sut] => { "changed": false, "cmd": [ "firewall-cmd", "--permanent", "--delete-zone=custom" ], "delta": "0:00:00.286956", "end": "2024-06-14 11:46:33.622986", "failed_when_result": false, "rc": 112, "start": "2024-06-14 11:46:33.336030" } STDERR: Error: INVALID_ZONE: custom MSG: non-zero return code TASK [Reset internal zone to defaults] ***************************************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:27 Friday 14 June 2024 11:46:33 +0000 (0:00:00.409) 0:00:06.517 *********** ok: [sut] => { "changed": false, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=internal" ], "delta": "0:00:00.403152", "end": "2024-06-14 11:46:34.151870", "failed_when_result": false, "rc": 22, "start": "2024-06-14 11:46:33.748718" } STDERR: Error: NO_DEFAULTS: internal MSG: non-zero return code TASK [Reset trusted zone to defaults] ****************************************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:33 Friday 14 June 2024 11:46:34 +0000 (0:00:00.528) 0:00:07.046 *********** ok: [sut] => { "changed": false, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=trusted" ], "delta": "0:00:00.301727", "end": "2024-06-14 11:46:34.577838", "failed_when_result": false, "rc": 22, "start": "2024-06-14 11:46:34.276111" } STDERR: Error: NO_DEFAULTS: trusted MSG: non-zero return code TASK [Reset dmz zone to defaults] ********************************************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:39 Friday 14 June 2024 11:46:34 +0000 (0:00:00.426) 0:00:07.472 *********** ok: [sut] => { "changed": false, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=dmz" ], "delta": "0:00:00.309797", "end": "2024-06-14 11:46:35.011523", "failed_when_result": false, "rc": 22, "start": "2024-06-14 11:46:34.701726" } STDERR: Error: NO_DEFAULTS: dmz MSG: non-zero return code TASK [Reset drop zone to defaults] ********************************************* task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:45 Friday 14 June 2024 11:46:35 +0000 (0:00:00.435) 0:00:07.907 *********** ok: [sut] => { "changed": false, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=drop" ], "delta": "0:00:00.302168", "end": "2024-06-14 11:46:35.440805", "failed_when_result": false, "rc": 22, "start": "2024-06-14 11:46:35.138637" } STDERR: Error: NO_DEFAULTS: drop MSG: non-zero return code TASK [Reset public zone to defaults] ******************************************* task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:51 Friday 14 June 2024 11:46:35 +0000 (0:00:00.427) 0:00:08.335 *********** ok: [sut] => { "changed": false, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=public" ], "delta": "0:00:00.301490", "end": "2024-06-14 11:46:35.868752", "failed_when_result": false, "rc": 0, "start": "2024-06-14 11:46:35.567262" } STDOUT: success TASK [Reset default zone to defaults] ****************************************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:57 Friday 14 June 2024 11:46:35 +0000 (0:00:00.429) 0:00:08.764 *********** ok: [sut] => { "changed": false, "cmd": "zone=$(firewall-cmd --get-default-zone)\nfirewall-cmd --permanent --load-zone-defaults=$zone\n", "delta": "0:00:00.594666", "end": "2024-06-14 11:46:36.589411", "failed_when_result": false, "rc": 22, "start": "2024-06-14 11:46:35.994745" } STDERR: Error: NO_DEFAULTS: public MSG: non-zero return code TASK [Create custom zone] ****************************************************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:66 Friday 14 June 2024 11:46:36 +0000 (0:00:00.719) 0:00:09.483 *********** changed: [sut] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--new-zone=custom" ], "delta": "0:00:00.286257", "end": "2024-06-14 11:46:37.003023", "failed_when_result": false, "rc": 0, "start": "2024-06-14 11:46:36.716766" } STDOUT: success TASK [Reload firewalld] ******************************************************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:72 Friday 14 June 2024 11:46:37 +0000 (0:00:00.418) 0:00:09.902 *********** changed: [sut] => { "changed": true, "cmd": [ "firewall-cmd", "--reload" ], "delta": "0:00:00.491232", "end": "2024-06-14 11:46:37.621389", "failed_when_result": false, "rc": 0, "start": "2024-06-14 11:46:37.130157" } STDOUT: success TASK [Permit traffic in default zone for https service] ************************ task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:80 Friday 14 June 2024 11:46:37 +0000 (0:00:00.615) 0:00:10.517 *********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Permit traffic in default zone for https service, again] ***************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:88 Friday 14 June 2024 11:46:38 +0000 (0:00:00.461) 0:00:10.978 *********** ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Permit traffic in default zone on port 8081/tcp] ************************* task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:96 Friday 14 June 2024 11:46:38 +0000 (0:00:00.375) 0:00:11.354 *********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Permit traffic in default zone on port 8081/tcp, again] ****************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:104 Friday 14 June 2024 11:46:38 +0000 (0:00:00.368) 0:00:11.723 *********** ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Allow port 161-162/udp in permanent default zone] ************************ task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:112 Friday 14 June 2024 11:46:39 +0000 (0:00:00.363) 0:00:12.087 *********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Allow port 161-162/udp in permanent default zone, again] ***************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:120 Friday 14 June 2024 11:46:39 +0000 (0:00:00.365) 0:00:12.453 *********** ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Do not permit traffic in default zone on port 8081/tcp] ****************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:128 Friday 14 June 2024 11:46:39 +0000 (0:00:00.397) 0:00:12.850 *********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Do not permit traffic in default zone on port 8081/tcp, again] *********** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:136 Friday 14 June 2024 11:46:40 +0000 (0:00:00.370) 0:00:13.220 *********** ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Allow service http in permanent dmz zone] ******************************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:144 Friday 14 June 2024 11:46:40 +0000 (0:00:00.379) 0:00:13.599 *********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Allow service http in permanent dmz zone, again] ************************* task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:153 Friday 14 June 2024 11:46:41 +0000 (0:00:00.369) 0:00:13.969 *********** ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Allow service ftp with limitation using rich rule in permanent default zone] *** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:162 Friday 14 June 2024 11:46:41 +0000 (0:00:00.376) 0:00:14.345 *********** changed: [sut] => { "__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: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:170 Friday 14 June 2024 11:46:41 +0000 (0:00:00.367) 0:00:14.713 *********** ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Allow source 192.0.2.0/24 in internal zone] ****************************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:178 Friday 14 June 2024 11:46:42 +0000 (0:00:00.366) 0:00:15.079 *********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Allow source 192.0.2.0/24 in internal zone, again] *********************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:187 Friday 14 June 2024 11:46:42 +0000 (0:00:00.364) 0:00:15.444 *********** ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Allow nm interface eth0 in permanent trusted zone] *********************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:196 Friday 14 June 2024 11:46:42 +0000 (0:00:00.372) 0:00:15.816 *********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Allow nm interface eth0 in permanent trusted zone, again] **************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:205 Friday 14 June 2024 11:46:43 +0000 (0:00:00.419) 0:00:16.236 *********** ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Disable nm interface eth0 in permanent trusted zone] ********************* task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:214 Friday 14 June 2024 11:46:43 +0000 (0:00:00.377) 0:00:16.613 *********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Disable nm interface eth0 in permanent trusted zone, again] ************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:223 Friday 14 June 2024 11:46:44 +0000 (0:00:00.402) 0:00:17.015 *********** ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Allow interface eth2 in permanent trusted zone] ************************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:232 Friday 14 June 2024 11:46:44 +0000 (0:00:00.387) 0:00:17.402 *********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Allow interface eth2 in permanent trusted zone, again] ******************* task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:241 Friday 14 June 2024 11:46:44 +0000 (0:00:00.388) 0:00:17.791 *********** ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Allow masquerading in permament dmz zone] ******************************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:250 Friday 14 June 2024 11:46:45 +0000 (0:00:00.373) 0:00:18.165 *********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Allow masquerading in permament dmz zone, again] ************************* task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:258 Friday 14 June 2024 11:46:45 +0000 (0:00:00.369) 0:00:18.534 *********** ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Ensure permanent custom zone exists (no change)] ************************* task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:266 Friday 14 June 2024 11:46:46 +0000 (0:00:00.374) 0:00:18.908 *********** ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Ensure ICMP block inversion in permanent drop zone] ********************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:274 Friday 14 June 2024 11:46:46 +0000 (0:00:00.365) 0:00:19.274 *********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Ensure ICMP block inversion in permanent drop zone, again] *************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:282 Friday 14 June 2024 11:46:46 +0000 (0:00:00.366) 0:00:19.640 *********** ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Block ICMP echo-request in permanent drop zone] ************************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:290 Friday 14 June 2024 11:46:47 +0000 (0:00:00.363) 0:00:20.004 *********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Block ICMP echo-request in permanent drop zone, again] ******************* task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:299 Friday 14 June 2024 11:46:47 +0000 (0:00:00.377) 0:00:20.382 *********** ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Ensure default target in permanent internal zone (no change)] ************ task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:308 Friday 14 June 2024 11:46:47 +0000 (0:00:00.366) 0:00:20.748 *********** ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Ensure target ACCEPT in permanent internal zone] ************************* task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:317 Friday 14 June 2024 11:46:48 +0000 (0:00:00.366) 0:00:21.115 *********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Ensure target ACCEPT in permanent internal zone, again] ****************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:326 Friday 14 June 2024 11:46:48 +0000 (0:00:00.751) 0:00:21.866 *********** ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Ensure default target in permanent internal zone] ************************ task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:335 Friday 14 June 2024 11:46:49 +0000 (0:00:00.373) 0:00:22.240 *********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Ensure default target in permanent internal zone, again] ***************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:344 Friday 14 June 2024 11:46:49 +0000 (0:00:00.615) 0:00:22.856 *********** ok: [sut] => { "__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: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:353 Friday 14 June 2024 11:46:50 +0000 (0:00:00.368) 0:00:23.225 *********** changed: [sut] => { "__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: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:363 Friday 14 June 2024 11:46:50 +0000 (0:00:00.390) 0:00:23.615 *********** ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Firewalld custom zone] *************************************************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:373 Friday 14 June 2024 11:46:51 +0000 (0:00:00.383) 0:00:23.999 *********** changed: [sut] => { "__firewall_changed": true, "changed": true } TASK [Assert firewalld custom zone] ******************************************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:381 Friday 14 June 2024 11:46:51 +0000 (0:00:00.606) 0:00:24.606 *********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Add masquerade to custom zone] ******************************************* task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:386 Friday 14 June 2024 11:46:51 +0000 (0:00:00.014) 0:00:24.620 *********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Add masquerade to custom zone, again] ************************************ task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:396 Friday 14 June 2024 11:46:52 +0000 (0:00:00.375) 0:00:24.996 *********** ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Set the default zone to something other than dmz] ************************ task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:406 Friday 14 June 2024 11:46:52 +0000 (0:00:00.379) 0:00:25.376 *********** ok: [sut] => { "changed": false, "cmd": [ "firewall-cmd", "--set-default-zone", "public" ], "delta": "0:00:00.285815", "end": "2024-06-14 11:46:52.891219", "rc": 0, "start": "2024-06-14 11:46:52.605404" } STDOUT: success STDERR: Warning: ZONE_ALREADY_SET: public TASK [Set default zone] ******************************************************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:410 Friday 14 June 2024 11:46:52 +0000 (0:00:00.416) 0:00:25.792 *********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Set default zone, again] ************************************************* task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:417 Friday 14 June 2024 11:46:53 +0000 (0:00:00.418) 0:00:26.211 *********** ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Add multiple custom services] ******************************************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:424 Friday 14 June 2024 11:46:53 +0000 (0:00:00.373) 0:00:26.584 *********** ok: [sut] => { "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: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:434 Friday 14 June 2024 11:46:53 +0000 (0:00:00.250) 0:00:26.835 *********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Add custom service that already exists] ********************************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:442 Friday 14 June 2024 11:46:54 +0000 (0:00:00.662) 0:00:27.498 *********** ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Add description to custom service] *************************************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:450 Friday 14 June 2024 11:46:55 +0000 (0:00:00.386) 0:00:27.884 *********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Add short description to custom service] ********************************* task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:459 Friday 14 June 2024 11:46:55 +0000 (0:00:00.628) 0:00:28.513 *********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Add source_ports to custom service] ************************************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:468 Friday 14 June 2024 11:46:56 +0000 (0:00:00.632) 0:00:29.146 *********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Add source_ports to custom service again] ******************************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:477 Friday 14 June 2024 11:46:56 +0000 (0:00:00.641) 0:00:29.787 *********** ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Add invalid protocol to custom service] ********************************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:486 Friday 14 June 2024 11:46:57 +0000 (0:00:00.393) 0:00:30.180 *********** ok: [sut] => { "changed": false, "failed_when_result": false } MSG: INVALID_PROTOCOL: nonexistentprotocol TASK [Add valid protocol to custom service] ************************************ task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:495 Friday 14 June 2024 11:46:57 +0000 (0:00:00.504) 0:00:30.685 *********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Remove valid protocol from customservice] ******************************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:504 Friday 14 June 2024 11:46:58 +0000 (0:00:00.639) 0:00:31.324 *********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Remove ports from custom service without deleting service] *************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:513 Friday 14 June 2024 11:46:59 +0000 (0:00:00.629) 0:00:31.954 *********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Add destination addresses] *********************************************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:522 Friday 14 June 2024 11:46:59 +0000 (0:00:00.636) 0:00:32.590 *********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Delete custom service] *************************************************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:533 Friday 14 June 2024 11:47:00 +0000 (0:00:00.654) 0:00:33.244 *********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Delete custom service again] ********************************************* task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:541 Friday 14 June 2024 11:47:01 +0000 (0:00:00.636) 0:00:33.881 *********** ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Add custom service with all the elements at once] ************************ task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:549 Friday 14 June 2024 11:47:01 +0000 (0:00:00.377) 0:00:34.258 *********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Add helper module that already is on customservice] ********************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:566 Friday 14 June 2024 11:47:02 +0000 (0:00:00.666) 0:00:34.924 *********** ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Forward port 40 to 0.0.0.0:8080 (string)] ******************************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:575 Friday 14 June 2024 11:47:02 +0000 (0:00:00.387) 0:00:35.312 *********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Forward same port again (string)] **************************************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:582 Friday 14 June 2024 11:47:02 +0000 (0:00:00.379) 0:00:35.691 *********** ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Disable forward port (string)] ******************************************* task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:589 Friday 14 June 2024 11:47:03 +0000 (0:00:00.373) 0:00:36.065 *********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Forward port (dict form)] ************************************************ task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:596 Friday 14 June 2024 11:47:03 +0000 (0:00:00.386) 0:00:36.452 *********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Forward port again (dict form)] ****************************************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:607 Friday 14 June 2024 11:47:03 +0000 (0:00:00.381) 0:00:36.833 *********** ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Disable forward port (dict form)] **************************************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:618 Friday 14 June 2024 11:47:04 +0000 (0:00:00.379) 0:00:37.212 *********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Remove custom zone] ****************************************************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:637 Friday 14 June 2024 11:47:04 +0000 (0:00:00.376) 0:00:37.589 *********** ok: [sut] => { "changed": false, "cmd": [ "firewall-cmd", "--permanent", "--delete-zone=custom" ], "delta": "0:00:00.314495", "end": "2024-06-14 11:47:05.133253", "failed_when_result": false, "rc": 0, "start": "2024-06-14 11:47:04.818758" } STDOUT: success TASK [Remove customzone zone] ************************************************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:643 Friday 14 June 2024 11:47:05 +0000 (0:00:00.439) 0:00:38.029 *********** ok: [sut] => { "changed": false, "cmd": [ "firewall-cmd", "--permanent", "--delete-zone=customzone" ], "delta": "0:00:00.302499", "end": "2024-06-14 11:47:05.560290", "failed_when_result": false, "rc": 0, "start": "2024-06-14 11:47:05.257791" } STDOUT: success TASK [Reset internal zone to defaults] ***************************************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:649 Friday 14 June 2024 11:47:05 +0000 (0:00:00.427) 0:00:38.456 *********** ok: [sut] => { "changed": false, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=internal" ], "delta": "0:00:00.302376", "end": "2024-06-14 11:47:05.987876", "failed_when_result": false, "rc": 0, "start": "2024-06-14 11:47:05.685500" } STDOUT: success TASK [Reset trusted zone to defaults] ****************************************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:655 Friday 14 June 2024 11:47:06 +0000 (0:00:00.427) 0:00:38.883 *********** ok: [sut] => { "changed": false, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=trusted" ], "delta": "0:00:00.300053", "end": "2024-06-14 11:47:06.415315", "failed_when_result": false, "rc": 0, "start": "2024-06-14 11:47:06.115262" } STDOUT: success TASK [Reset dmz zone to defaults] ********************************************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:661 Friday 14 June 2024 11:47:06 +0000 (0:00:00.427) 0:00:39.310 *********** ok: [sut] => { "changed": false, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=dmz" ], "delta": "0:00:00.313326", "end": "2024-06-14 11:47:06.856282", "failed_when_result": false, "rc": 0, "start": "2024-06-14 11:47:06.542956" } STDOUT: success TASK [Reset drop zone to defaults] ********************************************* task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:667 Friday 14 June 2024 11:47:06 +0000 (0:00:00.440) 0:00:39.751 *********** ok: [sut] => { "changed": false, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=drop" ], "delta": "0:00:00.300651", "end": "2024-06-14 11:47:07.281440", "failed_when_result": false, "rc": 0, "start": "2024-06-14 11:47:06.980789" } STDOUT: success TASK [Reset public zone to defaults] ******************************************* task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:673 Friday 14 June 2024 11:47:07 +0000 (0:00:00.425) 0:00:40.177 *********** ok: [sut] => { "changed": false, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=public" ], "delta": "0:00:00.300859", "end": "2024-06-14 11:47:07.706623", "failed_when_result": false, "rc": 0, "start": "2024-06-14 11:47:07.405764" } STDOUT: success TASK [Reset default zone to defaults] ****************************************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:679 Friday 14 June 2024 11:47:07 +0000 (0:00:00.426) 0:00:40.603 *********** ok: [sut] => { "changed": false, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=public" ], "delta": "0:00:00.301318", "end": "2024-06-14 11:47:08.134633", "failed_when_result": false, "rc": 22, "start": "2024-06-14 11:47:07.833315" } STDERR: Error: NO_DEFAULTS: public MSG: non-zero return code TASK [Reset default zone] ****************************************************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:685 Friday 14 June 2024 11:47:08 +0000 (0:00:00.426) 0:00:41.030 *********** ok: [sut] => { "changed": false, "cmd": [ "firewall-cmd", "--set-default-zone=public" ], "delta": "0:00:00.345967", "end": "2024-06-14 11:47:08.613162", "rc": 0, "start": "2024-06-14 11:47:08.267195" } STDOUT: success TASK [Reload firewalld] ******************************************************** task path: /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:691 Friday 14 June 2024 11:47:08 +0000 (0:00:00.476) 0:00:41.506 *********** changed: [sut] => { "changed": true, "cmd": [ "firewall-cmd", "--reload" ], "delta": "0:00:00.507429", "end": "2024-06-14 11:47:09.250364", "failed_when_result": false, "rc": 0, "start": "2024-06-14 11:47:08.742935" } STDOUT: success PLAY RECAP ********************************************************************* sut : ok=93 changed=37 unreachable=0 failed=0 skipped=11 rescued=0 ignored=0 Friday 14 June 2024 11:47:09 +0000 (0:00:00.643) 0:00:42.150 *********** =============================================================================== fedora.linux_system_roles.firewall : Gather firewall config if no arguments --- 1.73s /WORKDIR/git-use-cs9-containers677xcdg/.collection/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:139 fedora.linux_system_roles.firewall : Enable and start firewalld service --- 1.29s /WORKDIR/git-use-cs9-containers677xcdg/.collection/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:28 Gathering Facts --------------------------------------------------------- 0.90s /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:2 -------------- Ensure target ACCEPT in permanent internal zone ------------------------- 0.75s /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:317 ------------ Reset default zone to defaults ------------------------------------------ 0.72s /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:57 ------------- Get default zone -------------------------------------------------------- 0.70s /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:11 ------------- Add custom service with all the elements at once ------------------------ 0.67s /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:549 ------------ Add custom service without details -------------------------------------- 0.66s /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:434 ------------ Add destination addresses ----------------------------------------------- 0.65s /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:522 ------------ Reload firewalld -------------------------------------------------------- 0.64s /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:691 ------------ Add source_ports to custom service -------------------------------------- 0.64s /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:468 ------------ Add valid protocol to custom service ------------------------------------ 0.64s /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:495 ------------ Delete custom service --------------------------------------------------- 0.64s /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:533 ------------ Remove ports from custom service without deleting service --------------- 0.64s /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:513 ------------ Add short description to custom service --------------------------------- 0.63s /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:459 ------------ Remove valid protocol from customservice -------------------------------- 0.63s /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:504 ------------ Add description to custom service --------------------------------------- 0.63s /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:450 ------------ Ensure default target in permanent internal zone ------------------------ 0.62s /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:335 ------------ Reload firewalld -------------------------------------------------------- 0.62s /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:72 ------------- Firewalld custom zone --------------------------------------------------- 0.61s /WORKDIR/git-use-cs9-containers677xcdg/tests/tests_ansible.yml:373 ------------ ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- [DEPRECATION WARNING]: ANSIBLE_COLLECTIONS_PATHS option, does not fit var naming standard, use the singular form ANSIBLE_COLLECTIONS_PATH instead. This feature will be removed from ansible-core in version 2.19. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ---^---^---^---^---^---