ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmpcldt_og5 executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 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_zone.yml ******************************************************* 1 plays in /tmp/tmp__urhlhq/tests/tests_zone.yml PLAY [Test firewalld zones] **************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp__urhlhq/tests/tests_zone.yml:1 Tuesday 14 June 2022 21:13:52 +0000 (0:00:00.012) 0:00:00.012 ********** ok: [/cache/rhel-8-y.qcow2.snap] META: ran handlers TASK [Verify used firewalld zones] ********************************************* task path: /tmp/tmp__urhlhq/tests/tests_zone.yml:10 Tuesday 14 June 2022 21:13:53 +0000 (0:00:01.134) 0:00:01.147 ********** TASK [linux-system-roles.firewall : include_tasks] ***************************** task path: /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/main.yml:1 Tuesday 14 June 2022 21:13:54 +0000 (0:00:00.077) 0:00:01.225 ********** included: /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml for /cache/rhel-8-y.qcow2.snap TASK [linux-system-roles.firewall : Ensure ansible_facts used by role] ********* task path: /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Tuesday 14 June 2022 21:13:54 +0000 (0:00:00.045) 0:00:01.271 ********** ok: [/cache/rhel-8-y.qcow2.snap] TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 Tuesday 14 June 2022 21:13:54 +0000 (0:00:00.504) 0:00:01.776 ********** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Tuesday 14 June 2022 21:13:56 +0000 (0:00:01.434) 0:00:03.210 ********** skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Tuesday 14 June 2022 21:13:56 +0000 (0:00:00.039) 0:00:03.249 ********** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Tuesday 14 June 2022 21:13:57 +0000 (0:00:01.268) 0:00:04.517 ********** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2022-06-14 17:13:51 EDT", "ActiveEnterTimestampMonotonic": "160712691", "ActiveExitTimestamp": "Tue 2022-06-14 17:13:51 EDT", "ActiveExitTimestampMonotonic": "160064306", "ActiveState": "active", "After": "basic.target polkit.service dbus.service sysinit.target system.slice dbus.socket", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-06-14 17:13:51 EDT", "AssertTimestampMonotonic": "160460957", "Before": "multi-user.target shutdown.target network-pre.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2022-06-14 17:13:51 EDT", "ConditionTimestampMonotonic": "160460957", "ConfigurationDirectoryMode": "0755", "Conflicts": "ipset.service nftables.service ip6tables.service shutdown.target iptables.service ebtables.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "29927", "ExecMainStartTimestamp": "Tue 2022-06-14 17:13:51 EDT", "ExecMainStartTimestampMonotonic": "160462490", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; ignore_errors=no ; start_time=[Tue 2022-06-14 17:13:51 EDT] ; stop_time=[n/a] ; pid=29927 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Tue 2022-06-14 17:13:51 EDT", "InactiveEnterTimestampMonotonic": "160459503", "InactiveExitTimestamp": "Tue 2022-06-14 17:13:51 EDT", "InactiveExitTimestampMonotonic": "160462524", "InvocationID": "16c4b597d46745a4a9f6e5de6efed5be", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "6968", "LimitNPROCSoft": "6968", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6968", "LimitSIGPENDINGSoft": "6968", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "29927", "MemoryAccounting": "yes", "MemoryCurrent": "25133056", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket sysinit.target system.slice", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Tue 2022-06-14 17:13:51 EDT", "StateChangeTimestampMonotonic": "160712691", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "2", "TasksMax": "11149", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogTimestamp": "Tue 2022-06-14 17:13:51 EDT", "WatchdogTimestampMonotonic": "160712689", "WatchdogUSec": "0" } } TASK [linux-system-roles.firewall : Check if previous replaced is defined] ***** task path: /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/main.yml:9 Tuesday 14 June 2022 21:13:58 +0000 (0:00:00.806) 0:00:05.324 ********** ok: [/cache/rhel-8-y.qcow2.snap] => { "ansible_facts": { "__firewall_previous_replaced": false, "__firewall_python_cmd": "/usr/libexec/platform-python" }, "changed": false } TASK [linux-system-roles.firewall : Get config files, checksums before and remove] *** task path: /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/main.yml:18 Tuesday 14 June 2022 21:13:58 +0000 (0:00:00.051) 0:00:05.375 ********** skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/main.yml:40 Tuesday 14 June 2022 21:13:58 +0000 (0:00:00.035) 0:00:05.410 ********** ok: [/cache/rhel-8-y.qcow2.snap] => (item={'zone': 'internal', 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "internal" } } ok: [/cache/rhel-8-y.qcow2.snap] => (item={'zone': 'external', 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "external" } } ok: [/cache/rhel-8-y.qcow2.snap] => (item={'zone': 'trusted', 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "trusted" } } TASK [linux-system-roles.firewall : gather firewalld configuration] ************ task path: /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/main.yml:69 Tuesday 14 June 2022 21:14:00 +0000 (0:00:01.790) 0:00:07.201 ********** ok: [/cache/rhel-8-y.qcow2.snap] => { "ansible_facts": { "firewalld_config": { "custom": { "helpers": [], "icmptypes": [], "ipsets": [], "policies": [], "services": [], "zones": [] }, "default": { "helpers": [ "Q.931", "RAS", "amanda", "ftp", "h323", "irc", "netbios-ns", "pptp", "proto-gre", "sane", "sip", "snmp", "tftp" ], "icmptypes": [ "address-unreachable", "bad-header", "beyond-scope", "communication-prohibited", "destination-unreachable", "echo-reply", "echo-request", "failed-policy", "fragmentation-needed", "unknown-option", "host-precedence-violation", "host-prohibited", "host-redirect", "host-unknown", "host-unreachable", "ip-header-bad", "neighbour-advertisement", "neighbour-solicitation", "network-prohibited", "network-redirect", "network-unknown", "network-unreachable", "no-route", "packet-too-big", "parameter-problem", "port-unreachable", "precedence-cutoff", "protocol-unreachable", "redirect", "reject-route", "required-option-missing", "router-advertisement", "router-solicitation", "source-quench", "source-route-failed", "time-exceeded", "timestamp-reply", "timestamp-request", "tos-host-redirect", "tos-host-unreachable", "tos-network-redirect", "tos-network-unreachable", "ttl-zero-during-reassembly", "ttl-zero-during-transit", "unknown-header-type" ], "ipsets": [], "policies": [ "allow-host-ipv6" ], "services": [ "imap", "redis", "RH-Satellite-6-capsule", "kibana", "RH-Satellite-6", "klogin", "amanda-client", "https", "rpc-bind", "amanda-k5-client", "nbd", "amqp", "nfs", "amqps", "nfs3", "apcupsd", "nmea-0183", "audit", "kpasswd", "bacula-client", "nrpe", "bacula", "ntp", "bb", "nut", "bgp", "kprop", "bitcoin-rpc", "imaps", "rquotad", "bitcoin-testnet-rpc", "kshell", "bitcoin-testnet", "openvpn", "bitcoin", "kube-apiserver", "bittorrent-lsd", "ldap", "ceph-mon", "ovirt-imageio", "ceph", "ldaps", "cfengine", "ovirt-vmconsole", "cockpit", "libvirt-tls", "collectd", "condor-collector", "plex", "ctdb", "pmcd", "dhcp", "libvirt", "dhcpv6-client", "pmproxy", "dhcpv6", "pmwebapi", "distcc", "lightning-network", "dns-over-tls", "pmwebapis", "dns", "llmnr", "docker-registry", "managesieve", "docker-swarm", "matrix", "dropbox-lansync", "mdns", "elasticsearch", "memcache", "etcd-client", "minidlna", "etcd-server", "pop3", "finger", "mongodb", "foreman-proxy", "pop3s", "foreman", "mosh", "freeipa-4", "mountd", "freeipa-ldap", "mqtt-tls", "freeipa-ldaps", "ipp-client", "freeipa-replication", "mqtt", "freeipa-trust", "postgresql", "ftp", "privoxy", "galera", "ms-wbt", "ganglia-client", "mssql", "ganglia-master", "prometheus", "git", "proxy-dhcp", "grafana", "ptp", "gre", "ipp", "rsh", "high-availability", "pulseaudio", "http", "ipsec", "puppetmaster", "irc", "quassel", "ircs", "murmur", "iscsi-target", "radius", "isns", "rdp", "jenkins", "redis-sentinel", "kadmin", "mysql", "kdeconnect", "kerberos", "rsyncd", "ovirt-storageconsole", "rtsp", "salt-master", "samba-client", "samba-dc", "samba", "sane", "sip", "sips", "slp", "smtp-submission", "smtp", "smtps", "snmp", "snmptrap", "spideroak-lansync", "spotify-sync", "squid", "ssdp", "ssh", "steam-streaming", "svdrp", "svn", "syncthing-gui", "syncthing", "synergy", "syslog-tls", "syslog", "telnet", "tentacle", "tftp-client", "tftp", "tile38", "tinc", "tor-socks", "transmission-client", "upnp-client", "vdsm", "vnc-server", "wbem-http", "wbem-https", "wsman", "wsmans", "xdmcp", "xmpp-bosh", "xmpp-client", "xmpp-local", "xmpp-server", "zabbix-agent", "zabbix-server" ], "zones": [ "nm-shared", "block", "dmz", "drop", "external", "home", "internal", "public", "trusted", "work" ] } } }, "changed": false } TASK [linux-system-roles.firewall : update firewalld_config fact] ************** task path: /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/main.yml:74 Tuesday 14 June 2022 21:14:00 +0000 (0:00:00.493) 0:00:07.694 ********** ok: [/cache/rhel-8-y.qcow2.snap] => { "ansible_facts": { "firewall_config": { "custom": { "helpers": [], "icmptypes": [], "ipsets": [], "policies": [], "services": [], "zones": [] }, "default": { "helpers": [ "Q.931", "RAS", "amanda", "ftp", "h323", "irc", "netbios-ns", "pptp", "proto-gre", "sane", "sip", "snmp", "tftp" ], "icmptypes": [ "address-unreachable", "bad-header", "beyond-scope", "communication-prohibited", "destination-unreachable", "echo-reply", "echo-request", "failed-policy", "fragmentation-needed", "unknown-option", "host-precedence-violation", "host-prohibited", "host-redirect", "host-unknown", "host-unreachable", "ip-header-bad", "neighbour-advertisement", "neighbour-solicitation", "network-prohibited", "network-redirect", "network-unknown", "network-unreachable", "no-route", "packet-too-big", "parameter-problem", "port-unreachable", "precedence-cutoff", "protocol-unreachable", "redirect", "reject-route", "required-option-missing", "router-advertisement", "router-solicitation", "source-quench", "source-route-failed", "time-exceeded", "timestamp-reply", "timestamp-request", "tos-host-redirect", "tos-host-unreachable", "tos-network-redirect", "tos-network-unreachable", "ttl-zero-during-reassembly", "ttl-zero-during-transit", "unknown-header-type" ], "ipsets": [], "policies": [ "allow-host-ipv6" ], "services": [ "imap", "redis", "RH-Satellite-6-capsule", "kibana", "RH-Satellite-6", "klogin", "amanda-client", "https", "rpc-bind", "amanda-k5-client", "nbd", "amqp", "nfs", "amqps", "nfs3", "apcupsd", "nmea-0183", "audit", "kpasswd", "bacula-client", "nrpe", "bacula", "ntp", "bb", "nut", "bgp", "kprop", "bitcoin-rpc", "imaps", "rquotad", "bitcoin-testnet-rpc", "kshell", "bitcoin-testnet", "openvpn", "bitcoin", "kube-apiserver", "bittorrent-lsd", "ldap", "ceph-mon", "ovirt-imageio", "ceph", "ldaps", "cfengine", "ovirt-vmconsole", "cockpit", "libvirt-tls", "collectd", "condor-collector", "plex", "ctdb", "pmcd", "dhcp", "libvirt", "dhcpv6-client", "pmproxy", "dhcpv6", "pmwebapi", "distcc", "lightning-network", "dns-over-tls", "pmwebapis", "dns", "llmnr", "docker-registry", "managesieve", "docker-swarm", "matrix", "dropbox-lansync", "mdns", "elasticsearch", "memcache", "etcd-client", "minidlna", "etcd-server", "pop3", "finger", "mongodb", "foreman-proxy", "pop3s", "foreman", "mosh", "freeipa-4", "mountd", "freeipa-ldap", "mqtt-tls", "freeipa-ldaps", "ipp-client", "freeipa-replication", "mqtt", "freeipa-trust", "postgresql", "ftp", "privoxy", "galera", "ms-wbt", "ganglia-client", "mssql", "ganglia-master", "prometheus", "git", "proxy-dhcp", "grafana", "ptp", "gre", "ipp", "rsh", "high-availability", "pulseaudio", "http", "ipsec", "puppetmaster", "irc", "quassel", "ircs", "murmur", "iscsi-target", "radius", "isns", "rdp", "jenkins", "redis-sentinel", "kadmin", "mysql", "kdeconnect", "kerberos", "rsyncd", "ovirt-storageconsole", "rtsp", "salt-master", "samba-client", "samba-dc", "samba", "sane", "sip", "sips", "slp", "smtp-submission", "smtp", "smtps", "snmp", "snmptrap", "spideroak-lansync", "spotify-sync", "squid", "ssdp", "ssh", "steam-streaming", "svdrp", "svn", "syncthing-gui", "syncthing", "synergy", "syslog-tls", "syslog", "telnet", "tentacle", "tftp-client", "tftp", "tile38", "tinc", "tor-socks", "transmission-client", "upnp-client", "vdsm", "vnc-server", "wbem-http", "wbem-https", "wsman", "wsmans", "xdmcp", "xmpp-bosh", "xmpp-client", "xmpp-local", "xmpp-server", "zabbix-agent", "zabbix-server" ], "zones": [ "nm-shared", "block", "dmz", "drop", "external", "home", "internal", "public", "trusted", "work" ] } } }, "changed": false } TASK [linux-system-roles.firewall : Get config files, checksums after] ********* task path: /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/main.yml:82 Tuesday 14 June 2022 21:14:00 +0000 (0:00:00.049) 0:00:07.743 ********** skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Calculate what has changed] **************** task path: /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/main.yml:90 Tuesday 14 June 2022 21:14:00 +0000 (0:00:00.036) 0:00:07.780 ********** skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Show diffs] ******************************** task path: /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/main.yml:99 Tuesday 14 June 2022 21:14:00 +0000 (0:00:00.041) 0:00:07.821 ********** skipping: [/cache/rhel-8-y.qcow2.snap] => {} META: role_complete for /cache/rhel-8-y.qcow2.snap TASK [Fail on missing zones] *************************************************** task path: /tmp/tmp__urhlhq/tests/tests_zone.yml:22 Tuesday 14 June 2022 21:14:00 +0000 (0:00:00.045) 0:00:07.867 ********** skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Setup firewalld] ********************************************************* task path: /tmp/tmp__urhlhq/tests/tests_zone.yml:28 Tuesday 14 June 2022 21:14:00 +0000 (0:00:00.036) 0:00:07.904 ********** TASK [linux-system-roles.firewall : include_tasks] ***************************** task path: /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/main.yml:1 Tuesday 14 June 2022 21:14:00 +0000 (0:00:00.058) 0:00:07.962 ********** included: /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml for /cache/rhel-8-y.qcow2.snap TASK [linux-system-roles.firewall : Ensure ansible_facts used by role] ********* task path: /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Tuesday 14 June 2022 21:14:00 +0000 (0:00:00.044) 0:00:08.006 ********** ok: [/cache/rhel-8-y.qcow2.snap] TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 Tuesday 14 June 2022 21:14:01 +0000 (0:00:00.515) 0:00:08.522 ********** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Tuesday 14 June 2022 21:14:02 +0000 (0:00:01.454) 0:00:09.977 ********** skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Tuesday 14 June 2022 21:14:02 +0000 (0:00:00.038) 0:00:10.015 ********** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Tuesday 14 June 2022 21:14:04 +0000 (0:00:01.301) 0:00:11.316 ********** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2022-06-14 17:13:51 EDT", "ActiveEnterTimestampMonotonic": "160712691", "ActiveExitTimestamp": "Tue 2022-06-14 17:13:51 EDT", "ActiveExitTimestampMonotonic": "160064306", "ActiveState": "active", "After": "basic.target polkit.service dbus.service sysinit.target system.slice dbus.socket", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-06-14 17:13:51 EDT", "AssertTimestampMonotonic": "160460957", "Before": "multi-user.target shutdown.target network-pre.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2022-06-14 17:13:51 EDT", "ConditionTimestampMonotonic": "160460957", "ConfigurationDirectoryMode": "0755", "Conflicts": "ipset.service nftables.service ip6tables.service shutdown.target iptables.service ebtables.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "29927", "ExecMainStartTimestamp": "Tue 2022-06-14 17:13:51 EDT", "ExecMainStartTimestampMonotonic": "160462490", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; ignore_errors=no ; start_time=[Tue 2022-06-14 17:13:51 EDT] ; stop_time=[n/a] ; pid=29927 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Tue 2022-06-14 17:13:51 EDT", "InactiveEnterTimestampMonotonic": "160459503", "InactiveExitTimestamp": "Tue 2022-06-14 17:13:51 EDT", "InactiveExitTimestampMonotonic": "160462524", "InvocationID": "16c4b597d46745a4a9f6e5de6efed5be", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "6968", "LimitNPROCSoft": "6968", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6968", "LimitSIGPENDINGSoft": "6968", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "29927", "MemoryAccounting": "yes", "MemoryCurrent": "26009600", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket sysinit.target system.slice", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Tue 2022-06-14 17:13:51 EDT", "StateChangeTimestampMonotonic": "160712691", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "2", "TasksMax": "11149", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogTimestamp": "Tue 2022-06-14 17:13:51 EDT", "WatchdogTimestampMonotonic": "160712689", "WatchdogUSec": "0" } } TASK [linux-system-roles.firewall : Check if previous replaced is defined] ***** task path: /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/main.yml:9 Tuesday 14 June 2022 21:14:04 +0000 (0:00:00.543) 0:00:11.861 ********** ok: [/cache/rhel-8-y.qcow2.snap] => { "ansible_facts": { "__firewall_previous_replaced": true, "__firewall_python_cmd": "/usr/libexec/platform-python" }, "changed": false } TASK [linux-system-roles.firewall : Get config files, checksums before and remove] *** task path: /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/main.yml:18 Tuesday 14 June 2022 21:14:04 +0000 (0:00:00.087) 0:00:11.948 ********** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "rc": 0 } STDERR: Shared connection to 127.0.0.3 closed. TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/main.yml:40 Tuesday 14 June 2022 21:14:05 +0000 (0:00:00.258) 0:00:12.206 ********** ok: [/cache/rhel-8-y.qcow2.snap] => (item={'zone': 'internal', 'service': ['tftp', 'ftp'], 'port': ['443/tcp', '443/udp'], 'forward_port': ['447/tcp;;1.2.3.4', '448/tcp;;1.2.3.5'], 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "forward_port": [ "447/tcp;;1.2.3.4", "448/tcp;;1.2.3.5" ], "port": [ "443/tcp", "443/udp" ], "service": [ "tftp", "ftp" ], "state": "enabled", "zone": "internal" } } ok: [/cache/rhel-8-y.qcow2.snap] => (item={'zone': 'internal', 'service': ['tftp', 'ftp'], 'port': ['443/tcp', '443/udp'], 'forward_port': ['447/tcp;;1.2.3.4', '448/tcp;;1.2.3.5'], 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "forward_port": [ "447/tcp;;1.2.3.4", "448/tcp;;1.2.3.5" ], "port": [ "443/tcp", "443/udp" ], "service": [ "tftp", "ftp" ], "state": "enabled", "zone": "internal" } } ok: [/cache/rhel-8-y.qcow2.snap] => (item={'zone': 'customzone', 'permanent': True, 'state': 'present'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "permanent": true, "state": "present", "zone": "customzone" } } ok: [/cache/rhel-8-y.qcow2.snap] => (item={'zone': 'customzone', 'permanent': True, 'masquerade': True, 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "masquerade": true, "permanent": true, "state": "enabled", "zone": "customzone" } } ok: [/cache/rhel-8-y.qcow2.snap] => (item={'set_default_zone': 'dmz', 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "set_default_zone": "dmz", "state": "enabled" } } ok: [/cache/rhel-8-y.qcow2.snap] => (item={'service': 'http', 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "service": "http", "state": "enabled" } } TASK [linux-system-roles.firewall : gather firewalld configuration] ************ task path: /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/main.yml:69 Tuesday 14 June 2022 21:14:08 +0000 (0:00:03.681) 0:00:15.887 ********** ok: [/cache/rhel-8-y.qcow2.snap] => { "ansible_facts": { "firewalld_config": { "custom": { "helpers": [], "icmptypes": [], "ipsets": [], "policies": [], "services": [], "zones": [ "internal", "customzone", "public", "dmz" ] }, "default": { "helpers": [ "Q.931", "RAS", "amanda", "ftp", "h323", "irc", "netbios-ns", "pptp", "proto-gre", "sane", "sip", "snmp", "tftp" ], "icmptypes": [ "address-unreachable", "bad-header", "beyond-scope", "communication-prohibited", "destination-unreachable", "echo-reply", "echo-request", "failed-policy", "fragmentation-needed", "unknown-option", "host-precedence-violation", "host-prohibited", "host-redirect", "host-unknown", "host-unreachable", "ip-header-bad", "neighbour-advertisement", "neighbour-solicitation", "network-prohibited", "network-redirect", "network-unknown", "network-unreachable", "no-route", "packet-too-big", "parameter-problem", "port-unreachable", "precedence-cutoff", "protocol-unreachable", "redirect", "reject-route", "required-option-missing", "router-advertisement", "router-solicitation", "source-quench", "source-route-failed", "time-exceeded", "timestamp-reply", "timestamp-request", "tos-host-redirect", "tos-host-unreachable", "tos-network-redirect", "tos-network-unreachable", "ttl-zero-during-reassembly", "ttl-zero-during-transit", "unknown-header-type" ], "ipsets": [], "policies": [ "allow-host-ipv6" ], "services": [ "imap", "redis", "RH-Satellite-6-capsule", "kibana", "RH-Satellite-6", "klogin", "amanda-client", "https", "rpc-bind", "amanda-k5-client", "nbd", "amqp", "nfs", "amqps", "nfs3", "apcupsd", "nmea-0183", "audit", "kpasswd", "bacula-client", "nrpe", "bacula", "ntp", "bb", "nut", "bgp", "kprop", "bitcoin-rpc", "imaps", "rquotad", "bitcoin-testnet-rpc", "kshell", "bitcoin-testnet", "openvpn", "bitcoin", "kube-apiserver", "bittorrent-lsd", "ldap", "ceph-mon", "ovirt-imageio", "ceph", "ldaps", "cfengine", "ovirt-vmconsole", "cockpit", "libvirt-tls", "collectd", "condor-collector", "plex", "ctdb", "pmcd", "dhcp", "libvirt", "dhcpv6-client", "pmproxy", "dhcpv6", "pmwebapi", "distcc", "lightning-network", "dns-over-tls", "pmwebapis", "dns", "llmnr", "docker-registry", "managesieve", "docker-swarm", "matrix", "dropbox-lansync", "mdns", "elasticsearch", "memcache", "etcd-client", "minidlna", "etcd-server", "pop3", "finger", "mongodb", "foreman-proxy", "pop3s", "foreman", "mosh", "freeipa-4", "mountd", "freeipa-ldap", "mqtt-tls", "freeipa-ldaps", "ipp-client", "freeipa-replication", "mqtt", "freeipa-trust", "postgresql", "ftp", "privoxy", "galera", "ms-wbt", "ganglia-client", "mssql", "ganglia-master", "prometheus", "git", "proxy-dhcp", "grafana", "ptp", "gre", "ipp", "rsh", "high-availability", "pulseaudio", "http", "ipsec", "puppetmaster", "irc", "quassel", "ircs", "murmur", "iscsi-target", "radius", "isns", "rdp", "jenkins", "redis-sentinel", "kadmin", "mysql", "kdeconnect", "kerberos", "rsyncd", "ovirt-storageconsole", "rtsp", "salt-master", "samba-client", "samba-dc", "samba", "sane", "sip", "sips", "slp", "smtp-submission", "smtp", "smtps", "snmp", "snmptrap", "spideroak-lansync", "spotify-sync", "squid", "ssdp", "ssh", "steam-streaming", "svdrp", "svn", "syncthing-gui", "syncthing", "synergy", "syslog-tls", "syslog", "telnet", "tentacle", "tftp-client", "tftp", "tile38", "tinc", "tor-socks", "transmission-client", "upnp-client", "vdsm", "vnc-server", "wbem-http", "wbem-https", "wsman", "wsmans", "xdmcp", "xmpp-bosh", "xmpp-client", "xmpp-local", "xmpp-server", "zabbix-agent", "zabbix-server" ], "zones": [ "nm-shared", "block", "dmz", "drop", "external", "home", "internal", "public", "trusted", "work" ] } } }, "changed": false } TASK [linux-system-roles.firewall : update firewalld_config fact] ************** task path: /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/main.yml:74 Tuesday 14 June 2022 21:14:09 +0000 (0:00:00.372) 0:00:16.260 ********** ok: [/cache/rhel-8-y.qcow2.snap] => { "ansible_facts": { "firewall_config": { "custom": { "helpers": [], "icmptypes": [], "ipsets": [], "policies": [], "services": [], "zones": [ "internal", "customzone", "public", "dmz" ] }, "default": { "helpers": [ "Q.931", "RAS", "amanda", "ftp", "h323", "irc", "netbios-ns", "pptp", "proto-gre", "sane", "sip", "snmp", "tftp" ], "icmptypes": [ "address-unreachable", "bad-header", "beyond-scope", "communication-prohibited", "destination-unreachable", "echo-reply", "echo-request", "failed-policy", "fragmentation-needed", "unknown-option", "host-precedence-violation", "host-prohibited", "host-redirect", "host-unknown", "host-unreachable", "ip-header-bad", "neighbour-advertisement", "neighbour-solicitation", "network-prohibited", "network-redirect", "network-unknown", "network-unreachable", "no-route", "packet-too-big", "parameter-problem", "port-unreachable", "precedence-cutoff", "protocol-unreachable", "redirect", "reject-route", "required-option-missing", "router-advertisement", "router-solicitation", "source-quench", "source-route-failed", "time-exceeded", "timestamp-reply", "timestamp-request", "tos-host-redirect", "tos-host-unreachable", "tos-network-redirect", "tos-network-unreachable", "ttl-zero-during-reassembly", "ttl-zero-during-transit", "unknown-header-type" ], "ipsets": [], "policies": [ "allow-host-ipv6" ], "services": [ "imap", "redis", "RH-Satellite-6-capsule", "kibana", "RH-Satellite-6", "klogin", "amanda-client", "https", "rpc-bind", "amanda-k5-client", "nbd", "amqp", "nfs", "amqps", "nfs3", "apcupsd", "nmea-0183", "audit", "kpasswd", "bacula-client", "nrpe", "bacula", "ntp", "bb", "nut", "bgp", "kprop", "bitcoin-rpc", "imaps", "rquotad", "bitcoin-testnet-rpc", "kshell", "bitcoin-testnet", "openvpn", "bitcoin", "kube-apiserver", "bittorrent-lsd", "ldap", "ceph-mon", "ovirt-imageio", "ceph", "ldaps", "cfengine", "ovirt-vmconsole", "cockpit", "libvirt-tls", "collectd", "condor-collector", "plex", "ctdb", "pmcd", "dhcp", "libvirt", "dhcpv6-client", "pmproxy", "dhcpv6", "pmwebapi", "distcc", "lightning-network", "dns-over-tls", "pmwebapis", "dns", "llmnr", "docker-registry", "managesieve", "docker-swarm", "matrix", "dropbox-lansync", "mdns", "elasticsearch", "memcache", "etcd-client", "minidlna", "etcd-server", "pop3", "finger", "mongodb", "foreman-proxy", "pop3s", "foreman", "mosh", "freeipa-4", "mountd", "freeipa-ldap", "mqtt-tls", "freeipa-ldaps", "ipp-client", "freeipa-replication", "mqtt", "freeipa-trust", "postgresql", "ftp", "privoxy", "galera", "ms-wbt", "ganglia-client", "mssql", "ganglia-master", "prometheus", "git", "proxy-dhcp", "grafana", "ptp", "gre", "ipp", "rsh", "high-availability", "pulseaudio", "http", "ipsec", "puppetmaster", "irc", "quassel", "ircs", "murmur", "iscsi-target", "radius", "isns", "rdp", "jenkins", "redis-sentinel", "kadmin", "mysql", "kdeconnect", "kerberos", "rsyncd", "ovirt-storageconsole", "rtsp", "salt-master", "samba-client", "samba-dc", "samba", "sane", "sip", "sips", "slp", "smtp-submission", "smtp", "smtps", "snmp", "snmptrap", "spideroak-lansync", "spotify-sync", "squid", "ssdp", "ssh", "steam-streaming", "svdrp", "svn", "syncthing-gui", "syncthing", "synergy", "syslog-tls", "syslog", "telnet", "tentacle", "tftp-client", "tftp", "tile38", "tinc", "tor-socks", "transmission-client", "upnp-client", "vdsm", "vnc-server", "wbem-http", "wbem-https", "wsman", "wsmans", "xdmcp", "xmpp-bosh", "xmpp-client", "xmpp-local", "xmpp-server", "zabbix-agent", "zabbix-server" ], "zones": [ "nm-shared", "block", "dmz", "drop", "external", "home", "internal", "public", "trusted", "work" ] } } }, "changed": false } TASK [linux-system-roles.firewall : Get config files, checksums after] ********* task path: /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/main.yml:82 Tuesday 14 June 2022 21:14:09 +0000 (0:00:00.048) 0:00:16.309 ********** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "rc": 0 } STDOUT: 6319ed8130b49fff292260a1c7003b9c5de8d9d5068218135a877031d0853d1b /etc/firewalld/zones/internal.xml 610e6e9bafe289c126adb751e772cd0224012f12738a8b8011454b1da8865c18 /etc/firewalld/zones/customzone.xml af0a9197ceaa7b3118aee96b570bc7a8d7dc2e4a51ac6a61e53f35ce23eecc0f /etc/firewalld/zones/public.xml df2e066f9b8c0677c4887aa9a7032c4f94480408ff740036d98e648d11dd84c5 /etc/firewalld/zones/dmz.xml 66dd9213714d0a8afae60be06b8902f2cb4d1435ee414e6b77ec4d8671e9df77 /etc/firewalld/firewalld.conf STDERR: Shared connection to 127.0.0.3 closed. TASK [linux-system-roles.firewall : Calculate what has changed] **************** task path: /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/main.yml:90 Tuesday 14 June 2022 21:14:09 +0000 (0:00:00.288) 0:00:16.598 ********** changed: [/cache/rhel-8-y.qcow2.snap] => { "ansible_facts": { "firewall_lib_result": { "changed": true } }, "changed": true } TASK [linux-system-roles.firewall : Show diffs] ******************************** task path: /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/main.yml:99 Tuesday 14 June 2022 21:14:09 +0000 (0:00:00.047) 0:00:16.645 ********** skipping: [/cache/rhel-8-y.qcow2.snap] => {} META: role_complete for /cache/rhel-8-y.qcow2.snap TASK [Fail if no changes are done] ********************************************* task path: /tmp/tmp__urhlhq/tests/tests_zone.yml:58 Tuesday 14 June 2022 21:14:09 +0000 (0:00:00.041) 0:00:16.686 ********** skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Setup firewalld again] *************************************************** task path: /tmp/tmp__urhlhq/tests/tests_zone.yml:64 Tuesday 14 June 2022 21:14:09 +0000 (0:00:00.031) 0:00:16.718 ********** TASK [linux-system-roles.firewall : include_tasks] ***************************** task path: /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/main.yml:1 Tuesday 14 June 2022 21:14:09 +0000 (0:00:00.055) 0:00:16.774 ********** included: /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml for /cache/rhel-8-y.qcow2.snap TASK [linux-system-roles.firewall : Ensure ansible_facts used by role] ********* task path: /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Tuesday 14 June 2022 21:14:09 +0000 (0:00:00.044) 0:00:16.818 ********** ok: [/cache/rhel-8-y.qcow2.snap] TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 Tuesday 14 June 2022 21:14:10 +0000 (0:00:00.529) 0:00:17.348 ********** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Tuesday 14 June 2022 21:14:11 +0000 (0:00:01.252) 0:00:18.600 ********** skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Tuesday 14 June 2022 21:14:11 +0000 (0:00:00.039) 0:00:18.639 ********** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Tuesday 14 June 2022 21:14:12 +0000 (0:00:01.265) 0:00:19.905 ********** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2022-06-14 17:13:51 EDT", "ActiveEnterTimestampMonotonic": "160712691", "ActiveExitTimestamp": "Tue 2022-06-14 17:13:51 EDT", "ActiveExitTimestampMonotonic": "160064306", "ActiveState": "active", "After": "basic.target polkit.service dbus.service sysinit.target system.slice dbus.socket", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-06-14 17:13:51 EDT", "AssertTimestampMonotonic": "160460957", "Before": "multi-user.target shutdown.target network-pre.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2022-06-14 17:13:51 EDT", "ConditionTimestampMonotonic": "160460957", "ConfigurationDirectoryMode": "0755", "Conflicts": "ipset.service nftables.service ip6tables.service shutdown.target iptables.service ebtables.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "29927", "ExecMainStartTimestamp": "Tue 2022-06-14 17:13:51 EDT", "ExecMainStartTimestampMonotonic": "160462490", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; ignore_errors=no ; start_time=[Tue 2022-06-14 17:13:51 EDT] ; stop_time=[n/a] ; pid=29927 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Tue 2022-06-14 17:13:51 EDT", "InactiveEnterTimestampMonotonic": "160459503", "InactiveExitTimestamp": "Tue 2022-06-14 17:13:51 EDT", "InactiveExitTimestampMonotonic": "160462524", "InvocationID": "16c4b597d46745a4a9f6e5de6efed5be", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "6968", "LimitNPROCSoft": "6968", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6968", "LimitSIGPENDINGSoft": "6968", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "29927", "MemoryAccounting": "yes", "MemoryCurrent": "27455488", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket sysinit.target system.slice", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Tue 2022-06-14 17:13:51 EDT", "StateChangeTimestampMonotonic": "160712691", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "4", "TasksMax": "11149", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogTimestamp": "Tue 2022-06-14 17:13:51 EDT", "WatchdogTimestampMonotonic": "160712689", "WatchdogUSec": "0" } } TASK [linux-system-roles.firewall : Check if previous replaced is defined] ***** task path: /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/main.yml:9 Tuesday 14 June 2022 21:14:13 +0000 (0:00:00.503) 0:00:20.409 ********** ok: [/cache/rhel-8-y.qcow2.snap] => { "ansible_facts": { "__firewall_previous_replaced": true, "__firewall_python_cmd": "/usr/libexec/platform-python" }, "changed": false } TASK [linux-system-roles.firewall : Get config files, checksums before and remove] *** task path: /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/main.yml:18 Tuesday 14 June 2022 21:14:13 +0000 (0:00:00.050) 0:00:20.459 ********** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "rc": 0 } STDOUT: 6319ed8130b49fff292260a1c7003b9c5de8d9d5068218135a877031d0853d1b /etc/firewalld/zones/internal.xml 610e6e9bafe289c126adb751e772cd0224012f12738a8b8011454b1da8865c18 /etc/firewalld/zones/customzone.xml af0a9197ceaa7b3118aee96b570bc7a8d7dc2e4a51ac6a61e53f35ce23eecc0f /etc/firewalld/zones/public.xml df2e066f9b8c0677c4887aa9a7032c4f94480408ff740036d98e648d11dd84c5 /etc/firewalld/zones/dmz.xml 66dd9213714d0a8afae60be06b8902f2cb4d1435ee414e6b77ec4d8671e9df77 /etc/firewalld/firewalld.conf STDERR: Shared connection to 127.0.0.3 closed. TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/main.yml:40 Tuesday 14 June 2022 21:14:14 +0000 (0:00:00.965) 0:00:21.424 ********** ok: [/cache/rhel-8-y.qcow2.snap] => (item={'zone': 'internal', 'service': ['tftp', 'ftp'], 'port': ['443/tcp', '443/udp'], 'forward_port': ['447/tcp;;1.2.3.4', '448/tcp;;1.2.3.5'], 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "forward_port": [ "447/tcp;;1.2.3.4", "448/tcp;;1.2.3.5" ], "port": [ "443/tcp", "443/udp" ], "service": [ "tftp", "ftp" ], "state": "enabled", "zone": "internal" } } ok: [/cache/rhel-8-y.qcow2.snap] => (item={'zone': 'internal', 'service': ['tftp', 'ftp'], 'port': ['443/tcp', '443/udp'], 'forward_port': ['447/tcp;;1.2.3.4', '448/tcp;;1.2.3.5'], 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "forward_port": [ "447/tcp;;1.2.3.4", "448/tcp;;1.2.3.5" ], "port": [ "443/tcp", "443/udp" ], "service": [ "tftp", "ftp" ], "state": "enabled", "zone": "internal" } } ok: [/cache/rhel-8-y.qcow2.snap] => (item={'zone': 'customzone', 'permanent': True, 'state': 'present'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "permanent": true, "state": "present", "zone": "customzone" } } ok: [/cache/rhel-8-y.qcow2.snap] => (item={'zone': 'customzone', 'permanent': True, 'masquerade': True, 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "masquerade": true, "permanent": true, "state": "enabled", "zone": "customzone" } } ok: [/cache/rhel-8-y.qcow2.snap] => (item={'set_default_zone': 'dmz', 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "set_default_zone": "dmz", "state": "enabled" } } ok: [/cache/rhel-8-y.qcow2.snap] => (item={'service': 'http', 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "service": "http", "state": "enabled" } } TASK [linux-system-roles.firewall : gather firewalld configuration] ************ task path: /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/main.yml:69 Tuesday 14 June 2022 21:14:17 +0000 (0:00:03.661) 0:00:25.086 ********** ok: [/cache/rhel-8-y.qcow2.snap] => { "ansible_facts": { "firewalld_config": { "custom": { "helpers": [], "icmptypes": [], "ipsets": [], "policies": [], "services": [], "zones": [ "internal", "customzone", "public", "dmz" ] }, "default": { "helpers": [ "Q.931", "RAS", "amanda", "ftp", "h323", "irc", "netbios-ns", "pptp", "proto-gre", "sane", "sip", "snmp", "tftp" ], "icmptypes": [ "address-unreachable", "bad-header", "beyond-scope", "communication-prohibited", "destination-unreachable", "echo-reply", "echo-request", "failed-policy", "fragmentation-needed", "unknown-option", "host-precedence-violation", "host-prohibited", "host-redirect", "host-unknown", "host-unreachable", "ip-header-bad", "neighbour-advertisement", "neighbour-solicitation", "network-prohibited", "network-redirect", "network-unknown", "network-unreachable", "no-route", "packet-too-big", "parameter-problem", "port-unreachable", "precedence-cutoff", "protocol-unreachable", "redirect", "reject-route", "required-option-missing", "router-advertisement", "router-solicitation", "source-quench", "source-route-failed", "time-exceeded", "timestamp-reply", "timestamp-request", "tos-host-redirect", "tos-host-unreachable", "tos-network-redirect", "tos-network-unreachable", "ttl-zero-during-reassembly", "ttl-zero-during-transit", "unknown-header-type" ], "ipsets": [], "policies": [ "allow-host-ipv6" ], "services": [ "imap", "redis", "RH-Satellite-6-capsule", "kibana", "RH-Satellite-6", "klogin", "amanda-client", "https", "rpc-bind", "amanda-k5-client", "nbd", "amqp", "nfs", "amqps", "nfs3", "apcupsd", "nmea-0183", "audit", "kpasswd", "bacula-client", "nrpe", "bacula", "ntp", "bb", "nut", "bgp", "kprop", "bitcoin-rpc", "imaps", "rquotad", "bitcoin-testnet-rpc", "kshell", "bitcoin-testnet", "openvpn", "bitcoin", "kube-apiserver", "bittorrent-lsd", "ldap", "ceph-mon", "ovirt-imageio", "ceph", "ldaps", "cfengine", "ovirt-vmconsole", "cockpit", "libvirt-tls", "collectd", "condor-collector", "plex", "ctdb", "pmcd", "dhcp", "libvirt", "dhcpv6-client", "pmproxy", "dhcpv6", "pmwebapi", "distcc", "lightning-network", "dns-over-tls", "pmwebapis", "dns", "llmnr", "docker-registry", "managesieve", "docker-swarm", "matrix", "dropbox-lansync", "mdns", "elasticsearch", "memcache", "etcd-client", "minidlna", "etcd-server", "pop3", "finger", "mongodb", "foreman-proxy", "pop3s", "foreman", "mosh", "freeipa-4", "mountd", "freeipa-ldap", "mqtt-tls", "freeipa-ldaps", "ipp-client", "freeipa-replication", "mqtt", "freeipa-trust", "postgresql", "ftp", "privoxy", "galera", "ms-wbt", "ganglia-client", "mssql", "ganglia-master", "prometheus", "git", "proxy-dhcp", "grafana", "ptp", "gre", "ipp", "rsh", "high-availability", "pulseaudio", "http", "ipsec", "puppetmaster", "irc", "quassel", "ircs", "murmur", "iscsi-target", "radius", "isns", "rdp", "jenkins", "redis-sentinel", "kadmin", "mysql", "kdeconnect", "kerberos", "rsyncd", "ovirt-storageconsole", "rtsp", "salt-master", "samba-client", "samba-dc", "samba", "sane", "sip", "sips", "slp", "smtp-submission", "smtp", "smtps", "snmp", "snmptrap", "spideroak-lansync", "spotify-sync", "squid", "ssdp", "ssh", "steam-streaming", "svdrp", "svn", "syncthing-gui", "syncthing", "synergy", "syslog-tls", "syslog", "telnet", "tentacle", "tftp-client", "tftp", "tile38", "tinc", "tor-socks", "transmission-client", "upnp-client", "vdsm", "vnc-server", "wbem-http", "wbem-https", "wsman", "wsmans", "xdmcp", "xmpp-bosh", "xmpp-client", "xmpp-local", "xmpp-server", "zabbix-agent", "zabbix-server" ], "zones": [ "nm-shared", "block", "dmz", "drop", "external", "home", "internal", "public", "trusted", "work" ] } } }, "changed": false } TASK [linux-system-roles.firewall : update firewalld_config fact] ************** task path: /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/main.yml:74 Tuesday 14 June 2022 21:14:18 +0000 (0:00:00.378) 0:00:25.464 ********** ok: [/cache/rhel-8-y.qcow2.snap] => { "ansible_facts": { "firewall_config": { "custom": { "helpers": [], "icmptypes": [], "ipsets": [], "policies": [], "services": [], "zones": [ "internal", "customzone", "public", "dmz" ] }, "default": { "helpers": [ "Q.931", "RAS", "amanda", "ftp", "h323", "irc", "netbios-ns", "pptp", "proto-gre", "sane", "sip", "snmp", "tftp" ], "icmptypes": [ "address-unreachable", "bad-header", "beyond-scope", "communication-prohibited", "destination-unreachable", "echo-reply", "echo-request", "failed-policy", "fragmentation-needed", "unknown-option", "host-precedence-violation", "host-prohibited", "host-redirect", "host-unknown", "host-unreachable", "ip-header-bad", "neighbour-advertisement", "neighbour-solicitation", "network-prohibited", "network-redirect", "network-unknown", "network-unreachable", "no-route", "packet-too-big", "parameter-problem", "port-unreachable", "precedence-cutoff", "protocol-unreachable", "redirect", "reject-route", "required-option-missing", "router-advertisement", "router-solicitation", "source-quench", "source-route-failed", "time-exceeded", "timestamp-reply", "timestamp-request", "tos-host-redirect", "tos-host-unreachable", "tos-network-redirect", "tos-network-unreachable", "ttl-zero-during-reassembly", "ttl-zero-during-transit", "unknown-header-type" ], "ipsets": [], "policies": [ "allow-host-ipv6" ], "services": [ "imap", "redis", "RH-Satellite-6-capsule", "kibana", "RH-Satellite-6", "klogin", "amanda-client", "https", "rpc-bind", "amanda-k5-client", "nbd", "amqp", "nfs", "amqps", "nfs3", "apcupsd", "nmea-0183", "audit", "kpasswd", "bacula-client", "nrpe", "bacula", "ntp", "bb", "nut", "bgp", "kprop", "bitcoin-rpc", "imaps", "rquotad", "bitcoin-testnet-rpc", "kshell", "bitcoin-testnet", "openvpn", "bitcoin", "kube-apiserver", "bittorrent-lsd", "ldap", "ceph-mon", "ovirt-imageio", "ceph", "ldaps", "cfengine", "ovirt-vmconsole", "cockpit", "libvirt-tls", "collectd", "condor-collector", "plex", "ctdb", "pmcd", "dhcp", "libvirt", "dhcpv6-client", "pmproxy", "dhcpv6", "pmwebapi", "distcc", "lightning-network", "dns-over-tls", "pmwebapis", "dns", "llmnr", "docker-registry", "managesieve", "docker-swarm", "matrix", "dropbox-lansync", "mdns", "elasticsearch", "memcache", "etcd-client", "minidlna", "etcd-server", "pop3", "finger", "mongodb", "foreman-proxy", "pop3s", "foreman", "mosh", "freeipa-4", "mountd", "freeipa-ldap", "mqtt-tls", "freeipa-ldaps", "ipp-client", "freeipa-replication", "mqtt", "freeipa-trust", "postgresql", "ftp", "privoxy", "galera", "ms-wbt", "ganglia-client", "mssql", "ganglia-master", "prometheus", "git", "proxy-dhcp", "grafana", "ptp", "gre", "ipp", "rsh", "high-availability", "pulseaudio", "http", "ipsec", "puppetmaster", "irc", "quassel", "ircs", "murmur", "iscsi-target", "radius", "isns", "rdp", "jenkins", "redis-sentinel", "kadmin", "mysql", "kdeconnect", "kerberos", "rsyncd", "ovirt-storageconsole", "rtsp", "salt-master", "samba-client", "samba-dc", "samba", "sane", "sip", "sips", "slp", "smtp-submission", "smtp", "smtps", "snmp", "snmptrap", "spideroak-lansync", "spotify-sync", "squid", "ssdp", "ssh", "steam-streaming", "svdrp", "svn", "syncthing-gui", "syncthing", "synergy", "syslog-tls", "syslog", "telnet", "tentacle", "tftp-client", "tftp", "tile38", "tinc", "tor-socks", "transmission-client", "upnp-client", "vdsm", "vnc-server", "wbem-http", "wbem-https", "wsman", "wsmans", "xdmcp", "xmpp-bosh", "xmpp-client", "xmpp-local", "xmpp-server", "zabbix-agent", "zabbix-server" ], "zones": [ "nm-shared", "block", "dmz", "drop", "external", "home", "internal", "public", "trusted", "work" ] } } }, "changed": false } TASK [linux-system-roles.firewall : Get config files, checksums after] ********* task path: /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/main.yml:82 Tuesday 14 June 2022 21:14:18 +0000 (0:00:00.076) 0:00:25.540 ********** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "rc": 0 } STDOUT: 6319ed8130b49fff292260a1c7003b9c5de8d9d5068218135a877031d0853d1b /etc/firewalld/zones/internal.xml 610e6e9bafe289c126adb751e772cd0224012f12738a8b8011454b1da8865c18 /etc/firewalld/zones/customzone.xml af0a9197ceaa7b3118aee96b570bc7a8d7dc2e4a51ac6a61e53f35ce23eecc0f /etc/firewalld/zones/public.xml df2e066f9b8c0677c4887aa9a7032c4f94480408ff740036d98e648d11dd84c5 /etc/firewalld/zones/dmz.xml 66dd9213714d0a8afae60be06b8902f2cb4d1435ee414e6b77ec4d8671e9df77 /etc/firewalld/firewalld.conf STDERR: Shared connection to 127.0.0.3 closed. TASK [linux-system-roles.firewall : Calculate what has changed] **************** task path: /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/main.yml:90 Tuesday 14 June 2022 21:14:18 +0000 (0:00:00.294) 0:00:25.834 ********** ok: [/cache/rhel-8-y.qcow2.snap] => { "ansible_facts": { "firewall_lib_result": { "changed": false } }, "changed": false } TASK [linux-system-roles.firewall : Show diffs] ******************************** task path: /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/main.yml:99 Tuesday 14 June 2022 21:14:18 +0000 (0:00:00.048) 0:00:25.883 ********** skipping: [/cache/rhel-8-y.qcow2.snap] => {} META: role_complete for /cache/rhel-8-y.qcow2.snap TASK [Fail on newly changes] *************************************************** task path: /tmp/tmp__urhlhq/tests/tests_zone.yml:94 Tuesday 14 June 2022 21:14:18 +0000 (0:00:00.042) 0:00:25.926 ********** skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify firewalld zone internal services] ********************************* task path: /tmp/tmp__urhlhq/tests/tests_zone.yml:100 Tuesday 14 June 2022 21:14:18 +0000 (0:00:00.035) 0:00:25.962 ********** changed: [/cache/rhel-8-y.qcow2.snap] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-services" ], "delta": "0:00:00.255618", "end": "2022-06-14 17:14:19.870966", "failed_when_result": false, "rc": 0, "start": "2022-06-14 17:14:19.615348" } STDOUT: cockpit dhcpv6-client ftp mdns samba-client ssh tftp TASK [Verify firewalld zone internal ports] ************************************ task path: /tmp/tmp__urhlhq/tests/tests_zone.yml:107 Tuesday 14 June 2022 21:14:19 +0000 (0:00:00.751) 0:00:26.713 ********** changed: [/cache/rhel-8-y.qcow2.snap] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-ports" ], "delta": "0:00:00.256478", "end": "2022-06-14 17:14:20.521867", "failed_when_result": false, "rc": 0, "start": "2022-06-14 17:14:20.265389" } STDOUT: 443/tcp 443/udp TASK [Verify firewalld zone internal forward ports] **************************** task path: /tmp/tmp__urhlhq/tests/tests_zone.yml:114 Tuesday 14 June 2022 21:14:20 +0000 (0:00:00.648) 0:00:27.362 ********** changed: [/cache/rhel-8-y.qcow2.snap] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-forward-ports" ], "delta": "0:00:00.251252", "end": "2022-06-14 17:14:21.144727", "failed_when_result": false, "rc": 0, "start": "2022-06-14 17:14:20.893475" } STDOUT: port=447:proto=tcp:toport=:toaddr=1.2.3.4 port=448:proto=tcp:toport=:toaddr=1.2.3.5 TASK [Verify custom zone has masquerade added to it] *************************** task path: /tmp/tmp__urhlhq/tests/tests_zone.yml:123 Tuesday 14 June 2022 21:14:20 +0000 (0:00:00.623) 0:00:27.985 ********** changed: [/cache/rhel-8-y.qcow2.snap] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=customzone", "--query-masquerade" ], "delta": "0:00:00.250976", "end": "2022-06-14 17:14:21.784346", "failed_when_result": false, "rc": 0, "start": "2022-06-14 17:14:21.533370" } STDOUT: yes TASK [Verify custom zone has masquerade added to it] *************************** task path: /tmp/tmp__urhlhq/tests/tests_zone.yml:129 Tuesday 14 June 2022 21:14:21 +0000 (0:00:00.641) 0:00:28.627 ********** changed: [/cache/rhel-8-y.qcow2.snap] => { "changed": true, "cmd": [ "firewall-cmd", "--get-default-zone" ], "delta": "0:00:00.242013", "end": "2022-06-14 17:14:22.406904", "failed_when_result": false, "rc": 0, "start": "2022-06-14 17:14:22.164891" } STDOUT: dmz TASK [Verify that service http has been added to the default zone dmz] ********* task path: /tmp/tmp__urhlhq/tests/tests_zone.yml:135 Tuesday 14 June 2022 21:14:22 +0000 (0:00:00.625) 0:00:29.253 ********** changed: [/cache/rhel-8-y.qcow2.snap] => { "changed": true, "cmd": [ "firewall-cmd", "--zone=dmz", "--query-service=http" ], "delta": "0:00:00.242301", "end": "2022-06-14 17:14:23.032717", "failed_when_result": false, "rc": 0, "start": "2022-06-14 17:14:22.790416" } STDOUT: yes TASK [Remove customzone zone] ************************************************** task path: /tmp/tmp__urhlhq/tests/tests_zone.yml:147 Tuesday 14 June 2022 21:14:22 +0000 (0:00:00.621) 0:00:29.875 ********** changed: [/cache/rhel-8-y.qcow2.snap] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--delete-zone=customzone" ], "delta": "0:00:00.263055", "end": "2022-06-14 17:14:23.665841", "failed_when_result": false, "rc": 0, "start": "2022-06-14 17:14:23.402786" } STDOUT: success TASK [Reset to zone defaults] ************************************************** task path: /tmp/tmp__urhlhq/tests/tests_zone.yml:152 Tuesday 14 June 2022 21:14:23 +0000 (0:00:00.632) 0:00:30.507 ********** changed: [/cache/rhel-8-y.qcow2.snap] => { "changed": true, "cmd": "firewall-cmd --permanent --load-zone-defaults=internal\nfirewall-cmd --permanent --load-zone-defaults=external\nfirewall-cmd --permanent --load-zone-defaults=trusted\nfirewall-cmd --reload\n", "delta": "0:00:01.383199", "end": "2022-06-14 17:14:25.424877", "rc": 0, "start": "2022-06-14 17:14:24.041678" } STDOUT: success success STDERR: Error: NO_DEFAULTS: external Error: NO_DEFAULTS: trusted META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8-y.qcow2.snap : ok=42 changed=9 unreachable=0 failed=0 skipped=12 rescued=0 ignored=0 Tuesday 14 June 2022 21:14:25 +0000 (0:00:01.765) 0:00:32.273 ********** =============================================================================== linux-system-roles.firewall : Configure firewall ------------------------ 7.34s /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/main.yml:40 ---- linux-system-roles.firewall : Configure firewall ------------------------ 1.79s /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/main.yml:40 ---- Reset to zone defaults -------------------------------------------------- 1.77s /tmp/tmp__urhlhq/tests/tests_zone.yml:152 ------------------------------------- linux-system-roles.firewall : Install firewalld ------------------------- 1.45s /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 linux-system-roles.firewall : Install firewalld ------------------------- 1.43s /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 linux-system-roles.firewall : Install python3-firewall ------------------ 1.30s /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 linux-system-roles.firewall : Install python3-firewall ------------------ 1.27s /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 linux-system-roles.firewall : Install python3-firewall ------------------ 1.27s /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 linux-system-roles.firewall : Install firewalld ------------------------- 1.25s /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 linux-system-roles.firewall : Get config files, checksums before and remove --- 1.22s /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/main.yml:18 ---- Gathering Facts --------------------------------------------------------- 1.13s /tmp/tmp__urhlhq/tests/tests_zone.yml:1 --------------------------------------- linux-system-roles.firewall : Enable and start firewalld service -------- 1.05s /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 ----- linux-system-roles.firewall : Enable and start firewalld service -------- 0.81s /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 ----- Verify firewalld zone internal services --------------------------------- 0.75s /tmp/tmp__urhlhq/tests/tests_zone.yml:100 ------------------------------------- linux-system-roles.firewall : gather firewalld configuration ------------ 0.75s /tmp/tmp__urhlhq/tests/roles/linux-system-roles.firewall/tasks/main.yml:69 ---- Verify firewalld zone internal ports ------------------------------------ 0.65s /tmp/tmp__urhlhq/tests/tests_zone.yml:107 ------------------------------------- Verify custom zone has masquerade added to it --------------------------- 0.64s /tmp/tmp__urhlhq/tests/tests_zone.yml:123 ------------------------------------- Remove customzone zone -------------------------------------------------- 0.63s /tmp/tmp__urhlhq/tests/tests_zone.yml:147 ------------------------------------- Verify custom zone has masquerade added to it --------------------------- 0.63s /tmp/tmp__urhlhq/tests/tests_zone.yml:129 ------------------------------------- Verify firewalld zone internal forward ports ---------------------------- 0.62s /tmp/tmp__urhlhq/tests/tests_zone.yml:114 ------------------------------------- ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmpcldt_og5 executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 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_zone.yml ******************************************************* 1 plays in /tmp/tmph_ddpuji/tests/firewall/tests_zone.yml PLAY [Test firewalld zones] **************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmph_ddpuji/tests/firewall/tests_zone.yml:1 Tuesday 14 June 2022 21:17:15 +0000 (0:00:00.013) 0:00:00.013 ********** ok: [/cache/rhel-8-y.qcow2.snap] META: ran handlers TASK [Verify used firewalld zones] ********************************************* task path: /tmp/tmph_ddpuji/tests/firewall/tests_zone.yml:10 Tuesday 14 June 2022 21:17:16 +0000 (0:00:01.136) 0:00:01.149 ********** TASK [fedora.linux_system_roles.firewall : include_tasks] ********************** task path: /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:1 Tuesday 14 June 2022 21:17:16 +0000 (0:00:00.079) 0:00:01.229 ********** included: /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml for /cache/rhel-8-y.qcow2.snap TASK [fedora.linux_system_roles.firewall : Ensure ansible_facts used by role] *** task path: /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Tuesday 14 June 2022 21:17:16 +0000 (0:00:00.046) 0:00:01.276 ********** ok: [/cache/rhel-8-y.qcow2.snap] TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 Tuesday 14 June 2022 21:17:17 +0000 (0:00:00.502) 0:00:01.779 ********** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.firewall : Install python-firewall] ************ task path: /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:12 Tuesday 14 June 2022 21:17:18 +0000 (0:00:01.515) 0:00:03.294 ********** skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Install python3-firewall] *********** task path: /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:18 Tuesday 14 June 2022 21:17:18 +0000 (0:00:00.036) 0:00:03.331 ********** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.firewall : Enable and start firewalld service] *** task path: /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Tuesday 14 June 2022 21:17:19 +0000 (0:00:01.345) 0:00:04.677 ********** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2022-06-14 17:17:12 EDT", "ActiveEnterTimestampMonotonic": "164628442", "ActiveExitTimestamp": "Tue 2022-06-14 17:17:11 EDT", "ActiveExitTimestampMonotonic": "163974994", "ActiveState": "active", "After": "dbus.socket dbus.service system.slice polkit.service basic.target sysinit.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-06-14 17:17:12 EDT", "AssertTimestampMonotonic": "164371709", "Before": "multi-user.target shutdown.target network-pre.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2022-06-14 17:17:12 EDT", "ConditionTimestampMonotonic": "164371709", "ConfigurationDirectoryMode": "0755", "Conflicts": "iptables.service ebtables.service ip6tables.service shutdown.target nftables.service ipset.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "29896", "ExecMainStartTimestamp": "Tue 2022-06-14 17:17:12 EDT", "ExecMainStartTimestampMonotonic": "164373712", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; ignore_errors=no ; start_time=[Tue 2022-06-14 17:17:12 EDT] ; stop_time=[n/a] ; pid=29896 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Tue 2022-06-14 17:17:12 EDT", "InactiveEnterTimestampMonotonic": "164369665", "InactiveExitTimestamp": "Tue 2022-06-14 17:17:12 EDT", "InactiveExitTimestampMonotonic": "164373748", "InvocationID": "e76f72cb197642a4936ec5ec7e57452a", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "6968", "LimitNPROCSoft": "6968", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6968", "LimitSIGPENDINGSoft": "6968", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "29896", "MemoryAccounting": "yes", "MemoryCurrent": "25145344", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket system.slice sysinit.target", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Tue 2022-06-14 17:17:12 EDT", "StateChangeTimestampMonotonic": "164628442", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "2", "TasksMax": "11149", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogTimestamp": "Tue 2022-06-14 17:17:12 EDT", "WatchdogTimestampMonotonic": "164628440", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.firewall : Check if previous replaced is defined] *** task path: /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:9 Tuesday 14 June 2022 21:17:20 +0000 (0:00:00.794) 0:00:05.471 ********** ok: [/cache/rhel-8-y.qcow2.snap] => { "ansible_facts": { "__firewall_previous_replaced": false, "__firewall_python_cmd": "/usr/libexec/platform-python" }, "changed": false } TASK [fedora.linux_system_roles.firewall : Get config files, checksums before and remove] *** task path: /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:14 Tuesday 14 June 2022 21:17:20 +0000 (0:00:00.053) 0:00:05.524 ********** skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Configure firewall] ***************** task path: /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:36 Tuesday 14 June 2022 21:17:20 +0000 (0:00:00.037) 0:00:05.561 ********** ok: [/cache/rhel-8-y.qcow2.snap] => (item={'zone': 'internal', 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "internal" } } ok: [/cache/rhel-8-y.qcow2.snap] => (item={'zone': 'external', 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "external" } } ok: [/cache/rhel-8-y.qcow2.snap] => (item={'zone': 'trusted', 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "trusted" } } TASK [fedora.linux_system_roles.firewall : gather firewalld configuration] ***** task path: /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:63 Tuesday 14 June 2022 21:17:22 +0000 (0:00:01.803) 0:00:07.364 ********** ok: [/cache/rhel-8-y.qcow2.snap] => { "ansible_facts": { "firewalld_config": { "custom": { "helpers": [], "icmptypes": [], "ipsets": [], "policies": [], "services": [], "zones": [] }, "default": { "helpers": [ "Q.931", "RAS", "amanda", "ftp", "h323", "irc", "netbios-ns", "pptp", "proto-gre", "sane", "sip", "snmp", "tftp" ], "icmptypes": [ "address-unreachable", "bad-header", "beyond-scope", "communication-prohibited", "destination-unreachable", "echo-reply", "echo-request", "failed-policy", "fragmentation-needed", "unknown-option", "host-precedence-violation", "host-prohibited", "host-redirect", "host-unknown", "host-unreachable", "ip-header-bad", "neighbour-advertisement", "neighbour-solicitation", "network-prohibited", "network-redirect", "network-unknown", "network-unreachable", "no-route", "packet-too-big", "parameter-problem", "port-unreachable", "precedence-cutoff", "protocol-unreachable", "redirect", "reject-route", "required-option-missing", "router-advertisement", "router-solicitation", "source-quench", "source-route-failed", "time-exceeded", "timestamp-reply", "timestamp-request", "tos-host-redirect", "tos-host-unreachable", "tos-network-redirect", "tos-network-unreachable", "ttl-zero-during-reassembly", "ttl-zero-during-transit", "unknown-header-type" ], "ipsets": [], "policies": [ "allow-host-ipv6" ], "services": [ "imap", "redis", "RH-Satellite-6-capsule", "kibana", "RH-Satellite-6", "klogin", "amanda-client", "https", "rpc-bind", "amanda-k5-client", "nbd", "amqp", "nfs", "amqps", "nfs3", "apcupsd", "nmea-0183", "audit", "kpasswd", "bacula-client", "nrpe", "bacula", "ntp", "bb", "nut", "bgp", "kprop", "bitcoin-rpc", "imaps", "rquotad", "bitcoin-testnet-rpc", "kshell", "bitcoin-testnet", "openvpn", "bitcoin", "kube-apiserver", "bittorrent-lsd", "ldap", "ceph-mon", "ovirt-imageio", "ceph", "ldaps", "cfengine", "ovirt-vmconsole", "cockpit", "libvirt-tls", "collectd", "condor-collector", "plex", "ctdb", "pmcd", "dhcp", "libvirt", "dhcpv6-client", "pmproxy", "dhcpv6", "pmwebapi", "distcc", "lightning-network", "dns-over-tls", "pmwebapis", "dns", "llmnr", "docker-registry", "managesieve", "docker-swarm", "matrix", "dropbox-lansync", "mdns", "elasticsearch", "memcache", "etcd-client", "minidlna", "etcd-server", "pop3", "finger", "mongodb", "foreman-proxy", "pop3s", "foreman", "mosh", "freeipa-4", "mountd", "freeipa-ldap", "mqtt-tls", "freeipa-ldaps", "ipp-client", "freeipa-replication", "mqtt", "freeipa-trust", "postgresql", "ftp", "privoxy", "galera", "ms-wbt", "ganglia-client", "mssql", "ganglia-master", "prometheus", "git", "proxy-dhcp", "grafana", "ptp", "gre", "ipp", "rsh", "high-availability", "pulseaudio", "http", "ipsec", "puppetmaster", "irc", "quassel", "ircs", "murmur", "iscsi-target", "radius", "isns", "rdp", "jenkins", "redis-sentinel", "kadmin", "mysql", "kdeconnect", "kerberos", "rsyncd", "ovirt-storageconsole", "rtsp", "salt-master", "samba-client", "samba-dc", "samba", "sane", "sip", "sips", "slp", "smtp-submission", "smtp", "smtps", "snmp", "snmptrap", "spideroak-lansync", "spotify-sync", "squid", "ssdp", "ssh", "steam-streaming", "svdrp", "svn", "syncthing-gui", "syncthing", "synergy", "syslog-tls", "syslog", "telnet", "tentacle", "tftp-client", "tftp", "tile38", "tinc", "tor-socks", "transmission-client", "upnp-client", "vdsm", "vnc-server", "wbem-http", "wbem-https", "wsman", "wsmans", "xdmcp", "xmpp-bosh", "xmpp-client", "xmpp-local", "xmpp-server", "zabbix-agent", "zabbix-server" ], "zones": [ "nm-shared", "block", "dmz", "drop", "external", "home", "internal", "public", "trusted", "work" ] } } }, "changed": false } TASK [fedora.linux_system_roles.firewall : update firewalld_config fact] ******* task path: /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:68 Tuesday 14 June 2022 21:17:23 +0000 (0:00:00.535) 0:00:07.900 ********** ok: [/cache/rhel-8-y.qcow2.snap] => { "ansible_facts": { "firewall_config": { "custom": { "helpers": [], "icmptypes": [], "ipsets": [], "policies": [], "services": [], "zones": [] }, "default": { "helpers": [ "Q.931", "RAS", "amanda", "ftp", "h323", "irc", "netbios-ns", "pptp", "proto-gre", "sane", "sip", "snmp", "tftp" ], "icmptypes": [ "address-unreachable", "bad-header", "beyond-scope", "communication-prohibited", "destination-unreachable", "echo-reply", "echo-request", "failed-policy", "fragmentation-needed", "unknown-option", "host-precedence-violation", "host-prohibited", "host-redirect", "host-unknown", "host-unreachable", "ip-header-bad", "neighbour-advertisement", "neighbour-solicitation", "network-prohibited", "network-redirect", "network-unknown", "network-unreachable", "no-route", "packet-too-big", "parameter-problem", "port-unreachable", "precedence-cutoff", "protocol-unreachable", "redirect", "reject-route", "required-option-missing", "router-advertisement", "router-solicitation", "source-quench", "source-route-failed", "time-exceeded", "timestamp-reply", "timestamp-request", "tos-host-redirect", "tos-host-unreachable", "tos-network-redirect", "tos-network-unreachable", "ttl-zero-during-reassembly", "ttl-zero-during-transit", "unknown-header-type" ], "ipsets": [], "policies": [ "allow-host-ipv6" ], "services": [ "imap", "redis", "RH-Satellite-6-capsule", "kibana", "RH-Satellite-6", "klogin", "amanda-client", "https", "rpc-bind", "amanda-k5-client", "nbd", "amqp", "nfs", "amqps", "nfs3", "apcupsd", "nmea-0183", "audit", "kpasswd", "bacula-client", "nrpe", "bacula", "ntp", "bb", "nut", "bgp", "kprop", "bitcoin-rpc", "imaps", "rquotad", "bitcoin-testnet-rpc", "kshell", "bitcoin-testnet", "openvpn", "bitcoin", "kube-apiserver", "bittorrent-lsd", "ldap", "ceph-mon", "ovirt-imageio", "ceph", "ldaps", "cfengine", "ovirt-vmconsole", "cockpit", "libvirt-tls", "collectd", "condor-collector", "plex", "ctdb", "pmcd", "dhcp", "libvirt", "dhcpv6-client", "pmproxy", "dhcpv6", "pmwebapi", "distcc", "lightning-network", "dns-over-tls", "pmwebapis", "dns", "llmnr", "docker-registry", "managesieve", "docker-swarm", "matrix", "dropbox-lansync", "mdns", "elasticsearch", "memcache", "etcd-client", "minidlna", "etcd-server", "pop3", "finger", "mongodb", "foreman-proxy", "pop3s", "foreman", "mosh", "freeipa-4", "mountd", "freeipa-ldap", "mqtt-tls", "freeipa-ldaps", "ipp-client", "freeipa-replication", "mqtt", "freeipa-trust", "postgresql", "ftp", "privoxy", "galera", "ms-wbt", "ganglia-client", "mssql", "ganglia-master", "prometheus", "git", "proxy-dhcp", "grafana", "ptp", "gre", "ipp", "rsh", "high-availability", "pulseaudio", "http", "ipsec", "puppetmaster", "irc", "quassel", "ircs", "murmur", "iscsi-target", "radius", "isns", "rdp", "jenkins", "redis-sentinel", "kadmin", "mysql", "kdeconnect", "kerberos", "rsyncd", "ovirt-storageconsole", "rtsp", "salt-master", "samba-client", "samba-dc", "samba", "sane", "sip", "sips", "slp", "smtp-submission", "smtp", "smtps", "snmp", "snmptrap", "spideroak-lansync", "spotify-sync", "squid", "ssdp", "ssh", "steam-streaming", "svdrp", "svn", "syncthing-gui", "syncthing", "synergy", "syslog-tls", "syslog", "telnet", "tentacle", "tftp-client", "tftp", "tile38", "tinc", "tor-socks", "transmission-client", "upnp-client", "vdsm", "vnc-server", "wbem-http", "wbem-https", "wsman", "wsmans", "xdmcp", "xmpp-bosh", "xmpp-client", "xmpp-local", "xmpp-server", "zabbix-agent", "zabbix-server" ], "zones": [ "nm-shared", "block", "dmz", "drop", "external", "home", "internal", "public", "trusted", "work" ] } } }, "changed": false } TASK [fedora.linux_system_roles.firewall : Get config files, checksums after] *** task path: /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:76 Tuesday 14 June 2022 21:17:23 +0000 (0:00:00.059) 0:00:07.959 ********** skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Calculate what has changed] ********* task path: /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:84 Tuesday 14 June 2022 21:17:23 +0000 (0:00:00.041) 0:00:08.001 ********** skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Show diffs] ************************* task path: /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:90 Tuesday 14 June 2022 21:17:23 +0000 (0:00:00.034) 0:00:08.035 ********** skipping: [/cache/rhel-8-y.qcow2.snap] => {} META: role_complete for /cache/rhel-8-y.qcow2.snap TASK [Fail on missing zones] *************************************************** task path: /tmp/tmph_ddpuji/tests/firewall/tests_zone.yml:22 Tuesday 14 June 2022 21:17:23 +0000 (0:00:00.043) 0:00:08.079 ********** skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Setup firewalld] ********************************************************* task path: /tmp/tmph_ddpuji/tests/firewall/tests_zone.yml:28 Tuesday 14 June 2022 21:17:23 +0000 (0:00:00.033) 0:00:08.113 ********** TASK [fedora.linux_system_roles.firewall : include_tasks] ********************** task path: /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:1 Tuesday 14 June 2022 21:17:23 +0000 (0:00:00.058) 0:00:08.171 ********** included: /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml for /cache/rhel-8-y.qcow2.snap TASK [fedora.linux_system_roles.firewall : Ensure ansible_facts used by role] *** task path: /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Tuesday 14 June 2022 21:17:23 +0000 (0:00:00.047) 0:00:08.218 ********** ok: [/cache/rhel-8-y.qcow2.snap] TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 Tuesday 14 June 2022 21:17:24 +0000 (0:00:00.525) 0:00:08.744 ********** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.firewall : Install python-firewall] ************ task path: /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:12 Tuesday 14 June 2022 21:17:25 +0000 (0:00:01.346) 0:00:10.090 ********** skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Install python3-firewall] *********** task path: /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:18 Tuesday 14 June 2022 21:17:25 +0000 (0:00:00.037) 0:00:10.128 ********** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.firewall : Enable and start firewalld service] *** task path: /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Tuesday 14 June 2022 21:17:26 +0000 (0:00:01.326) 0:00:11.455 ********** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2022-06-14 17:17:12 EDT", "ActiveEnterTimestampMonotonic": "164628442", "ActiveExitTimestamp": "Tue 2022-06-14 17:17:11 EDT", "ActiveExitTimestampMonotonic": "163974994", "ActiveState": "active", "After": "dbus.socket dbus.service system.slice polkit.service basic.target sysinit.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-06-14 17:17:12 EDT", "AssertTimestampMonotonic": "164371709", "Before": "multi-user.target shutdown.target network-pre.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2022-06-14 17:17:12 EDT", "ConditionTimestampMonotonic": "164371709", "ConfigurationDirectoryMode": "0755", "Conflicts": "iptables.service ebtables.service ip6tables.service shutdown.target nftables.service ipset.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "29896", "ExecMainStartTimestamp": "Tue 2022-06-14 17:17:12 EDT", "ExecMainStartTimestampMonotonic": "164373712", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; ignore_errors=no ; start_time=[Tue 2022-06-14 17:17:12 EDT] ; stop_time=[n/a] ; pid=29896 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Tue 2022-06-14 17:17:12 EDT", "InactiveEnterTimestampMonotonic": "164369665", "InactiveExitTimestamp": "Tue 2022-06-14 17:17:12 EDT", "InactiveExitTimestampMonotonic": "164373748", "InvocationID": "e76f72cb197642a4936ec5ec7e57452a", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "6968", "LimitNPROCSoft": "6968", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6968", "LimitSIGPENDINGSoft": "6968", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "29896", "MemoryAccounting": "yes", "MemoryCurrent": "26017792", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket system.slice sysinit.target", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Tue 2022-06-14 17:17:12 EDT", "StateChangeTimestampMonotonic": "164628442", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "2", "TasksMax": "11149", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogTimestamp": "Tue 2022-06-14 17:17:12 EDT", "WatchdogTimestampMonotonic": "164628440", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.firewall : Check if previous replaced is defined] *** task path: /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:9 Tuesday 14 June 2022 21:17:27 +0000 (0:00:00.519) 0:00:11.974 ********** ok: [/cache/rhel-8-y.qcow2.snap] => { "ansible_facts": { "__firewall_previous_replaced": true, "__firewall_python_cmd": "/usr/libexec/platform-python" }, "changed": false } TASK [fedora.linux_system_roles.firewall : Get config files, checksums before and remove] *** task path: /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:14 Tuesday 14 June 2022 21:17:27 +0000 (0:00:00.052) 0:00:12.027 ********** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "rc": 0 } STDERR: Shared connection to 127.0.0.3 closed. TASK [fedora.linux_system_roles.firewall : Configure firewall] ***************** task path: /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:36 Tuesday 14 June 2022 21:17:27 +0000 (0:00:00.239) 0:00:12.267 ********** ok: [/cache/rhel-8-y.qcow2.snap] => (item={'zone': 'internal', 'service': ['tftp', 'ftp'], 'port': ['443/tcp', '443/udp'], 'forward_port': ['447/tcp;;1.2.3.4', '448/tcp;;1.2.3.5'], 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "forward_port": [ "447/tcp;;1.2.3.4", "448/tcp;;1.2.3.5" ], "port": [ "443/tcp", "443/udp" ], "service": [ "tftp", "ftp" ], "state": "enabled", "zone": "internal" } } ok: [/cache/rhel-8-y.qcow2.snap] => (item={'zone': 'internal', 'service': ['tftp', 'ftp'], 'port': ['443/tcp', '443/udp'], 'forward_port': ['447/tcp;;1.2.3.4', '448/tcp;;1.2.3.5'], 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "forward_port": [ "447/tcp;;1.2.3.4", "448/tcp;;1.2.3.5" ], "port": [ "443/tcp", "443/udp" ], "service": [ "tftp", "ftp" ], "state": "enabled", "zone": "internal" } } ok: [/cache/rhel-8-y.qcow2.snap] => (item={'zone': 'customzone', 'permanent': True, 'state': 'present'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "permanent": true, "state": "present", "zone": "customzone" } } ok: [/cache/rhel-8-y.qcow2.snap] => (item={'zone': 'customzone', 'permanent': True, 'masquerade': True, 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "masquerade": true, "permanent": true, "state": "enabled", "zone": "customzone" } } ok: [/cache/rhel-8-y.qcow2.snap] => (item={'set_default_zone': 'dmz', 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "set_default_zone": "dmz", "state": "enabled" } } ok: [/cache/rhel-8-y.qcow2.snap] => (item={'service': 'http', 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "service": "http", "state": "enabled" } } TASK [fedora.linux_system_roles.firewall : gather firewalld configuration] ***** task path: /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:63 Tuesday 14 June 2022 21:17:31 +0000 (0:00:03.839) 0:00:16.107 ********** ok: [/cache/rhel-8-y.qcow2.snap] => { "ansible_facts": { "firewalld_config": { "custom": { "helpers": [], "icmptypes": [], "ipsets": [], "policies": [], "services": [], "zones": [ "internal", "customzone", "public", "dmz" ] }, "default": { "helpers": [ "Q.931", "RAS", "amanda", "ftp", "h323", "irc", "netbios-ns", "pptp", "proto-gre", "sane", "sip", "snmp", "tftp" ], "icmptypes": [ "address-unreachable", "bad-header", "beyond-scope", "communication-prohibited", "destination-unreachable", "echo-reply", "echo-request", "failed-policy", "fragmentation-needed", "unknown-option", "host-precedence-violation", "host-prohibited", "host-redirect", "host-unknown", "host-unreachable", "ip-header-bad", "neighbour-advertisement", "neighbour-solicitation", "network-prohibited", "network-redirect", "network-unknown", "network-unreachable", "no-route", "packet-too-big", "parameter-problem", "port-unreachable", "precedence-cutoff", "protocol-unreachable", "redirect", "reject-route", "required-option-missing", "router-advertisement", "router-solicitation", "source-quench", "source-route-failed", "time-exceeded", "timestamp-reply", "timestamp-request", "tos-host-redirect", "tos-host-unreachable", "tos-network-redirect", "tos-network-unreachable", "ttl-zero-during-reassembly", "ttl-zero-during-transit", "unknown-header-type" ], "ipsets": [], "policies": [ "allow-host-ipv6" ], "services": [ "imap", "redis", "RH-Satellite-6-capsule", "kibana", "RH-Satellite-6", "klogin", "amanda-client", "https", "rpc-bind", "amanda-k5-client", "nbd", "amqp", "nfs", "amqps", "nfs3", "apcupsd", "nmea-0183", "audit", "kpasswd", "bacula-client", "nrpe", "bacula", "ntp", "bb", "nut", "bgp", "kprop", "bitcoin-rpc", "imaps", "rquotad", "bitcoin-testnet-rpc", "kshell", "bitcoin-testnet", "openvpn", "bitcoin", "kube-apiserver", "bittorrent-lsd", "ldap", "ceph-mon", "ovirt-imageio", "ceph", "ldaps", "cfengine", "ovirt-vmconsole", "cockpit", "libvirt-tls", "collectd", "condor-collector", "plex", "ctdb", "pmcd", "dhcp", "libvirt", "dhcpv6-client", "pmproxy", "dhcpv6", "pmwebapi", "distcc", "lightning-network", "dns-over-tls", "pmwebapis", "dns", "llmnr", "docker-registry", "managesieve", "docker-swarm", "matrix", "dropbox-lansync", "mdns", "elasticsearch", "memcache", "etcd-client", "minidlna", "etcd-server", "pop3", "finger", "mongodb", "foreman-proxy", "pop3s", "foreman", "mosh", "freeipa-4", "mountd", "freeipa-ldap", "mqtt-tls", "freeipa-ldaps", "ipp-client", "freeipa-replication", "mqtt", "freeipa-trust", "postgresql", "ftp", "privoxy", "galera", "ms-wbt", "ganglia-client", "mssql", "ganglia-master", "prometheus", "git", "proxy-dhcp", "grafana", "ptp", "gre", "ipp", "rsh", "high-availability", "pulseaudio", "http", "ipsec", "puppetmaster", "irc", "quassel", "ircs", "murmur", "iscsi-target", "radius", "isns", "rdp", "jenkins", "redis-sentinel", "kadmin", "mysql", "kdeconnect", "kerberos", "rsyncd", "ovirt-storageconsole", "rtsp", "salt-master", "samba-client", "samba-dc", "samba", "sane", "sip", "sips", "slp", "smtp-submission", "smtp", "smtps", "snmp", "snmptrap", "spideroak-lansync", "spotify-sync", "squid", "ssdp", "ssh", "steam-streaming", "svdrp", "svn", "syncthing-gui", "syncthing", "synergy", "syslog-tls", "syslog", "telnet", "tentacle", "tftp-client", "tftp", "tile38", "tinc", "tor-socks", "transmission-client", "upnp-client", "vdsm", "vnc-server", "wbem-http", "wbem-https", "wsman", "wsmans", "xdmcp", "xmpp-bosh", "xmpp-client", "xmpp-local", "xmpp-server", "zabbix-agent", "zabbix-server" ], "zones": [ "nm-shared", "block", "dmz", "drop", "external", "home", "internal", "public", "trusted", "work" ] } } }, "changed": false } TASK [fedora.linux_system_roles.firewall : update firewalld_config fact] ******* task path: /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:68 Tuesday 14 June 2022 21:17:31 +0000 (0:00:00.429) 0:00:16.536 ********** ok: [/cache/rhel-8-y.qcow2.snap] => { "ansible_facts": { "firewall_config": { "custom": { "helpers": [], "icmptypes": [], "ipsets": [], "policies": [], "services": [], "zones": [ "internal", "customzone", "public", "dmz" ] }, "default": { "helpers": [ "Q.931", "RAS", "amanda", "ftp", "h323", "irc", "netbios-ns", "pptp", "proto-gre", "sane", "sip", "snmp", "tftp" ], "icmptypes": [ "address-unreachable", "bad-header", "beyond-scope", "communication-prohibited", "destination-unreachable", "echo-reply", "echo-request", "failed-policy", "fragmentation-needed", "unknown-option", "host-precedence-violation", "host-prohibited", "host-redirect", "host-unknown", "host-unreachable", "ip-header-bad", "neighbour-advertisement", "neighbour-solicitation", "network-prohibited", "network-redirect", "network-unknown", "network-unreachable", "no-route", "packet-too-big", "parameter-problem", "port-unreachable", "precedence-cutoff", "protocol-unreachable", "redirect", "reject-route", "required-option-missing", "router-advertisement", "router-solicitation", "source-quench", "source-route-failed", "time-exceeded", "timestamp-reply", "timestamp-request", "tos-host-redirect", "tos-host-unreachable", "tos-network-redirect", "tos-network-unreachable", "ttl-zero-during-reassembly", "ttl-zero-during-transit", "unknown-header-type" ], "ipsets": [], "policies": [ "allow-host-ipv6" ], "services": [ "imap", "redis", "RH-Satellite-6-capsule", "kibana", "RH-Satellite-6", "klogin", "amanda-client", "https", "rpc-bind", "amanda-k5-client", "nbd", "amqp", "nfs", "amqps", "nfs3", "apcupsd", "nmea-0183", "audit", "kpasswd", "bacula-client", "nrpe", "bacula", "ntp", "bb", "nut", "bgp", "kprop", "bitcoin-rpc", "imaps", "rquotad", "bitcoin-testnet-rpc", "kshell", "bitcoin-testnet", "openvpn", "bitcoin", "kube-apiserver", "bittorrent-lsd", "ldap", "ceph-mon", "ovirt-imageio", "ceph", "ldaps", "cfengine", "ovirt-vmconsole", "cockpit", "libvirt-tls", "collectd", "condor-collector", "plex", "ctdb", "pmcd", "dhcp", "libvirt", "dhcpv6-client", "pmproxy", "dhcpv6", "pmwebapi", "distcc", "lightning-network", "dns-over-tls", "pmwebapis", "dns", "llmnr", "docker-registry", "managesieve", "docker-swarm", "matrix", "dropbox-lansync", "mdns", "elasticsearch", "memcache", "etcd-client", "minidlna", "etcd-server", "pop3", "finger", "mongodb", "foreman-proxy", "pop3s", "foreman", "mosh", "freeipa-4", "mountd", "freeipa-ldap", "mqtt-tls", "freeipa-ldaps", "ipp-client", "freeipa-replication", "mqtt", "freeipa-trust", "postgresql", "ftp", "privoxy", "galera", "ms-wbt", "ganglia-client", "mssql", "ganglia-master", "prometheus", "git", "proxy-dhcp", "grafana", "ptp", "gre", "ipp", "rsh", "high-availability", "pulseaudio", "http", "ipsec", "puppetmaster", "irc", "quassel", "ircs", "murmur", "iscsi-target", "radius", "isns", "rdp", "jenkins", "redis-sentinel", "kadmin", "mysql", "kdeconnect", "kerberos", "rsyncd", "ovirt-storageconsole", "rtsp", "salt-master", "samba-client", "samba-dc", "samba", "sane", "sip", "sips", "slp", "smtp-submission", "smtp", "smtps", "snmp", "snmptrap", "spideroak-lansync", "spotify-sync", "squid", "ssdp", "ssh", "steam-streaming", "svdrp", "svn", "syncthing-gui", "syncthing", "synergy", "syslog-tls", "syslog", "telnet", "tentacle", "tftp-client", "tftp", "tile38", "tinc", "tor-socks", "transmission-client", "upnp-client", "vdsm", "vnc-server", "wbem-http", "wbem-https", "wsman", "wsmans", "xdmcp", "xmpp-bosh", "xmpp-client", "xmpp-local", "xmpp-server", "zabbix-agent", "zabbix-server" ], "zones": [ "nm-shared", "block", "dmz", "drop", "external", "home", "internal", "public", "trusted", "work" ] } } }, "changed": false } TASK [fedora.linux_system_roles.firewall : Get config files, checksums after] *** task path: /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:76 Tuesday 14 June 2022 21:17:31 +0000 (0:00:00.116) 0:00:16.653 ********** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "rc": 0 } STDOUT: 6319ed8130b49fff292260a1c7003b9c5de8d9d5068218135a877031d0853d1b /etc/firewalld/zones/internal.xml 610e6e9bafe289c126adb751e772cd0224012f12738a8b8011454b1da8865c18 /etc/firewalld/zones/customzone.xml af0a9197ceaa7b3118aee96b570bc7a8d7dc2e4a51ac6a61e53f35ce23eecc0f /etc/firewalld/zones/public.xml df2e066f9b8c0677c4887aa9a7032c4f94480408ff740036d98e648d11dd84c5 /etc/firewalld/zones/dmz.xml 66dd9213714d0a8afae60be06b8902f2cb4d1435ee414e6b77ec4d8671e9df77 /etc/firewalld/firewalld.conf STDERR: Shared connection to 127.0.0.3 closed. TASK [fedora.linux_system_roles.firewall : Calculate what has changed] ********* task path: /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:84 Tuesday 14 June 2022 21:17:32 +0000 (0:00:00.303) 0:00:16.956 ********** changed: [/cache/rhel-8-y.qcow2.snap] => { "ansible_facts": { "firewall_lib_result": { "changed": true } }, "changed": true } TASK [fedora.linux_system_roles.firewall : Show diffs] ************************* task path: /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:90 Tuesday 14 June 2022 21:17:32 +0000 (0:00:00.051) 0:00:17.008 ********** skipping: [/cache/rhel-8-y.qcow2.snap] => {} META: role_complete for /cache/rhel-8-y.qcow2.snap TASK [Fail if no changes are done] ********************************************* task path: /tmp/tmph_ddpuji/tests/firewall/tests_zone.yml:56 Tuesday 14 June 2022 21:17:32 +0000 (0:00:00.045) 0:00:17.053 ********** skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Setup firewalld again] *************************************************** task path: /tmp/tmph_ddpuji/tests/firewall/tests_zone.yml:62 Tuesday 14 June 2022 21:17:32 +0000 (0:00:00.035) 0:00:17.088 ********** TASK [fedora.linux_system_roles.firewall : include_tasks] ********************** task path: /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:1 Tuesday 14 June 2022 21:17:32 +0000 (0:00:00.058) 0:00:17.147 ********** included: /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml for /cache/rhel-8-y.qcow2.snap TASK [fedora.linux_system_roles.firewall : Ensure ansible_facts used by role] *** task path: /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Tuesday 14 June 2022 21:17:32 +0000 (0:00:00.047) 0:00:17.195 ********** ok: [/cache/rhel-8-y.qcow2.snap] TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 Tuesday 14 June 2022 21:17:32 +0000 (0:00:00.512) 0:00:17.707 ********** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.firewall : Install python-firewall] ************ task path: /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:12 Tuesday 14 June 2022 21:17:34 +0000 (0:00:01.426) 0:00:19.133 ********** skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Install python3-firewall] *********** task path: /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:18 Tuesday 14 June 2022 21:17:34 +0000 (0:00:00.039) 0:00:19.172 ********** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.firewall : Enable and start firewalld service] *** task path: /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Tuesday 14 June 2022 21:17:35 +0000 (0:00:01.337) 0:00:20.509 ********** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2022-06-14 17:17:12 EDT", "ActiveEnterTimestampMonotonic": "164628442", "ActiveExitTimestamp": "Tue 2022-06-14 17:17:11 EDT", "ActiveExitTimestampMonotonic": "163974994", "ActiveState": "active", "After": "dbus.socket dbus.service system.slice polkit.service basic.target sysinit.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-06-14 17:17:12 EDT", "AssertTimestampMonotonic": "164371709", "Before": "multi-user.target shutdown.target network-pre.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2022-06-14 17:17:12 EDT", "ConditionTimestampMonotonic": "164371709", "ConfigurationDirectoryMode": "0755", "Conflicts": "iptables.service ebtables.service ip6tables.service shutdown.target nftables.service ipset.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "29896", "ExecMainStartTimestamp": "Tue 2022-06-14 17:17:12 EDT", "ExecMainStartTimestampMonotonic": "164373712", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; ignore_errors=no ; start_time=[Tue 2022-06-14 17:17:12 EDT] ; stop_time=[n/a] ; pid=29896 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Tue 2022-06-14 17:17:12 EDT", "InactiveEnterTimestampMonotonic": "164369665", "InactiveExitTimestamp": "Tue 2022-06-14 17:17:12 EDT", "InactiveExitTimestampMonotonic": "164373748", "InvocationID": "e76f72cb197642a4936ec5ec7e57452a", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "6968", "LimitNPROCSoft": "6968", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6968", "LimitSIGPENDINGSoft": "6968", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "29896", "MemoryAccounting": "yes", "MemoryCurrent": "27385856", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket system.slice sysinit.target", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Tue 2022-06-14 17:17:12 EDT", "StateChangeTimestampMonotonic": "164628442", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "4", "TasksMax": "11149", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogTimestamp": "Tue 2022-06-14 17:17:12 EDT", "WatchdogTimestampMonotonic": "164628440", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.firewall : Check if previous replaced is defined] *** task path: /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:9 Tuesday 14 June 2022 21:17:36 +0000 (0:00:00.540) 0:00:21.050 ********** ok: [/cache/rhel-8-y.qcow2.snap] => { "ansible_facts": { "__firewall_previous_replaced": true, "__firewall_python_cmd": "/usr/libexec/platform-python" }, "changed": false } TASK [fedora.linux_system_roles.firewall : Get config files, checksums before and remove] *** task path: /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:14 Tuesday 14 June 2022 21:17:36 +0000 (0:00:00.053) 0:00:21.104 ********** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "rc": 0 } STDOUT: 6319ed8130b49fff292260a1c7003b9c5de8d9d5068218135a877031d0853d1b /etc/firewalld/zones/internal.xml 610e6e9bafe289c126adb751e772cd0224012f12738a8b8011454b1da8865c18 /etc/firewalld/zones/customzone.xml af0a9197ceaa7b3118aee96b570bc7a8d7dc2e4a51ac6a61e53f35ce23eecc0f /etc/firewalld/zones/public.xml df2e066f9b8c0677c4887aa9a7032c4f94480408ff740036d98e648d11dd84c5 /etc/firewalld/zones/dmz.xml 66dd9213714d0a8afae60be06b8902f2cb4d1435ee414e6b77ec4d8671e9df77 /etc/firewalld/firewalld.conf STDERR: Shared connection to 127.0.0.3 closed. TASK [fedora.linux_system_roles.firewall : Configure firewall] ***************** task path: /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:36 Tuesday 14 June 2022 21:17:37 +0000 (0:00:01.006) 0:00:22.111 ********** ok: [/cache/rhel-8-y.qcow2.snap] => (item={'zone': 'internal', 'service': ['tftp', 'ftp'], 'port': ['443/tcp', '443/udp'], 'forward_port': ['447/tcp;;1.2.3.4', '448/tcp;;1.2.3.5'], 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "forward_port": [ "447/tcp;;1.2.3.4", "448/tcp;;1.2.3.5" ], "port": [ "443/tcp", "443/udp" ], "service": [ "tftp", "ftp" ], "state": "enabled", "zone": "internal" } } ok: [/cache/rhel-8-y.qcow2.snap] => (item={'zone': 'internal', 'service': ['tftp', 'ftp'], 'port': ['443/tcp', '443/udp'], 'forward_port': ['447/tcp;;1.2.3.4', '448/tcp;;1.2.3.5'], 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "forward_port": [ "447/tcp;;1.2.3.4", "448/tcp;;1.2.3.5" ], "port": [ "443/tcp", "443/udp" ], "service": [ "tftp", "ftp" ], "state": "enabled", "zone": "internal" } } ok: [/cache/rhel-8-y.qcow2.snap] => (item={'zone': 'customzone', 'permanent': True, 'state': 'present'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "permanent": true, "state": "present", "zone": "customzone" } } ok: [/cache/rhel-8-y.qcow2.snap] => (item={'zone': 'customzone', 'permanent': True, 'masquerade': True, 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "masquerade": true, "permanent": true, "state": "enabled", "zone": "customzone" } } ok: [/cache/rhel-8-y.qcow2.snap] => (item={'set_default_zone': 'dmz', 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "set_default_zone": "dmz", "state": "enabled" } } ok: [/cache/rhel-8-y.qcow2.snap] => (item={'service': 'http', 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "service": "http", "state": "enabled" } } TASK [fedora.linux_system_roles.firewall : gather firewalld configuration] ***** task path: /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:63 Tuesday 14 June 2022 21:17:41 +0000 (0:00:03.796) 0:00:25.907 ********** ok: [/cache/rhel-8-y.qcow2.snap] => { "ansible_facts": { "firewalld_config": { "custom": { "helpers": [], "icmptypes": [], "ipsets": [], "policies": [], "services": [], "zones": [ "internal", "customzone", "public", "dmz" ] }, "default": { "helpers": [ "Q.931", "RAS", "amanda", "ftp", "h323", "irc", "netbios-ns", "pptp", "proto-gre", "sane", "sip", "snmp", "tftp" ], "icmptypes": [ "address-unreachable", "bad-header", "beyond-scope", "communication-prohibited", "destination-unreachable", "echo-reply", "echo-request", "failed-policy", "fragmentation-needed", "unknown-option", "host-precedence-violation", "host-prohibited", "host-redirect", "host-unknown", "host-unreachable", "ip-header-bad", "neighbour-advertisement", "neighbour-solicitation", "network-prohibited", "network-redirect", "network-unknown", "network-unreachable", "no-route", "packet-too-big", "parameter-problem", "port-unreachable", "precedence-cutoff", "protocol-unreachable", "redirect", "reject-route", "required-option-missing", "router-advertisement", "router-solicitation", "source-quench", "source-route-failed", "time-exceeded", "timestamp-reply", "timestamp-request", "tos-host-redirect", "tos-host-unreachable", "tos-network-redirect", "tos-network-unreachable", "ttl-zero-during-reassembly", "ttl-zero-during-transit", "unknown-header-type" ], "ipsets": [], "policies": [ "allow-host-ipv6" ], "services": [ "imap", "redis", "RH-Satellite-6-capsule", "kibana", "RH-Satellite-6", "klogin", "amanda-client", "https", "rpc-bind", "amanda-k5-client", "nbd", "amqp", "nfs", "amqps", "nfs3", "apcupsd", "nmea-0183", "audit", "kpasswd", "bacula-client", "nrpe", "bacula", "ntp", "bb", "nut", "bgp", "kprop", "bitcoin-rpc", "imaps", "rquotad", "bitcoin-testnet-rpc", "kshell", "bitcoin-testnet", "openvpn", "bitcoin", "kube-apiserver", "bittorrent-lsd", "ldap", "ceph-mon", "ovirt-imageio", "ceph", "ldaps", "cfengine", "ovirt-vmconsole", "cockpit", "libvirt-tls", "collectd", "condor-collector", "plex", "ctdb", "pmcd", "dhcp", "libvirt", "dhcpv6-client", "pmproxy", "dhcpv6", "pmwebapi", "distcc", "lightning-network", "dns-over-tls", "pmwebapis", "dns", "llmnr", "docker-registry", "managesieve", "docker-swarm", "matrix", "dropbox-lansync", "mdns", "elasticsearch", "memcache", "etcd-client", "minidlna", "etcd-server", "pop3", "finger", "mongodb", "foreman-proxy", "pop3s", "foreman", "mosh", "freeipa-4", "mountd", "freeipa-ldap", "mqtt-tls", "freeipa-ldaps", "ipp-client", "freeipa-replication", "mqtt", "freeipa-trust", "postgresql", "ftp", "privoxy", "galera", "ms-wbt", "ganglia-client", "mssql", "ganglia-master", "prometheus", "git", "proxy-dhcp", "grafana", "ptp", "gre", "ipp", "rsh", "high-availability", "pulseaudio", "http", "ipsec", "puppetmaster", "irc", "quassel", "ircs", "murmur", "iscsi-target", "radius", "isns", "rdp", "jenkins", "redis-sentinel", "kadmin", "mysql", "kdeconnect", "kerberos", "rsyncd", "ovirt-storageconsole", "rtsp", "salt-master", "samba-client", "samba-dc", "samba", "sane", "sip", "sips", "slp", "smtp-submission", "smtp", "smtps", "snmp", "snmptrap", "spideroak-lansync", "spotify-sync", "squid", "ssdp", "ssh", "steam-streaming", "svdrp", "svn", "syncthing-gui", "syncthing", "synergy", "syslog-tls", "syslog", "telnet", "tentacle", "tftp-client", "tftp", "tile38", "tinc", "tor-socks", "transmission-client", "upnp-client", "vdsm", "vnc-server", "wbem-http", "wbem-https", "wsman", "wsmans", "xdmcp", "xmpp-bosh", "xmpp-client", "xmpp-local", "xmpp-server", "zabbix-agent", "zabbix-server" ], "zones": [ "nm-shared", "block", "dmz", "drop", "external", "home", "internal", "public", "trusted", "work" ] } } }, "changed": false } TASK [fedora.linux_system_roles.firewall : update firewalld_config fact] ******* task path: /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:68 Tuesday 14 June 2022 21:17:41 +0000 (0:00:00.386) 0:00:26.294 ********** ok: [/cache/rhel-8-y.qcow2.snap] => { "ansible_facts": { "firewall_config": { "custom": { "helpers": [], "icmptypes": [], "ipsets": [], "policies": [], "services": [], "zones": [ "internal", "customzone", "public", "dmz" ] }, "default": { "helpers": [ "Q.931", "RAS", "amanda", "ftp", "h323", "irc", "netbios-ns", "pptp", "proto-gre", "sane", "sip", "snmp", "tftp" ], "icmptypes": [ "address-unreachable", "bad-header", "beyond-scope", "communication-prohibited", "destination-unreachable", "echo-reply", "echo-request", "failed-policy", "fragmentation-needed", "unknown-option", "host-precedence-violation", "host-prohibited", "host-redirect", "host-unknown", "host-unreachable", "ip-header-bad", "neighbour-advertisement", "neighbour-solicitation", "network-prohibited", "network-redirect", "network-unknown", "network-unreachable", "no-route", "packet-too-big", "parameter-problem", "port-unreachable", "precedence-cutoff", "protocol-unreachable", "redirect", "reject-route", "required-option-missing", "router-advertisement", "router-solicitation", "source-quench", "source-route-failed", "time-exceeded", "timestamp-reply", "timestamp-request", "tos-host-redirect", "tos-host-unreachable", "tos-network-redirect", "tos-network-unreachable", "ttl-zero-during-reassembly", "ttl-zero-during-transit", "unknown-header-type" ], "ipsets": [], "policies": [ "allow-host-ipv6" ], "services": [ "imap", "redis", "RH-Satellite-6-capsule", "kibana", "RH-Satellite-6", "klogin", "amanda-client", "https", "rpc-bind", "amanda-k5-client", "nbd", "amqp", "nfs", "amqps", "nfs3", "apcupsd", "nmea-0183", "audit", "kpasswd", "bacula-client", "nrpe", "bacula", "ntp", "bb", "nut", "bgp", "kprop", "bitcoin-rpc", "imaps", "rquotad", "bitcoin-testnet-rpc", "kshell", "bitcoin-testnet", "openvpn", "bitcoin", "kube-apiserver", "bittorrent-lsd", "ldap", "ceph-mon", "ovirt-imageio", "ceph", "ldaps", "cfengine", "ovirt-vmconsole", "cockpit", "libvirt-tls", "collectd", "condor-collector", "plex", "ctdb", "pmcd", "dhcp", "libvirt", "dhcpv6-client", "pmproxy", "dhcpv6", "pmwebapi", "distcc", "lightning-network", "dns-over-tls", "pmwebapis", "dns", "llmnr", "docker-registry", "managesieve", "docker-swarm", "matrix", "dropbox-lansync", "mdns", "elasticsearch", "memcache", "etcd-client", "minidlna", "etcd-server", "pop3", "finger", "mongodb", "foreman-proxy", "pop3s", "foreman", "mosh", "freeipa-4", "mountd", "freeipa-ldap", "mqtt-tls", "freeipa-ldaps", "ipp-client", "freeipa-replication", "mqtt", "freeipa-trust", "postgresql", "ftp", "privoxy", "galera", "ms-wbt", "ganglia-client", "mssql", "ganglia-master", "prometheus", "git", "proxy-dhcp", "grafana", "ptp", "gre", "ipp", "rsh", "high-availability", "pulseaudio", "http", "ipsec", "puppetmaster", "irc", "quassel", "ircs", "murmur", "iscsi-target", "radius", "isns", "rdp", "jenkins", "redis-sentinel", "kadmin", "mysql", "kdeconnect", "kerberos", "rsyncd", "ovirt-storageconsole", "rtsp", "salt-master", "samba-client", "samba-dc", "samba", "sane", "sip", "sips", "slp", "smtp-submission", "smtp", "smtps", "snmp", "snmptrap", "spideroak-lansync", "spotify-sync", "squid", "ssdp", "ssh", "steam-streaming", "svdrp", "svn", "syncthing-gui", "syncthing", "synergy", "syslog-tls", "syslog", "telnet", "tentacle", "tftp-client", "tftp", "tile38", "tinc", "tor-socks", "transmission-client", "upnp-client", "vdsm", "vnc-server", "wbem-http", "wbem-https", "wsman", "wsmans", "xdmcp", "xmpp-bosh", "xmpp-client", "xmpp-local", "xmpp-server", "zabbix-agent", "zabbix-server" ], "zones": [ "nm-shared", "block", "dmz", "drop", "external", "home", "internal", "public", "trusted", "work" ] } } }, "changed": false } TASK [fedora.linux_system_roles.firewall : Get config files, checksums after] *** task path: /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:76 Tuesday 14 June 2022 21:17:41 +0000 (0:00:00.053) 0:00:26.347 ********** ok: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "rc": 0 } STDOUT: 6319ed8130b49fff292260a1c7003b9c5de8d9d5068218135a877031d0853d1b /etc/firewalld/zones/internal.xml 610e6e9bafe289c126adb751e772cd0224012f12738a8b8011454b1da8865c18 /etc/firewalld/zones/customzone.xml af0a9197ceaa7b3118aee96b570bc7a8d7dc2e4a51ac6a61e53f35ce23eecc0f /etc/firewalld/zones/public.xml df2e066f9b8c0677c4887aa9a7032c4f94480408ff740036d98e648d11dd84c5 /etc/firewalld/zones/dmz.xml 66dd9213714d0a8afae60be06b8902f2cb4d1435ee414e6b77ec4d8671e9df77 /etc/firewalld/firewalld.conf STDERR: Shared connection to 127.0.0.3 closed. TASK [fedora.linux_system_roles.firewall : Calculate what has changed] ********* task path: /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:84 Tuesday 14 June 2022 21:17:41 +0000 (0:00:00.299) 0:00:26.647 ********** ok: [/cache/rhel-8-y.qcow2.snap] => { "ansible_facts": { "firewall_lib_result": { "changed": false } }, "changed": false } TASK [fedora.linux_system_roles.firewall : Show diffs] ************************* task path: /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:90 Tuesday 14 June 2022 21:17:41 +0000 (0:00:00.051) 0:00:26.698 ********** skipping: [/cache/rhel-8-y.qcow2.snap] => {} META: role_complete for /cache/rhel-8-y.qcow2.snap TASK [Fail on newly changes] *************************************************** task path: /tmp/tmph_ddpuji/tests/firewall/tests_zone.yml:90 Tuesday 14 June 2022 21:17:42 +0000 (0:00:00.045) 0:00:26.744 ********** skipping: [/cache/rhel-8-y.qcow2.snap] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify firewalld zone internal services] ********************************* task path: /tmp/tmph_ddpuji/tests/firewall/tests_zone.yml:96 Tuesday 14 June 2022 21:17:42 +0000 (0:00:00.036) 0:00:26.780 ********** changed: [/cache/rhel-8-y.qcow2.snap] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-services" ], "delta": "0:00:00.263812", "end": "2022-06-14 17:17:41.552975", "failed_when_result": false, "rc": 0, "start": "2022-06-14 17:17:41.289163" } STDOUT: cockpit dhcpv6-client ftp mdns samba-client ssh tftp TASK [Verify firewalld zone internal ports] ************************************ task path: /tmp/tmph_ddpuji/tests/firewall/tests_zone.yml:101 Tuesday 14 June 2022 21:17:42 +0000 (0:00:00.785) 0:00:27.565 ********** changed: [/cache/rhel-8-y.qcow2.snap] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-ports" ], "delta": "0:00:00.267767", "end": "2022-06-14 17:17:42.221584", "failed_when_result": false, "rc": 0, "start": "2022-06-14 17:17:41.953817" } STDOUT: 443/tcp 443/udp TASK [Verify firewalld zone internal forward ports] **************************** task path: /tmp/tmph_ddpuji/tests/firewall/tests_zone.yml:106 Tuesday 14 June 2022 21:17:43 +0000 (0:00:00.669) 0:00:28.235 ********** changed: [/cache/rhel-8-y.qcow2.snap] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-forward-ports" ], "delta": "0:00:00.265755", "end": "2022-06-14 17:17:42.914136", "failed_when_result": false, "rc": 0, "start": "2022-06-14 17:17:42.648381" } STDOUT: port=447:proto=tcp:toport=:toaddr=1.2.3.4 port=448:proto=tcp:toport=:toaddr=1.2.3.5 TASK [Verify custom zone has masquerade added to it] *************************** task path: /tmp/tmph_ddpuji/tests/firewall/tests_zone.yml:111 Tuesday 14 June 2022 21:17:44 +0000 (0:00:00.692) 0:00:28.928 ********** changed: [/cache/rhel-8-y.qcow2.snap] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=customzone", "--query-masquerade" ], "delta": "0:00:00.282599", "end": "2022-06-14 17:17:43.623152", "failed_when_result": false, "rc": 0, "start": "2022-06-14 17:17:43.340553" } STDOUT: yes TASK [Verify custom zone has masquerade added to it] *************************** task path: /tmp/tmph_ddpuji/tests/firewall/tests_zone.yml:116 Tuesday 14 June 2022 21:17:44 +0000 (0:00:00.711) 0:00:29.640 ********** changed: [/cache/rhel-8-y.qcow2.snap] => { "changed": true, "cmd": [ "firewall-cmd", "--get-default-zone" ], "delta": "0:00:00.266394", "end": "2022-06-14 17:17:44.315076", "failed_when_result": false, "rc": 0, "start": "2022-06-14 17:17:44.048682" } STDOUT: dmz TASK [Verify that service http has been added to the default zone dmz] ********* task path: /tmp/tmph_ddpuji/tests/firewall/tests_zone.yml:121 Tuesday 14 June 2022 21:17:45 +0000 (0:00:00.692) 0:00:30.332 ********** changed: [/cache/rhel-8-y.qcow2.snap] => { "changed": true, "cmd": [ "firewall-cmd", "--zone=dmz", "--query-service=http" ], "delta": "0:00:00.255917", "end": "2022-06-14 17:17:45.015289", "failed_when_result": false, "rc": 0, "start": "2022-06-14 17:17:44.759372" } STDOUT: yes TASK [Remove customzone zone] ************************************************** task path: /tmp/tmph_ddpuji/tests/firewall/tests_zone.yml:132 Tuesday 14 June 2022 21:17:46 +0000 (0:00:00.700) 0:00:31.033 ********** changed: [/cache/rhel-8-y.qcow2.snap] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--delete-zone=customzone" ], "delta": "0:00:00.323540", "end": "2022-06-14 17:17:45.787912", "failed_when_result": false, "rc": 0, "start": "2022-06-14 17:17:45.464372" } STDOUT: success TASK [Reset to zone defaults] ************************************************** task path: /tmp/tmph_ddpuji/tests/firewall/tests_zone.yml:137 Tuesday 14 June 2022 21:17:47 +0000 (0:00:00.772) 0:00:31.805 ********** changed: [/cache/rhel-8-y.qcow2.snap] => { "changed": true, "cmd": "firewall-cmd --permanent --load-zone-defaults=internal\nfirewall-cmd --permanent --load-zone-defaults=external\nfirewall-cmd --permanent --load-zone-defaults=trusted\nfirewall-cmd --reload\n", "delta": "0:00:01.445017", "end": "2022-06-14 17:17:47.641210", "rc": 0, "start": "2022-06-14 17:17:46.196193" } STDOUT: success success STDERR: Error: NO_DEFAULTS: external Error: NO_DEFAULTS: trusted META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8-y.qcow2.snap : ok=42 changed=9 unreachable=0 failed=0 skipped=12 rescued=0 ignored=0 Tuesday 14 June 2022 21:17:48 +0000 (0:00:01.855) 0:00:33.661 ********** =============================================================================== fedora.linux_system_roles.firewall : Configure firewall ----------------- 7.64s /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:36 Reset to zone defaults -------------------------------------------------- 1.86s /tmp/tmph_ddpuji/tests/firewall/tests_zone.yml:137 ---------------------------- fedora.linux_system_roles.firewall : Configure firewall ----------------- 1.80s /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:36 fedora.linux_system_roles.firewall : Install firewalld ------------------ 1.52s /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 fedora.linux_system_roles.firewall : Install firewalld ------------------ 1.43s /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 fedora.linux_system_roles.firewall : Install firewalld ------------------ 1.35s /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 fedora.linux_system_roles.firewall : Install python3-firewall ----------- 1.35s /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:18 fedora.linux_system_roles.firewall : Install python3-firewall ----------- 1.34s /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:18 fedora.linux_system_roles.firewall : Install python3-firewall ----------- 1.33s /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:18 fedora.linux_system_roles.firewall : Get config files, checksums before and remove --- 1.25s /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:14 Gathering Facts --------------------------------------------------------- 1.14s /tmp/tmph_ddpuji/tests/firewall/tests_zone.yml:1 ------------------------------ fedora.linux_system_roles.firewall : Enable and start firewalld service --- 1.06s /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 fedora.linux_system_roles.firewall : gather firewalld configuration ----- 0.82s /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:63 fedora.linux_system_roles.firewall : Enable and start firewalld service --- 0.79s /tmp/tmpcldt_og5/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Verify firewalld zone internal services --------------------------------- 0.79s /tmp/tmph_ddpuji/tests/firewall/tests_zone.yml:96 ----------------------------- Remove customzone zone -------------------------------------------------- 0.77s /tmp/tmph_ddpuji/tests/firewall/tests_zone.yml:132 ---------------------------- Verify custom zone has masquerade added to it --------------------------- 0.71s /tmp/tmph_ddpuji/tests/firewall/tests_zone.yml:111 ---------------------------- Verify that service http has been added to the default zone dmz --------- 0.70s /tmp/tmph_ddpuji/tests/firewall/tests_zone.yml:121 ---------------------------- Verify firewalld zone internal forward ports ---------------------------- 0.69s /tmp/tmph_ddpuji/tests/firewall/tests_zone.yml:106 ---------------------------- Verify custom zone has masquerade added to it --------------------------- 0.69s /tmp/tmph_ddpuji/tests/firewall/tests_zone.yml:116 ----------------------------