# STDOUT: ---v---v---v---v---v--- ansible-playbook 2.9.27 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.9/lib/python3.9/site-packages/ansible executable location = /opt/ansible-2.9/bin/ansible-playbook python version = 3.9.18 (main, Sep 7 2023, 00:00:00) [GCC 11.4.1 20230605 (Red Hat 11.4.1-2)] Using /etc/ansible/ansible.cfg as config file 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 /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:2 Saturday 25 May 2024 06:19:34 +0000 (0:00:00.014) 0:00:00.014 ********** ok: [sut] META: ran handlers TASK [linux-system-roles.firewall : Setup firewalld] *************************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/roles/linux-system-roles.firewall/tasks/main.yml:2 Saturday 25 May 2024 06:19:35 +0000 (0:00:00.765) 0:00:00.779 ********** included: /WORKDIR/git-weekly-cisshnhds7/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml for sut TASK [linux-system-roles.firewall : Ensure ansible_facts used by role] ********* task path: /WORKDIR/git-weekly-cisshnhds7/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Saturday 25 May 2024 06:19:35 +0000 (0:00:00.012) 0:00:00.791 ********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Check if system is ostree] ***************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:11 Saturday 25 May 2024 06:19:35 +0000 (0:00:00.019) 0:00:00.810 ********** ok: [sut] => { "changed": false, "stat": { "exists": false } } TASK [linux-system-roles.firewall : Set flag to indicate system is ostree] ***** task path: /WORKDIR/git-weekly-cisshnhds7/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:16 Saturday 25 May 2024 06:19:35 +0000 (0:00:00.200) 0:00:01.011 ********** ok: [sut] => { "ansible_facts": { "__firewall_is_ostree": false }, "changed": false } TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /WORKDIR/git-weekly-cisshnhds7/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:20 Saturday 25 May 2024 06:19:36 +0000 (0:00:00.030) 0:00:01.042 ********** ok: [sut] => { "changed": false, "rc": 0, "results": [ "firewalld-0.6.3-13.el7_9.noarch providing firewalld is already installed" ] } lsrpackages: firewalld TASK [linux-system-roles.firewall : Collect service facts] ********************* task path: /WORKDIR/git-weekly-cisshnhds7/tests/roles/linux-system-roles.firewall/tasks/main.yml:5 Saturday 25 May 2024 06:19:36 +0000 (0:00:00.673) 0:00:01.715 ********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Attempt to stop and disable conflicting services] *** task path: /WORKDIR/git-weekly-cisshnhds7/tests/roles/linux-system-roles.firewall/tasks/main.yml:9 Saturday 25 May 2024 06:19:36 +0000 (0:00:00.019) 0:00:01.734 ********** skipping: [sut] => (item=nftables) => { "ansible_loop_var": "item", "changed": false, "item": "nftables", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=iptables) => { "ansible_loop_var": "item", "changed": false, "item": "iptables", "skip_reason": "Conditional result was False" } skipping: [sut] => (item=ufw) => { "ansible_loop_var": "item", "changed": false, "item": "ufw", "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Unmask firewalld service] ****************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/roles/linux-system-roles.firewall/tasks/main.yml:23 Saturday 25 May 2024 06:19:36 +0000 (0:00:00.023) 0:00:01.758 ********** ok: [sut] => { "changed": false, "name": "firewalld", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "system.slice dbus.service basic.target polkit.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target network-pre.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 ebtables.service ipset.service shutdown.target ip6tables.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 [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /WORKDIR/git-weekly-cisshnhds7/tests/roles/linux-system-roles.firewall/tasks/main.yml:29 Saturday 25 May 2024 06:19:37 +0000 (0:00:00.376) 0:00:02.134 ********** changed: [sut] => { "changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "system.slice dbus.service basic.target polkit.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target network-pre.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": "shutdown.target ipset.service ebtables.service iptables.service ip6tables.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 [linux-system-roles.firewall : Check if previous replaced is defined] ***** task path: /WORKDIR/git-weekly-cisshnhds7/tests/roles/linux-system-roles.firewall/tasks/main.yml:35 Saturday 25 May 2024 06:19:37 +0000 (0:00:00.883) 0:00:03.018 ********** ok: [sut] => { "ansible_facts": { "__firewall_previous_replaced": false, "__firewall_python_cmd": "/usr/bin/python", "__firewall_report_changed": true }, "changed": false } TASK [linux-system-roles.firewall : Get config files, checksums before and remove] *** task path: /WORKDIR/git-weekly-cisshnhds7/tests/roles/linux-system-roles.firewall/tasks/main.yml:48 Saturday 25 May 2024 06:19:38 +0000 (0:00:00.024) 0:00:03.043 ********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Tell firewall module it is able to report changed] *** task path: /WORKDIR/git-weekly-cisshnhds7/tests/roles/linux-system-roles.firewall/tasks/main.yml:60 Saturday 25 May 2024 06:19:38 +0000 (0:00:00.026) 0:00:03.070 ********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /WORKDIR/git-weekly-cisshnhds7/tests/roles/linux-system-roles.firewall/tasks/main.yml:77 Saturday 25 May 2024 06:19:38 +0000 (0:00:00.025) 0:00:03.095 ********** TASK [linux-system-roles.firewall : Gather firewall config information] ******** task path: /WORKDIR/git-weekly-cisshnhds7/tests/roles/linux-system-roles.firewall/tasks/main.yml:129 Saturday 25 May 2024 06:19:38 +0000 (0:00:00.028) 0:00:03.123 ********** TASK [linux-system-roles.firewall : Update firewalld_config fact] ************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/roles/linux-system-roles.firewall/tasks/main.yml:140 Saturday 25 May 2024 06:19:38 +0000 (0:00:00.020) 0:00:03.143 ********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Gather firewall config if no arguments] **** task path: /WORKDIR/git-weekly-cisshnhds7/tests/roles/linux-system-roles.firewall/tasks/main.yml:149 Saturday 25 May 2024 06:19:38 +0000 (0:00:00.033) 0:00:03.177 ********** 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": [ "h323", "pptp", "ftp", "RAS", "snmp", "sane", "proto-gre", "irc", "Q.931", "amanda", "netbios-ns", "tftp", "sip" ], "icmptypes": [ "failed-policy", "tos-network-redirect", "port-unreachable", "network-redirect", "address-unreachable", "parameter-problem", "host-precedence-violation", "echo-request", "network-unreachable", "network-unknown", "communication-prohibited", "protocol-unreachable", "redirect", "host-unknown", "unknown-header-type", "unknown-option", "required-option-missing", "source-quench", "reject-route", "host-prohibited", "fragmentation-needed", "precedence-cutoff", "router-advertisement", "timestamp-reply", "tos-host-unreachable", "router-solicitation", "time-exceeded", "bad-header", "ttl-zero-during-transit", "neighbour-solicitation", "beyond-scope", "tos-host-redirect", "packet-too-big", "tos-network-unreachable", "host-redirect", "echo-reply", "timestamp-request", "neighbour-advertisement", "no-route", "destination-unreachable", "ttl-zero-during-reassembly", "network-prohibited", "ip-header-bad", "source-route-failed", "host-unreachable" ], "services": [ "bitcoin-rpc", "nut", "RH-Satellite-6-capsule", "pulseaudio", "nfs", "mdns", "postgresql", "ceph", "smtp-submission", "ldaps", "smtps", "nrpe", "mysql", "etcd-server", "finger", "lightning-network", "rtsp", "minidlna", "libvirt", "xmpp-client", "docker-registry", "pop3s", "syncthing-gui", "salt-master", "ftp", "snmptrap", "mqtt-tls", "dns", "wsmans", "puppetmaster", "tor-socks", "distcc", "xmpp-server", "telnet", "synergy", "freeipa-trust", "syncthing", "elasticsearch", "ganglia-master", "bitcoin-testnet", "llmnr", "high-availability", "git", "kerberos", "amanda-client", "ldap", "snmp", "tftp-client", "ovirt-storageconsole", "xdmcp", "plex", "rsh", "libvirt-tls", "audit", "bacula-client", "freeipa-replication", "sane", "radius", "syslog", "ntp", "ganglia-client", "pmwebapis", "zabbix-server", "pmwebapi", "bitcoin", "dropbox-lansync", "ptp", "ipp", "jenkins", "ssh", "samba-client", "rpc-bind", "ovirt-imageio", "iscsi-target", "spideroak-lansync", "wbem-http", "sips", "samba", "ceph-mon", "kpasswd", "privoxy", "ms-wbt", "amqp", "irc", "managesieve", "slp", "pop3", "wsman", "kibana", "ipsec", "pmcd", "etcd-client", "bacula", "zabbix-agent", "imap", "murmur", "svn", "pmproxy", "http", "quassel", "amqps", "condor-collector", "mongodb", "amanda-k5-client", "imaps", "freeipa-ldaps", "vnc-server", "ctdb", "nfs3", "isns", "gre", "ircs", "bitcoin-testnet-rpc", "openvpn", "upnp-client", "kshell", "https", "ipp-client", "kprop", "mqtt", "wbem-https", "kadmin", "dhcpv6", "RH-Satellite-6", "proxy-dhcp", "syslog-tls", "ovirt-vmconsole", "matrix", "freeipa-ldap", "smtp", "steam-streaming", "nmea-0183", "svdrp", "mountd", "docker-swarm", "transmission-client", "samba-dc", "dhcpv6-client", "tftp", "tinc", "dhcp", "sip", "klogin", "apcupsd", "squid", "redis", "mosh", "bgp", "rsyncd", "vdsm", "xmpp-local", "xmpp-bosh", "cfengine", "mssql" ], "zones": [ "home", "work", "public", "trusted", "internal", "block", "external", "dmz", "drop" ] }, "default_zone": "public" } } TASK [linux-system-roles.firewall : Update firewalld_config fact] ************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/roles/linux-system-roles.firewall/tasks/main.yml:154 Saturday 25 May 2024 06:19:39 +0000 (0:00:00.968) 0:00:04.145 ********** 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": [ "h323", "pptp", "ftp", "RAS", "snmp", "sane", "proto-gre", "irc", "Q.931", "amanda", "netbios-ns", "tftp", "sip" ], "icmptypes": [ "failed-policy", "tos-network-redirect", "port-unreachable", "network-redirect", "address-unreachable", "parameter-problem", "host-precedence-violation", "echo-request", "network-unreachable", "network-unknown", "communication-prohibited", "protocol-unreachable", "redirect", "host-unknown", "unknown-header-type", "unknown-option", "required-option-missing", "source-quench", "reject-route", "host-prohibited", "fragmentation-needed", "precedence-cutoff", "router-advertisement", "timestamp-reply", "tos-host-unreachable", "router-solicitation", "time-exceeded", "bad-header", "ttl-zero-during-transit", "neighbour-solicitation", "beyond-scope", "tos-host-redirect", "packet-too-big", "tos-network-unreachable", "host-redirect", "echo-reply", "timestamp-request", "neighbour-advertisement", "no-route", "destination-unreachable", "ttl-zero-during-reassembly", "network-prohibited", "ip-header-bad", "source-route-failed", "host-unreachable" ], "services": [ "bitcoin-rpc", "nut", "RH-Satellite-6-capsule", "pulseaudio", "nfs", "mdns", "postgresql", "ceph", "smtp-submission", "ldaps", "smtps", "nrpe", "mysql", "etcd-server", "finger", "lightning-network", "rtsp", "minidlna", "libvirt", "xmpp-client", "docker-registry", "pop3s", "syncthing-gui", "salt-master", "ftp", "snmptrap", "mqtt-tls", "dns", "wsmans", "puppetmaster", "tor-socks", "distcc", "xmpp-server", "telnet", "synergy", "freeipa-trust", "syncthing", "elasticsearch", "ganglia-master", "bitcoin-testnet", "llmnr", "high-availability", "git", "kerberos", "amanda-client", "ldap", "snmp", "tftp-client", "ovirt-storageconsole", "xdmcp", "plex", "rsh", "libvirt-tls", "audit", "bacula-client", "freeipa-replication", "sane", "radius", "syslog", "ntp", "ganglia-client", "pmwebapis", "zabbix-server", "pmwebapi", "bitcoin", "dropbox-lansync", "ptp", "ipp", "jenkins", "ssh", "samba-client", "rpc-bind", "ovirt-imageio", "iscsi-target", "spideroak-lansync", "wbem-http", "sips", "samba", "ceph-mon", "kpasswd", "privoxy", "ms-wbt", "amqp", "irc", "managesieve", "slp", "pop3", "wsman", "kibana", "ipsec", "pmcd", "etcd-client", "bacula", "zabbix-agent", "imap", "murmur", "svn", "pmproxy", "http", "quassel", "amqps", "condor-collector", "mongodb", "amanda-k5-client", "imaps", "freeipa-ldaps", "vnc-server", "ctdb", "nfs3", "isns", "gre", "ircs", "bitcoin-testnet-rpc", "openvpn", "upnp-client", "kshell", "https", "ipp-client", "kprop", "mqtt", "wbem-https", "kadmin", "dhcpv6", "RH-Satellite-6", "proxy-dhcp", "syslog-tls", "ovirt-vmconsole", "matrix", "freeipa-ldap", "smtp", "steam-streaming", "nmea-0183", "svdrp", "mountd", "docker-swarm", "transmission-client", "samba-dc", "dhcpv6-client", "tftp", "tinc", "dhcp", "sip", "klogin", "apcupsd", "squid", "redis", "mosh", "bgp", "rsyncd", "vdsm", "xmpp-local", "xmpp-bosh", "cfengine", "mssql" ], "zones": [ "home", "work", "public", "trusted", "internal", "block", "external", "dmz", "drop" ] }, "default_zone": "public" } }, "changed": false } TASK [linux-system-roles.firewall : Get config files, checksums after] ********* task path: /WORKDIR/git-weekly-cisshnhds7/tests/roles/linux-system-roles.firewall/tasks/main.yml:163 Saturday 25 May 2024 06:19:39 +0000 (0:00:00.022) 0:00:04.168 ********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Calculate what has changed] **************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/roles/linux-system-roles.firewall/tasks/main.yml:173 Saturday 25 May 2024 06:19:39 +0000 (0:00:00.017) 0:00:04.185 ********** skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Show diffs] ******************************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/roles/linux-system-roles.firewall/tasks/main.yml:182 Saturday 25 May 2024 06:19:39 +0000 (0:00:00.017) 0:00:04.203 ********** skipping: [sut] => {} TASK [Get default zone] ******************************************************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:11 Saturday 25 May 2024 06:19:39 +0000 (0:00:00.019) 0:00:04.222 ********** ok: [sut] => { "changed": false, "cmd": [ "firewall-cmd", "--get-default-zone" ], "delta": "0:00:00.308430", "end": "2024-05-25 06:19:39.689002", "rc": 0, "start": "2024-05-25 06:19:39.380572" } STDOUT: public TASK [Remove custom zone] ****************************************************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:21 Saturday 25 May 2024 06:19:39 +0000 (0:00:00.500) 0:00:04.722 ********** ok: [sut] => { "changed": false, "cmd": [ "firewall-cmd", "--permanent", "--delete-zone=custom" ], "delta": "0:00:00.403487", "end": "2024-05-25 06:19:40.212803", "failed_when_result": false, "rc": 112, "start": "2024-05-25 06:19:39.809316" } STDERR: Error: INVALID_ZONE: custom MSG: non-zero return code TASK [Reset internal zone to defaults] ***************************************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:27 Saturday 25 May 2024 06:19:40 +0000 (0:00:00.534) 0:00:05.257 ********** ok: [sut] => { "changed": false, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=internal" ], "delta": "0:00:00.308486", "end": "2024-05-25 06:19:40.653397", "failed_when_result": false, "rc": 22, "start": "2024-05-25 06:19:40.344911" } STDERR: Error: NO_DEFAULTS: internal MSG: non-zero return code TASK [Reset trusted zone to defaults] ****************************************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:33 Saturday 25 May 2024 06:19:40 +0000 (0:00:00.440) 0:00:05.697 ********** ok: [sut] => { "changed": false, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=trusted" ], "delta": "0:00:00.308168", "end": "2024-05-25 06:19:41.093072", "failed_when_result": false, "rc": 22, "start": "2024-05-25 06:19:40.784904" } STDERR: Error: NO_DEFAULTS: trusted MSG: non-zero return code TASK [Reset dmz zone to defaults] ********************************************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:39 Saturday 25 May 2024 06:19:41 +0000 (0:00:00.439) 0:00:06.136 ********** ok: [sut] => { "changed": false, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=dmz" ], "delta": "0:00:00.321995", "end": "2024-05-25 06:19:41.549105", "failed_when_result": false, "rc": 22, "start": "2024-05-25 06:19:41.227110" } STDERR: Error: NO_DEFAULTS: dmz MSG: non-zero return code TASK [Reset drop zone to defaults] ********************************************* task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:45 Saturday 25 May 2024 06:19:41 +0000 (0:00:00.455) 0:00:06.592 ********** ok: [sut] => { "changed": false, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=drop" ], "delta": "0:00:00.313064", "end": "2024-05-25 06:19:41.992315", "failed_when_result": false, "rc": 22, "start": "2024-05-25 06:19:41.679251" } STDERR: Error: NO_DEFAULTS: drop MSG: non-zero return code TASK [Reset public zone to defaults] ******************************************* task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:51 Saturday 25 May 2024 06:19:42 +0000 (0:00:00.443) 0:00:07.036 ********** ok: [sut] => { "changed": false, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=public" ], "delta": "0:00:00.308690", "end": "2024-05-25 06:19:42.434525", "failed_when_result": false, "rc": 0, "start": "2024-05-25 06:19:42.125835" } STDOUT: success TASK [Reset default zone to defaults] ****************************************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:57 Saturday 25 May 2024 06:19:42 +0000 (0:00:00.443) 0:00:07.479 ********** ok: [sut] => { "changed": false, "cmd": "zone=$(firewall-cmd --get-default-zone)\nfirewall-cmd --permanent --load-zone-defaults=$zone\n", "delta": "0:00:00.609787", "end": "2024-05-25 06:19:43.176996", "failed_when_result": false, "rc": 22, "start": "2024-05-25 06:19:42.567209" } STDERR: Error: NO_DEFAULTS: public MSG: non-zero return code TASK [Create custom zone] ****************************************************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:66 Saturday 25 May 2024 06:19:43 +0000 (0:00:00.740) 0:00:08.220 ********** changed: [sut] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--new-zone=custom" ], "delta": "0:00:00.297766", "end": "2024-05-25 06:19:43.605655", "failed_when_result": false, "rc": 0, "start": "2024-05-25 06:19:43.307889" } STDOUT: success TASK [Reload firewalld] ******************************************************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:72 Saturday 25 May 2024 06:19:43 +0000 (0:00:00.436) 0:00:08.656 ********** changed: [sut] => { "changed": true, "cmd": [ "firewall-cmd", "--reload" ], "delta": "0:00:00.506899", "end": "2024-05-25 06:19:44.252341", "failed_when_result": false, "rc": 0, "start": "2024-05-25 06:19:43.745442" } STDOUT: success TASK [Permit traffic in default zone for https service] ************************ task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:80 Saturday 25 May 2024 06:19:44 +0000 (0:00:00.640) 0:00:09.297 ********** 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-weekly-cisshnhds7/tests/tests_ansible.yml:88 Saturday 25 May 2024 06:19:44 +0000 (0:00:00.465) 0:00:09.763 ********** 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-weekly-cisshnhds7/tests/tests_ansible.yml:96 Saturday 25 May 2024 06:19:45 +0000 (0:00:00.385) 0:00:10.148 ********** 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-weekly-cisshnhds7/tests/tests_ansible.yml:104 Saturday 25 May 2024 06:19:45 +0000 (0:00:00.377) 0:00:10.526 ********** 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-weekly-cisshnhds7/tests/tests_ansible.yml:112 Saturday 25 May 2024 06:19:45 +0000 (0:00:00.375) 0:00:10.901 ********** 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-weekly-cisshnhds7/tests/tests_ansible.yml:120 Saturday 25 May 2024 06:19:46 +0000 (0:00:00.378) 0:00:11.280 ********** 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-weekly-cisshnhds7/tests/tests_ansible.yml:128 Saturday 25 May 2024 06:19:46 +0000 (0:00:00.388) 0:00:11.668 ********** 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-weekly-cisshnhds7/tests/tests_ansible.yml:136 Saturday 25 May 2024 06:19:47 +0000 (0:00:00.384) 0:00:12.052 ********** ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Allow service http in permanent dmz zone] ******************************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:144 Saturday 25 May 2024 06:19:47 +0000 (0:00:00.386) 0:00:12.439 ********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Allow service http in permanent dmz zone, again] ************************* task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:153 Saturday 25 May 2024 06:19:47 +0000 (0:00:00.386) 0:00:12.826 ********** 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-weekly-cisshnhds7/tests/tests_ansible.yml:162 Saturday 25 May 2024 06:19:48 +0000 (0:00:00.397) 0:00:13.224 ********** 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-weekly-cisshnhds7/tests/tests_ansible.yml:171 Saturday 25 May 2024 06:19:48 +0000 (0:00:00.383) 0:00:13.607 ********** 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-weekly-cisshnhds7/tests/tests_ansible.yml:180 Saturday 25 May 2024 06:19:48 +0000 (0:00:00.380) 0:00:13.988 ********** 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-weekly-cisshnhds7/tests/tests_ansible.yml:189 Saturday 25 May 2024 06:19:49 +0000 (0:00:00.381) 0:00:14.369 ********** ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Allow nm interface eth0 in permanent trusted zone] *********************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:198 Saturday 25 May 2024 06:19:49 +0000 (0:00:00.388) 0:00:14.758 ********** 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-weekly-cisshnhds7/tests/tests_ansible.yml:207 Saturday 25 May 2024 06:19:50 +0000 (0:00:00.452) 0:00:15.210 ********** ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Disable nm interface eth0 in permanent trusted zone] ********************* task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:216 Saturday 25 May 2024 06:19:50 +0000 (0:00:00.401) 0:00:15.612 ********** 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-weekly-cisshnhds7/tests/tests_ansible.yml:225 Saturday 25 May 2024 06:19:51 +0000 (0:00:00.422) 0:00:16.034 ********** ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Allow interface eth2 in permanent trusted zone] ************************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:234 Saturday 25 May 2024 06:19:51 +0000 (0:00:00.412) 0:00:16.447 ********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Allow interface eth2 in permanent trusted zone, again] ******************* task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:243 Saturday 25 May 2024 06:19:51 +0000 (0:00:00.400) 0:00:16.847 ********** ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Allow masquerading in permament dmz zone] ******************************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:252 Saturday 25 May 2024 06:19:52 +0000 (0:00:00.395) 0:00:17.243 ********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Allow masquerading in permament dmz zone, again] ************************* task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:260 Saturday 25 May 2024 06:19:52 +0000 (0:00:00.386) 0:00:17.630 ********** ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Ensure permanent custom zone exists (no change)] ************************* task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:268 Saturday 25 May 2024 06:19:53 +0000 (0:00:00.397) 0:00:18.027 ********** ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Ensure ICMP block inversion in permanent drop zone] ********************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:276 Saturday 25 May 2024 06:19:53 +0000 (0:00:00.378) 0:00:18.406 ********** 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-weekly-cisshnhds7/tests/tests_ansible.yml:284 Saturday 25 May 2024 06:19:53 +0000 (0:00:00.388) 0:00:18.794 ********** ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Block ICMP echo-request in permanent drop zone] ************************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:292 Saturday 25 May 2024 06:19:54 +0000 (0:00:00.384) 0:00:19.178 ********** 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-weekly-cisshnhds7/tests/tests_ansible.yml:301 Saturday 25 May 2024 06:19:54 +0000 (0:00:00.397) 0:00:19.576 ********** 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-weekly-cisshnhds7/tests/tests_ansible.yml:310 Saturday 25 May 2024 06:19:54 +0000 (0:00:00.383) 0:00:19.960 ********** ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Ensure target ACCEPT in permanent internal zone] ************************* task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:319 Saturday 25 May 2024 06:19:55 +0000 (0:00:00.384) 0:00:20.344 ********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Ensure target ACCEPT in permanent internal zone, again] ****************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:328 Saturday 25 May 2024 06:19:55 +0000 (0:00:00.652) 0:00:20.997 ********** ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Ensure default target in permanent internal zone] ************************ task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:337 Saturday 25 May 2024 06:19:56 +0000 (0:00:00.400) 0:00:21.398 ********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Ensure default target in permanent internal zone, again] ***************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:346 Saturday 25 May 2024 06:19:57 +0000 (0:00:00.633) 0:00:22.031 ********** 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-weekly-cisshnhds7/tests/tests_ansible.yml:355 Saturday 25 May 2024 06:19:57 +0000 (0:00:00.377) 0:00:22.409 ********** 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-weekly-cisshnhds7/tests/tests_ansible.yml:367 Saturday 25 May 2024 06:19:57 +0000 (0:00:00.401) 0:00:22.811 ********** ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Firewalld custom zone] *************************************************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:379 Saturday 25 May 2024 06:19:58 +0000 (0:00:00.399) 0:00:23.210 ********** changed: [sut] => { "__firewall_changed": true, "changed": true } TASK [Assert firewalld custom zone] ******************************************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:387 Saturday 25 May 2024 06:19:58 +0000 (0:00:00.630) 0:00:23.841 ********** ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Add masquerade to custom zone] ******************************************* task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:392 Saturday 25 May 2024 06:19:58 +0000 (0:00:00.021) 0:00:23.862 ********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Add masquerade to custom zone, again] ************************************ task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:402 Saturday 25 May 2024 06:19:59 +0000 (0:00:00.393) 0:00:24.255 ********** 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-weekly-cisshnhds7/tests/tests_ansible.yml:412 Saturday 25 May 2024 06:19:59 +0000 (0:00:00.390) 0:00:24.645 ********** ok: [sut] => { "changed": false, "cmd": [ "firewall-cmd", "--set-default-zone", "public" ], "delta": "0:00:00.293738", "end": "2024-05-25 06:20:00.027366", "rc": 0, "start": "2024-05-25 06:19:59.733628" } STDOUT: success STDERR: Warning: ZONE_ALREADY_SET: public TASK [Set default zone] ******************************************************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:416 Saturday 25 May 2024 06:20:00 +0000 (0:00:00.415) 0:00:25.060 ********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Set default zone, again] ************************************************* task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:423 Saturday 25 May 2024 06:20:00 +0000 (0:00:00.458) 0:00:25.519 ********** ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Add multiple custom services] ******************************************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:430 Saturday 25 May 2024 06:20:00 +0000 (0:00:00.401) 0:00:25.921 ********** 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-weekly-cisshnhds7/tests/tests_ansible.yml:440 Saturday 25 May 2024 06:20:01 +0000 (0:00:00.266) 0:00:26.188 ********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Add custom service that already exists] ********************************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:448 Saturday 25 May 2024 06:20:01 +0000 (0:00:00.780) 0:00:26.968 ********** ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Add description to custom service] *************************************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:456 Saturday 25 May 2024 06:20:02 +0000 (0:00:00.505) 0:00:27.474 ********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Add short description to custom service] ********************************* task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:465 Saturday 25 May 2024 06:20:03 +0000 (0:00:00.652) 0:00:28.126 ********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Add source_ports to custom service] ************************************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:474 Saturday 25 May 2024 06:20:03 +0000 (0:00:00.653) 0:00:28.780 ********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Add source_ports to custom service again] ******************************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:483 Saturday 25 May 2024 06:20:04 +0000 (0:00:00.660) 0:00:29.440 ********** ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Add invalid protocol to custom service] ********************************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:492 Saturday 25 May 2024 06:20:04 +0000 (0:00:00.394) 0:00:29.835 ********** ok: [sut] => { "changed": false, "failed_when_result": false } MSG: INVALID_PROTOCOL: nonexistentprotocol TASK [Add valid protocol to custom service] ************************************ task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:501 Saturday 25 May 2024 06:20:05 +0000 (0:00:00.397) 0:00:30.233 ********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Remove valid protocol from customservice] ******************************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:510 Saturday 25 May 2024 06:20:05 +0000 (0:00:00.658) 0:00:30.891 ********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Remove ports from custom service without deleting service] *************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:519 Saturday 25 May 2024 06:20:06 +0000 (0:00:00.653) 0:00:31.545 ********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Add destination addresses] *********************************************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:528 Saturday 25 May 2024 06:20:07 +0000 (0:00:00.734) 0:00:32.279 ********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Delete custom service] *************************************************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:539 Saturday 25 May 2024 06:20:07 +0000 (0:00:00.663) 0:00:32.943 ********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Delete custom service again] ********************************************* task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:547 Saturday 25 May 2024 06:20:08 +0000 (0:00:00.654) 0:00:33.598 ********** 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-weekly-cisshnhds7/tests/tests_ansible.yml:555 Saturday 25 May 2024 06:20:08 +0000 (0:00:00.379) 0:00:33.977 ********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Add helper module that already is on customservice] ********************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:572 Saturday 25 May 2024 06:20:09 +0000 (0:00:00.668) 0:00:34.646 ********** 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-weekly-cisshnhds7/tests/tests_ansible.yml:581 Saturday 25 May 2024 06:20:10 +0000 (0:00:00.398) 0:00:35.045 ********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Forward same port again (string)] **************************************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:588 Saturday 25 May 2024 06:20:10 +0000 (0:00:00.394) 0:00:35.439 ********** ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Disable forward port (string)] ******************************************* task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:595 Saturday 25 May 2024 06:20:10 +0000 (0:00:00.386) 0:00:35.826 ********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Forward port (dict form)] ************************************************ task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:602 Saturday 25 May 2024 06:20:11 +0000 (0:00:00.402) 0:00:36.228 ********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Forward port again (dict form)] ****************************************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:613 Saturday 25 May 2024 06:20:11 +0000 (0:00:00.388) 0:00:36.616 ********** ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Disable forward port (dict form)] **************************************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:624 Saturday 25 May 2024 06:20:11 +0000 (0:00:00.380) 0:00:36.997 ********** changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Remove custom zone] ****************************************************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:643 Saturday 25 May 2024 06:20:12 +0000 (0:00:00.388) 0:00:37.386 ********** ok: [sut] => { "changed": false, "cmd": [ "firewall-cmd", "--permanent", "--delete-zone=custom" ], "delta": "0:00:00.326336", "end": "2024-05-25 06:20:12.805173", "failed_when_result": false, "rc": 0, "start": "2024-05-25 06:20:12.478837" } STDOUT: success TASK [Remove customzone zone] ************************************************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:649 Saturday 25 May 2024 06:20:12 +0000 (0:00:00.463) 0:00:37.849 ********** ok: [sut] => { "changed": false, "cmd": [ "firewall-cmd", "--permanent", "--delete-zone=customzone" ], "delta": "0:00:00.308800", "end": "2024-05-25 06:20:13.252432", "failed_when_result": false, "rc": 0, "start": "2024-05-25 06:20:12.943632" } STDOUT: success TASK [Reset internal zone to defaults] ***************************************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:655 Saturday 25 May 2024 06:20:13 +0000 (0:00:00.446) 0:00:38.296 ********** ok: [sut] => { "changed": false, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=internal" ], "delta": "0:00:00.306688", "end": "2024-05-25 06:20:13.693538", "failed_when_result": false, "rc": 0, "start": "2024-05-25 06:20:13.386850" } STDOUT: success TASK [Reset trusted zone to defaults] ****************************************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:661 Saturday 25 May 2024 06:20:13 +0000 (0:00:00.441) 0:00:38.738 ********** ok: [sut] => { "changed": false, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=trusted" ], "delta": "0:00:00.309083", "end": "2024-05-25 06:20:14.136458", "failed_when_result": false, "rc": 0, "start": "2024-05-25 06:20:13.827375" } STDOUT: success TASK [Reset dmz zone to defaults] ********************************************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:667 Saturday 25 May 2024 06:20:14 +0000 (0:00:00.442) 0:00:39.180 ********** ok: [sut] => { "changed": false, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=dmz" ], "delta": "0:00:00.317304", "end": "2024-05-25 06:20:14.584725", "failed_when_result": false, "rc": 0, "start": "2024-05-25 06:20:14.267421" } STDOUT: success TASK [Reset drop zone to defaults] ********************************************* task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:673 Saturday 25 May 2024 06:20:14 +0000 (0:00:00.448) 0:00:39.629 ********** ok: [sut] => { "changed": false, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=drop" ], "delta": "0:00:00.310461", "end": "2024-05-25 06:20:15.027441", "failed_when_result": false, "rc": 0, "start": "2024-05-25 06:20:14.716980" } STDOUT: success TASK [Reset public zone to defaults] ******************************************* task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:679 Saturday 25 May 2024 06:20:15 +0000 (0:00:00.443) 0:00:40.072 ********** ok: [sut] => { "changed": false, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=public" ], "delta": "0:00:00.309211", "end": "2024-05-25 06:20:15.470657", "failed_when_result": false, "rc": 0, "start": "2024-05-25 06:20:15.161446" } STDOUT: success TASK [Reset default zone to defaults] ****************************************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:685 Saturday 25 May 2024 06:20:15 +0000 (0:00:00.443) 0:00:40.515 ********** ok: [sut] => { "changed": false, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=public" ], "delta": "0:00:00.308826", "end": "2024-05-25 06:20:15.913918", "failed_when_result": false, "rc": 22, "start": "2024-05-25 06:20:15.605092" } STDERR: Error: NO_DEFAULTS: public MSG: non-zero return code TASK [Reset default zone] ****************************************************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:691 Saturday 25 May 2024 06:20:15 +0000 (0:00:00.441) 0:00:40.957 ********** ok: [sut] => { "changed": false, "cmd": [ "firewall-cmd", "--set-default-zone=public" ], "delta": "0:00:00.355714", "end": "2024-05-25 06:20:16.414361", "rc": 0, "start": "2024-05-25 06:20:16.058647" } STDOUT: success TASK [Reload firewalld] ******************************************************** task path: /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:697 Saturday 25 May 2024 06:20:16 +0000 (0:00:00.490) 0:00:41.448 ********** changed: [sut] => { "changed": true, "cmd": [ "firewall-cmd", "--reload" ], "delta": "0:00:00.527671", "end": "2024-05-25 06:20:17.065791", "failed_when_result": false, "rc": 0, "start": "2024-05-25 06:20:16.538120" } STDOUT: success META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* sut : ok=93 changed=37 unreachable=0 failed=0 skipped=11 rescued=0 ignored=0 Saturday 25 May 2024 06:20:17 +0000 (0:00:00.661) 0:00:42.109 ********** =============================================================================== linux-system-roles.firewall : Gather firewall config if no arguments ---- 0.97s /WORKDIR/git-weekly-cisshnhds7/tests/roles/linux-system-roles.firewall/tasks/main.yml:149 linux-system-roles.firewall : Enable and start firewalld service -------- 0.88s /WORKDIR/git-weekly-cisshnhds7/tests/roles/linux-system-roles.firewall/tasks/main.yml:29 Add custom service without details -------------------------------------- 0.78s /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:440 -------------------- Gathering Facts --------------------------------------------------------- 0.77s /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:2 ---------------------- Reset default zone to defaults ------------------------------------------ 0.74s /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:57 --------------------- Remove ports from custom service without deleting service --------------- 0.73s /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:519 -------------------- linux-system-roles.firewall : Install firewalld ------------------------- 0.67s /WORKDIR/git-weekly-cisshnhds7/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:20 Add custom service with all the elements at once ------------------------ 0.67s /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:555 -------------------- Add destination addresses ----------------------------------------------- 0.66s /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:528 -------------------- Reload firewalld -------------------------------------------------------- 0.66s /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:697 -------------------- Add source_ports to custom service -------------------------------------- 0.66s /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:474 -------------------- Add valid protocol to custom service ------------------------------------ 0.66s /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:501 -------------------- Delete custom service --------------------------------------------------- 0.65s /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:539 -------------------- Remove valid protocol from customservice -------------------------------- 0.65s /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:510 -------------------- Add short description to custom service --------------------------------- 0.65s /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:465 -------------------- Ensure target ACCEPT in permanent internal zone ------------------------- 0.65s /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:319 -------------------- Add description to custom service --------------------------------------- 0.65s /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:456 -------------------- Reload firewalld -------------------------------------------------------- 0.64s /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:72 --------------------- Ensure default target in permanent internal zone ------------------------ 0.63s /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:337 -------------------- Firewalld custom zone --------------------------------------------------- 0.63s /WORKDIR/git-weekly-cisshnhds7/tests/tests_ansible.yml:379 -------------------- ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- ---^---^---^---^---^---