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/tmpx2we9fjr 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: rhel-8_setup.yml ***************************************************** 1 plays in /cache/rhel-8_setup.yml PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /cache/rhel-8_setup.yml:5 Friday 22 July 2022 00:19:38 +0000 (0:00:00.018) 0:00:00.018 *********** changed: [/cache/rhel-8.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true } changed: [/cache/rhel-8.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true } changed: [/cache/rhel-8.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true } changed: [/cache/rhel-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=1 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Friday 22 July 2022 00:19:40 +0000 (0:00:01.387) 0:00:01.405 *********** =============================================================================== set up internal repositories -------------------------------------------- 1.39s /cache/rhel-8_setup.yml:5 ----------------------------------------------------- PLAYBOOK: tests_ansible.yml **************************************************** 1 plays in /tmp/tmpa46hewky/tests/tests_ansible.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:1 Friday 22 July 2022 00:19:40 +0000 (0:00:00.050) 0:00:01.455 *********** ok: [/cache/rhel-8.qcow2] META: ran handlers TASK [linux-system-roles.firewall : include_tasks] ***************************** task path: /tmp/tmpa46hewky/tests/roles/linux-system-roles.firewall/tasks/main.yml:1 Friday 22 July 2022 00:19:41 +0000 (0:00:01.416) 0:00:02.872 *********** included: /tmp/tmpa46hewky/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml for /cache/rhel-8.qcow2 TASK [linux-system-roles.firewall : Ensure ansible_facts used by role] ********* task path: /tmp/tmpa46hewky/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Friday 22 July 2022 00:19:41 +0000 (0:00:00.031) 0:00:02.903 *********** ok: [/cache/rhel-8.qcow2] TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpa46hewky/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 Friday 22 July 2022 00:19:43 +0000 (0:00:01.628) 0:00:04.531 *********** changed: [/cache/rhel-8.qcow2] => { "changed": true, "rc": 0, "results": [ "Installed: python3-slip-0.6.4-11.el8.noarch", "Installed: python3-slip-dbus-0.6.4-11.el8.noarch", "Installed: ipset-7.1-1.el8.x86_64", "Installed: libnetfilter_conntrack-1.0.6-5.el8.x86_64", "Installed: ipset-libs-7.1-1.el8.x86_64", "Installed: python3-nftables-1:0.9.3-25.el8.x86_64", "Installed: python3-firewall-0.9.3-13.el8.noarch", "Installed: iptables-1.8.4-22.el8.x86_64", "Installed: libnfnetlink-1.0.1-13.el8.x86_64", "Installed: iptables-ebtables-1.8.4-22.el8.x86_64", "Installed: iptables-libs-1.8.4-22.el8.x86_64", "Installed: libnftnl-1.1.5-5.el8.x86_64", "Installed: firewalld-0.9.3-13.el8.noarch", "Installed: firewalld-filesystem-0.9.3-13.el8.noarch", "Installed: nftables-1:0.9.3-25.el8.x86_64" ] } TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmpa46hewky/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Friday 22 July 2022 00:19:49 +0000 (0:00:06.268) 0:00:10.799 *********** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmpa46hewky/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Friday 22 July 2022 00:19:49 +0000 (0:00:00.030) 0:00:10.830 *********** ok: [/cache/rhel-8.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmpa46hewky/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Friday 22 July 2022 00:19:50 +0000 (0:00:01.267) 0:00:12.098 *********** changed: [/cache/rhel-8.qcow2] => { "changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "polkit.service dbus.socket dbus.service sysinit.target basic.target system.slice", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target network-pre.target multi-user.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": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "nftables.service ipset.service ip6tables.service ebtables.service shutdown.target iptables.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": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "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", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "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": "6971", "LimitNPROCSoft": "6971", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6971", "LimitSIGPENDINGSoft": "6971", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "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": "system.slice sysinit.target dbus.socket", "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]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "11153", "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", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [linux-system-roles.firewall : Check if previous replaced is defined] ***** task path: /tmp/tmpa46hewky/tests/roles/linux-system-roles.firewall/tasks/main.yml:9 Friday 22 July 2022 00:19:51 +0000 (0:00:01.101) 0:00:13.199 *********** ok: [/cache/rhel-8.qcow2] => { "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/tmpa46hewky/tests/roles/linux-system-roles.firewall/tasks/main.yml:18 Friday 22 July 2022 00:19:51 +0000 (0:00:00.081) 0:00:13.281 *********** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmpa46hewky/tests/roles/linux-system-roles.firewall/tasks/main.yml:40 Friday 22 July 2022 00:19:52 +0000 (0:00:00.037) 0:00:13.319 *********** TASK [linux-system-roles.firewall : Get config files, checksums after] ********* task path: /tmp/tmpa46hewky/tests/roles/linux-system-roles.firewall/tasks/main.yml:77 Friday 22 July 2022 00:19:52 +0000 (0:00:00.037) 0:00:13.356 *********** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Calculate what has changed] **************** task path: /tmp/tmpa46hewky/tests/roles/linux-system-roles.firewall/tasks/main.yml:85 Friday 22 July 2022 00:19:52 +0000 (0:00:00.031) 0:00:13.388 *********** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Show diffs] ******************************** task path: /tmp/tmpa46hewky/tests/roles/linux-system-roles.firewall/tasks/main.yml:94 Friday 22 July 2022 00:19:52 +0000 (0:00:00.034) 0:00:13.422 *********** skipping: [/cache/rhel-8.qcow2] => {} META: role_complete for /cache/rhel-8.qcow2 TASK [Remove custom zone] ****************************************************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:14 Friday 22 July 2022 00:19:52 +0000 (0:00:00.039) 0:00:13.462 *********** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--delete-zone=custom" ], "delta": "0:00:00.286811", "end": "2022-07-21 20:19:52.309293", "failed_when_result": false, "rc": 112, "start": "2022-07-21 20:19:52.022482" } STDERR: Error: INVALID_ZONE: custom MSG: non-zero return code TASK [Reset internal zone to defaults] ***************************************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:19 Friday 22 July 2022 00:19:52 +0000 (0:00:00.819) 0:00:14.281 *********** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=internal" ], "delta": "0:00:00.266754", "end": "2022-07-21 20:19:52.969801", "failed_when_result": false, "rc": 22, "start": "2022-07-21 20:19:52.703047" } STDERR: Error: NO_DEFAULTS: internal MSG: non-zero return code TASK [Reset trusted zone to defaults] ****************************************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:24 Friday 22 July 2022 00:19:53 +0000 (0:00:00.650) 0:00:14.932 *********** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=trusted" ], "delta": "0:00:00.256610", "end": "2022-07-21 20:19:53.598092", "failed_when_result": false, "rc": 22, "start": "2022-07-21 20:19:53.341482" } STDERR: Error: NO_DEFAULTS: trusted MSG: non-zero return code TASK [Reset dmz zone to defaults] ********************************************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:29 Friday 22 July 2022 00:19:54 +0000 (0:00:00.630) 0:00:15.563 *********** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=dmz" ], "delta": "0:00:00.263218", "end": "2022-07-21 20:19:54.269703", "failed_when_result": false, "rc": 22, "start": "2022-07-21 20:19:54.006485" } STDERR: Error: NO_DEFAULTS: dmz MSG: non-zero return code TASK [Reset drop zone to defaults] ********************************************* task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:34 Friday 22 July 2022 00:19:54 +0000 (0:00:00.669) 0:00:16.232 *********** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=drop" ], "delta": "0:00:00.265062", "end": "2022-07-21 20:19:54.936540", "failed_when_result": false, "rc": 22, "start": "2022-07-21 20:19:54.671478" } STDERR: Error: NO_DEFAULTS: drop MSG: non-zero return code TASK [Reset public zone to defaults] ******************************************* task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:39 Friday 22 July 2022 00:19:55 +0000 (0:00:00.666) 0:00:16.898 *********** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=public" ], "delta": "0:00:00.262871", "end": "2022-07-21 20:19:55.617685", "failed_when_result": false, "rc": 22, "start": "2022-07-21 20:19:55.354814" } STDERR: Error: NO_DEFAULTS: public MSG: non-zero return code TASK [Reset default zone to defaults] ****************************************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:44 Friday 22 July 2022 00:19:56 +0000 (0:00:00.682) 0:00:17.581 *********** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": "zone=$(firewall-cmd --get-default-zone)\nfirewall-cmd --permanent --load-zone-defaults=$zone\n", "delta": "0:00:00.550615", "end": "2022-07-21 20:19:56.540519", "failed_when_result": false, "rc": 22, "start": "2022-07-21 20:19:55.989904" } STDERR: Error: NO_DEFAULTS: public MSG: non-zero return code TASK [Create custom zone] ****************************************************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:52 Friday 22 July 2022 00:19:57 +0000 (0:00:00.932) 0:00:18.513 *********** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--new-zone=custom" ], "delta": "0:00:00.281752", "end": "2022-07-21 20:19:57.195895", "failed_when_result": false, "rc": 0, "start": "2022-07-21 20:19:56.914143" } STDOUT: success TASK [Reload firewalld] ******************************************************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:57 Friday 22 July 2022 00:19:57 +0000 (0:00:00.647) 0:00:19.161 *********** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--reload" ], "delta": "0:00:00.803191", "end": "2022-07-21 20:19:58.392068", "failed_when_result": false, "rc": 0, "start": "2022-07-21 20:19:57.588877" } STDOUT: success TASK [Permit traffic in default zone for https service] ************************ task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:64 Friday 22 July 2022 00:19:59 +0000 (0:00:01.248) 0:00:20.409 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Permit traffic in default zone for https service, again] ***************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:72 Friday 22 July 2022 00:19:59 +0000 (0:00:00.702) 0:00:21.112 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Permit traffic in default zone on port 8081/tcp] ************************* task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:80 Friday 22 July 2022 00:20:00 +0000 (0:00:00.542) 0:00:21.654 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Permit traffic in default zone on port 8081/tcp, again] ****************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:88 Friday 22 July 2022 00:20:00 +0000 (0:00:00.562) 0:00:22.216 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Allow port 161-162/udp in permanent default zone] ************************ task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:96 Friday 22 July 2022 00:20:01 +0000 (0:00:00.527) 0:00:22.744 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Allow port 161-162/udp in permanent default zone, again] ***************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:104 Friday 22 July 2022 00:20:02 +0000 (0:00:00.560) 0:00:23.304 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Do not permit traffic in default zone on port 8081/tcp] ****************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:112 Friday 22 July 2022 00:20:02 +0000 (0:00:00.540) 0:00:23.845 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Do not permit traffic in default zone on port 8081/tcp, again] *********** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:120 Friday 22 July 2022 00:20:03 +0000 (0:00:00.560) 0:00:24.405 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Allow service http in permanent dmz zone] ******************************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:128 Friday 22 July 2022 00:20:03 +0000 (0:00:00.547) 0:00:24.952 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Allow service http in permanent dmz zone, again] ************************* task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:137 Friday 22 July 2022 00:20:04 +0000 (0:00:00.565) 0:00:25.518 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Allow service ftp with limitation using rich rule in permanent default zone] *** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:146 Friday 22 July 2022 00:20:04 +0000 (0:00:00.556) 0:00:26.074 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Allow service ftp with limitation using rich rule in permanent default zone, again] *** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:155 Friday 22 July 2022 00:20:05 +0000 (0:00:00.546) 0:00:26.620 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Allow source 192.0.2.0/24 in internal zone] ****************************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:164 Friday 22 July 2022 00:20:05 +0000 (0:00:00.559) 0:00:27.180 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Allow source 192.0.2.0/24 in internal zone, again] *********************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:173 Friday 22 July 2022 00:20:06 +0000 (0:00:00.533) 0:00:27.713 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Allow interface eth2 in permanent trusted zone] ************************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:182 Friday 22 July 2022 00:20:06 +0000 (0:00:00.557) 0:00:28.271 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Allow interface eth2 in permanent trusted zone, again] ******************* task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:191 Friday 22 July 2022 00:20:07 +0000 (0:00:00.594) 0:00:28.865 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Allow masquerading in permament dmz zone] ******************************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:200 Friday 22 July 2022 00:20:08 +0000 (0:00:00.558) 0:00:29.424 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Allow masquerading in permament dmz zone, again] ************************* task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:208 Friday 22 July 2022 00:20:08 +0000 (0:00:00.552) 0:00:29.977 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Ensure permanent custom zone exists (no change)] ************************* task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:216 Friday 22 July 2022 00:20:09 +0000 (0:00:00.550) 0:00:30.527 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Ensure ICMP block inversion in permanent drop zone] ********************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:224 Friday 22 July 2022 00:20:09 +0000 (0:00:00.550) 0:00:31.077 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Ensure ICMP block inversion in permanent drop zone, again] *************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:232 Friday 22 July 2022 00:20:10 +0000 (0:00:00.534) 0:00:31.612 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Block ICMP echo-request in permanent drop zone] ************************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:240 Friday 22 July 2022 00:20:10 +0000 (0:00:00.553) 0:00:32.166 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Block ICMP echo-request in permanent drop zone, again] ******************* task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:249 Friday 22 July 2022 00:20:11 +0000 (0:00:00.592) 0:00:32.758 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Ensure default target in permanent internal zone (no change)] ************ task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:258 Friday 22 July 2022 00:20:12 +0000 (0:00:00.644) 0:00:33.403 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Ensure target ACCEPT in permanent internal zone] ************************* task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:267 Friday 22 July 2022 00:20:12 +0000 (0:00:00.582) 0:00:33.986 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Ensure target ACCEPT in permanent internal zone, again] ****************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:276 Friday 22 July 2022 00:20:13 +0000 (0:00:01.254) 0:00:35.241 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Ensure default target in permanent internal zone] ************************ task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:285 Friday 22 July 2022 00:20:14 +0000 (0:00:00.590) 0:00:35.831 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Ensure default target in permanent internal zone, again] ***************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:294 Friday 22 July 2022 00:20:15 +0000 (0:00:01.088) 0:00:36.920 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Redirect port 443 to 8443 with Rich Rule in permanent and runtime public zone] *** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:303 Friday 22 July 2022 00:20:16 +0000 (0:00:00.572) 0:00:37.493 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Redirect port 443 to 8443 with Rich Rule in permanent and runtime public zone, again] *** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:315 Friday 22 July 2022 00:20:16 +0000 (0:00:00.616) 0:00:38.109 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Firewalld custom zone] *************************************************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:327 Friday 22 July 2022 00:20:17 +0000 (0:00:00.553) 0:00:38.663 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true } TASK [assert firewalld custom zone] ******************************************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:335 Friday 22 July 2022 00:20:18 +0000 (0:00:01.071) 0:00:39.734 *********** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Add masquerade to custom zone] ******************************************* task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:340 Friday 22 July 2022 00:20:18 +0000 (0:00:00.037) 0:00:39.771 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Add masquerade to custom zone, again] ************************************ task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:350 Friday 22 July 2022 00:20:19 +0000 (0:00:00.550) 0:00:40.322 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Set the default zone to something other than dmz] ************************ task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:360 Friday 22 July 2022 00:20:19 +0000 (0:00:00.578) 0:00:40.901 *********** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--set-default-zone", "public" ], "delta": "0:00:00.269538", "end": "2022-07-21 20:20:19.598363", "rc": 0, "start": "2022-07-21 20:20:19.328825" } STDOUT: success STDERR: Warning: ZONE_ALREADY_SET: public TASK [set default zone] ******************************************************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:363 Friday 22 July 2022 00:20:20 +0000 (0:00:00.657) 0:00:41.558 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [set default zone, again] ************************************************* task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:370 Friday 22 July 2022 00:20:20 +0000 (0:00:00.587) 0:00:42.146 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [add multiple custom services] ******************************************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:377 Friday 22 July 2022 00:20:21 +0000 (0:00:00.553) 0:00:42.700 *********** ok: [/cache/rhel-8.qcow2] => { "changed": false, "failed_when_result": false } MSG: can only add, modify, or remove one service at a time TASK [add custom service without details] ************************************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:387 Friday 22 July 2022 00:20:21 +0000 (0:00:00.514) 0:00:43.214 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [add custom service that already exists] ********************************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:395 Friday 22 July 2022 00:20:22 +0000 (0:00:01.067) 0:00:44.282 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [add description to custom service] *************************************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:403 Friday 22 July 2022 00:20:23 +0000 (0:00:00.572) 0:00:44.854 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [add short description to custom service] ********************************* task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:412 Friday 22 July 2022 00:20:24 +0000 (0:00:01.043) 0:00:45.898 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [add source_ports to custom service] ************************************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:421 Friday 22 July 2022 00:20:25 +0000 (0:00:01.092) 0:00:46.991 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [add source_ports to custom service again] ******************************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:430 Friday 22 July 2022 00:20:26 +0000 (0:00:01.069) 0:00:48.061 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [add invalid protocol to custom service] ********************************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:439 Friday 22 July 2022 00:20:27 +0000 (0:00:00.550) 0:00:48.611 *********** ok: [/cache/rhel-8.qcow2] => { "changed": false, "failed_when_result": false } MSG: INVALID_PROTOCOL: nonexistentprotocol TASK [add valid protocol to custom service] ************************************ task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:448 Friday 22 July 2022 00:20:27 +0000 (0:00:00.561) 0:00:49.173 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [remove valid protocol from customservice] ******************************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:457 Friday 22 July 2022 00:20:28 +0000 (0:00:01.083) 0:00:50.256 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [remove ports from custom service without deleting service] *************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:466 Friday 22 July 2022 00:20:30 +0000 (0:00:01.054) 0:00:51.311 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [add destination addresses] *********************************************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:475 Friday 22 July 2022 00:20:31 +0000 (0:00:01.028) 0:00:52.340 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [delete custom service] *************************************************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:486 Friday 22 July 2022 00:20:32 +0000 (0:00:01.056) 0:00:53.396 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [delete custom service again] ********************************************* task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:494 Friday 22 July 2022 00:20:33 +0000 (0:00:01.101) 0:00:54.497 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [add custom service with all the elements at once] ************************ task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:502 Friday 22 July 2022 00:20:33 +0000 (0:00:00.566) 0:00:55.064 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [add helper module that already is on customservice] ********************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:519 Friday 22 July 2022 00:20:34 +0000 (0:00:01.166) 0:00:56.230 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [forward port 40 to 0.0.0.0:8080 (string)] ******************************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:528 Friday 22 July 2022 00:20:35 +0000 (0:00:00.553) 0:00:56.784 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [forward same port again (string)] **************************************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:535 Friday 22 July 2022 00:20:36 +0000 (0:00:00.573) 0:00:57.357 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [disable forward port (string)] ******************************************* task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:542 Friday 22 July 2022 00:20:36 +0000 (0:00:00.529) 0:00:57.887 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [forward port (dict form)] ************************************************ task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:549 Friday 22 July 2022 00:20:37 +0000 (0:00:00.591) 0:00:58.479 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [forward port again (dict form)] ****************************************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:560 Friday 22 July 2022 00:20:37 +0000 (0:00:00.562) 0:00:59.041 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [disable forward port (dict form)] **************************************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:571 Friday 22 July 2022 00:20:38 +0000 (0:00:00.581) 0:00:59.623 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Remove custom zone] ****************************************************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:590 Friday 22 July 2022 00:20:38 +0000 (0:00:00.560) 0:01:00.183 *********** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--delete-zone=custom" ], "delta": "0:00:00.269379", "end": "2022-07-21 20:20:38.855368", "failed_when_result": false, "rc": 0, "start": "2022-07-21 20:20:38.585989" } STDOUT: success TASK [Remove customzone zone] ************************************************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:595 Friday 22 July 2022 00:20:39 +0000 (0:00:00.636) 0:01:00.819 *********** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--delete-zone=customzone" ], "delta": "0:00:00.265320", "end": "2022-07-21 20:20:39.498965", "failed_when_result": false, "rc": 0, "start": "2022-07-21 20:20:39.233645" } STDOUT: success TASK [Reset internal zone to defaults] ***************************************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:600 Friday 22 July 2022 00:20:40 +0000 (0:00:00.642) 0:01:01.462 *********** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=internal" ], "delta": "0:00:00.261870", "end": "2022-07-21 20:20:40.128647", "failed_when_result": false, "rc": 0, "start": "2022-07-21 20:20:39.866777" } STDOUT: success TASK [Reset trusted zone to defaults] ****************************************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:605 Friday 22 July 2022 00:20:40 +0000 (0:00:00.634) 0:01:02.096 *********** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=trusted" ], "delta": "0:00:00.273299", "end": "2022-07-21 20:20:40.772741", "failed_when_result": false, "rc": 0, "start": "2022-07-21 20:20:40.499442" } STDOUT: success TASK [Reset dmz zone to defaults] ********************************************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:610 Friday 22 July 2022 00:20:41 +0000 (0:00:00.640) 0:01:02.737 *********** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=dmz" ], "delta": "0:00:00.283569", "end": "2022-07-21 20:20:41.447368", "failed_when_result": false, "rc": 0, "start": "2022-07-21 20:20:41.163799" } STDOUT: success TASK [Reset drop zone to defaults] ********************************************* task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:615 Friday 22 July 2022 00:20:42 +0000 (0:00:00.676) 0:01:03.413 *********** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=drop" ], "delta": "0:00:00.261928", "end": "2022-07-21 20:20:42.081164", "failed_when_result": false, "rc": 0, "start": "2022-07-21 20:20:41.819236" } STDOUT: success TASK [Reset public zone to defaults] ******************************************* task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:620 Friday 22 July 2022 00:20:42 +0000 (0:00:00.633) 0:01:04.047 *********** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=public" ], "delta": "0:00:00.260235", "end": "2022-07-21 20:20:42.717731", "failed_when_result": false, "rc": 0, "start": "2022-07-21 20:20:42.457496" } STDOUT: success TASK [Reset default zone to defaults] ****************************************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:625 Friday 22 July 2022 00:20:43 +0000 (0:00:00.635) 0:01:04.682 *********** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=public" ], "delta": "0:00:00.262489", "end": "2022-07-21 20:20:43.345399", "failed_when_result": false, "rc": 22, "start": "2022-07-21 20:20:43.082910" } STDERR: Error: NO_DEFAULTS: public MSG: non-zero return code TASK [Reload firewalld] ******************************************************** task path: /tmp/tmpa46hewky/tests/tests_ansible.yml:630 Friday 22 July 2022 00:20:44 +0000 (0:00:00.628) 0:01:05.310 *********** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--reload" ], "delta": "0:00:00.734579", "end": "2022-07-21 20:20:44.454505", "failed_when_result": false, "rc": 0, "start": "2022-07-21 20:20:43.719926" } STDOUT: success META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=85 changed=53 unreachable=0 failed=0 skipped=6 rescued=0 ignored=0 Friday 22 July 2022 00:20:45 +0000 (0:00:01.120) 0:01:06.431 *********** =============================================================================== linux-system-roles.firewall : Install firewalld ------------------------- 6.27s /tmp/tmpa46hewky/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 linux-system-roles.firewall : Ensure ansible_facts used by role --------- 1.63s /tmp/tmpa46hewky/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Gathering Facts --------------------------------------------------------- 1.42s /tmp/tmpa46hewky/tests/tests_ansible.yml:1 ------------------------------------ set up internal repositories -------------------------------------------- 1.39s /cache/rhel-8_setup.yml:5 ----------------------------------------------------- linux-system-roles.firewall : Install python3-firewall ------------------ 1.27s /tmp/tmpa46hewky/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Ensure target ACCEPT in permanent internal zone ------------------------- 1.25s /tmp/tmpa46hewky/tests/tests_ansible.yml:267 ---------------------------------- Reload firewalld -------------------------------------------------------- 1.25s /tmp/tmpa46hewky/tests/tests_ansible.yml:57 ----------------------------------- add custom service with all the elements at once ------------------------ 1.17s /tmp/tmpa46hewky/tests/tests_ansible.yml:502 ---------------------------------- Reload firewalld -------------------------------------------------------- 1.12s /tmp/tmpa46hewky/tests/tests_ansible.yml:630 ---------------------------------- linux-system-roles.firewall : Enable and start firewalld service -------- 1.10s /tmp/tmpa46hewky/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 ----- delete custom service --------------------------------------------------- 1.10s /tmp/tmpa46hewky/tests/tests_ansible.yml:486 ---------------------------------- add short description to custom service --------------------------------- 1.09s /tmp/tmpa46hewky/tests/tests_ansible.yml:412 ---------------------------------- Ensure default target in permanent internal zone ------------------------ 1.09s /tmp/tmpa46hewky/tests/tests_ansible.yml:285 ---------------------------------- add valid protocol to custom service ------------------------------------ 1.08s /tmp/tmpa46hewky/tests/tests_ansible.yml:448 ---------------------------------- Firewalld custom zone --------------------------------------------------- 1.07s /tmp/tmpa46hewky/tests/tests_ansible.yml:327 ---------------------------------- add source_ports to custom service -------------------------------------- 1.07s /tmp/tmpa46hewky/tests/tests_ansible.yml:421 ---------------------------------- add custom service without details -------------------------------------- 1.07s /tmp/tmpa46hewky/tests/tests_ansible.yml:387 ---------------------------------- add destination addresses ----------------------------------------------- 1.06s /tmp/tmpa46hewky/tests/tests_ansible.yml:475 ---------------------------------- remove valid protocol from customservice -------------------------------- 1.06s /tmp/tmpa46hewky/tests/tests_ansible.yml:457 ---------------------------------- add description to custom service --------------------------------------- 1.04s /tmp/tmpa46hewky/tests/tests_ansible.yml:403 ---------------------------------- 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/tmpx2we9fjr 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: rhel-8_setup.yml ***************************************************** 1 plays in /cache/rhel-8_setup.yml PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /cache/rhel-8_setup.yml:5 Friday 22 July 2022 00:25:09 +0000 (0:00:00.018) 0:00:00.018 *********** changed: [/cache/rhel-8.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true } changed: [/cache/rhel-8.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true } changed: [/cache/rhel-8.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true } changed: [/cache/rhel-8.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=1 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Friday 22 July 2022 00:25:11 +0000 (0:00:01.383) 0:00:01.401 *********** =============================================================================== set up internal repositories -------------------------------------------- 1.38s /cache/rhel-8_setup.yml:5 ----------------------------------------------------- PLAYBOOK: tests_ansible.yml **************************************************** 1 plays in /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:1 Friday 22 July 2022 00:25:11 +0000 (0:00:00.066) 0:00:01.468 *********** ok: [/cache/rhel-8.qcow2] META: ran handlers TASK [fedora.linux_system_roles.firewall : include_tasks] ********************** task path: /tmp/tmpx2we9fjr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:1 Friday 22 July 2022 00:25:12 +0000 (0:00:01.527) 0:00:02.996 *********** included: /tmp/tmpx2we9fjr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml for /cache/rhel-8.qcow2 TASK [fedora.linux_system_roles.firewall : Ensure ansible_facts used by role] *** task path: /tmp/tmpx2we9fjr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Friday 22 July 2022 00:25:12 +0000 (0:00:00.029) 0:00:03.025 *********** ok: [/cache/rhel-8.qcow2] TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmpx2we9fjr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 Friday 22 July 2022 00:25:14 +0000 (0:00:01.610) 0:00:04.636 *********** changed: [/cache/rhel-8.qcow2] => { "changed": true, "rc": 0, "results": [ "Installed: python3-slip-0.6.4-11.el8.noarch", "Installed: python3-slip-dbus-0.6.4-11.el8.noarch", "Installed: ipset-7.1-1.el8.x86_64", "Installed: libnetfilter_conntrack-1.0.6-5.el8.x86_64", "Installed: ipset-libs-7.1-1.el8.x86_64", "Installed: python3-nftables-1:0.9.3-25.el8.x86_64", "Installed: python3-firewall-0.9.3-13.el8.noarch", "Installed: iptables-1.8.4-22.el8.x86_64", "Installed: libnfnetlink-1.0.1-13.el8.x86_64", "Installed: iptables-ebtables-1.8.4-22.el8.x86_64", "Installed: iptables-libs-1.8.4-22.el8.x86_64", "Installed: libnftnl-1.1.5-5.el8.x86_64", "Installed: firewalld-0.9.3-13.el8.noarch", "Installed: firewalld-filesystem-0.9.3-13.el8.noarch", "Installed: nftables-1:0.9.3-25.el8.x86_64" ] } TASK [fedora.linux_system_roles.firewall : Install python-firewall] ************ task path: /tmp/tmpx2we9fjr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:12 Friday 22 July 2022 00:25:20 +0000 (0:00:06.239) 0:00:10.875 *********** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Install python3-firewall] *********** task path: /tmp/tmpx2we9fjr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:18 Friday 22 July 2022 00:25:20 +0000 (0:00:00.030) 0:00:10.906 *********** ok: [/cache/rhel-8.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.firewall : Enable and start firewalld service] *** task path: /tmp/tmpx2we9fjr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Friday 22 July 2022 00:25:21 +0000 (0:00:01.257) 0:00:12.164 *********** changed: [/cache/rhel-8.qcow2] => { "changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "system.slice basic.target polkit.service dbus.service sysinit.target dbus.socket", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "no", "AssertTimestampMonotonic": "0", "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": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target ip6tables.service ebtables.service nftables.service iptables.service ipset.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": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "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", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "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": "6971", "LimitNPROCSoft": "6971", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6971", "LimitSIGPENDINGSoft": "6971", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "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]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "11153", "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", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.firewall : Check if previous replaced is defined] *** task path: /tmp/tmpx2we9fjr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:9 Friday 22 July 2022 00:25:22 +0000 (0:00:01.083) 0:00:13.247 *********** ok: [/cache/rhel-8.qcow2] => { "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/tmpx2we9fjr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:14 Friday 22 July 2022 00:25:23 +0000 (0:00:00.083) 0:00:13.331 *********** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Configure firewall] ***************** task path: /tmp/tmpx2we9fjr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:36 Friday 22 July 2022 00:25:23 +0000 (0:00:00.035) 0:00:13.366 *********** TASK [fedora.linux_system_roles.firewall : Get config files, checksums after] *** task path: /tmp/tmpx2we9fjr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:71 Friday 22 July 2022 00:25:23 +0000 (0:00:00.036) 0:00:13.403 *********** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Calculate what has changed] ********* task path: /tmp/tmpx2we9fjr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:79 Friday 22 July 2022 00:25:23 +0000 (0:00:00.032) 0:00:13.436 *********** skipping: [/cache/rhel-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Show diffs] ************************* task path: /tmp/tmpx2we9fjr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:85 Friday 22 July 2022 00:25:23 +0000 (0:00:00.032) 0:00:13.469 *********** skipping: [/cache/rhel-8.qcow2] => {} META: role_complete for /cache/rhel-8.qcow2 TASK [Remove custom zone] ****************************************************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:14 Friday 22 July 2022 00:25:23 +0000 (0:00:00.040) 0:00:13.509 *********** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--delete-zone=custom" ], "delta": "0:00:00.273721", "end": "2022-07-21 20:25:23.211230", "failed_when_result": false, "rc": 112, "start": "2022-07-21 20:25:22.937509" } STDERR: Error: INVALID_ZONE: custom MSG: non-zero return code TASK [Reset internal zone to defaults] ***************************************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:19 Friday 22 July 2022 00:25:24 +0000 (0:00:00.797) 0:00:14.307 *********** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=internal" ], "delta": "0:00:00.274295", "end": "2022-07-21 20:25:23.873677", "failed_when_result": false, "rc": 22, "start": "2022-07-21 20:25:23.599382" } STDERR: Error: NO_DEFAULTS: internal MSG: non-zero return code TASK [Reset trusted zone to defaults] ****************************************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:24 Friday 22 July 2022 00:25:24 +0000 (0:00:00.647) 0:00:14.954 *********** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=trusted" ], "delta": "0:00:00.257420", "end": "2022-07-21 20:25:24.535695", "failed_when_result": false, "rc": 22, "start": "2022-07-21 20:25:24.278275" } STDERR: Error: NO_DEFAULTS: trusted MSG: non-zero return code TASK [Reset dmz zone to defaults] ********************************************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:29 Friday 22 July 2022 00:25:25 +0000 (0:00:00.661) 0:00:15.615 *********** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=dmz" ], "delta": "0:00:00.271894", "end": "2022-07-21 20:25:25.228942", "failed_when_result": false, "rc": 22, "start": "2022-07-21 20:25:24.957048" } STDERR: Error: NO_DEFAULTS: dmz MSG: non-zero return code TASK [Reset drop zone to defaults] ********************************************* task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:34 Friday 22 July 2022 00:25:26 +0000 (0:00:00.693) 0:00:16.309 *********** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=drop" ], "delta": "0:00:00.269711", "end": "2022-07-21 20:25:25.902598", "failed_when_result": false, "rc": 22, "start": "2022-07-21 20:25:25.632887" } STDERR: Error: NO_DEFAULTS: drop MSG: non-zero return code TASK [Reset public zone to defaults] ******************************************* task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:39 Friday 22 July 2022 00:25:26 +0000 (0:00:00.677) 0:00:16.986 *********** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=public" ], "delta": "0:00:00.248306", "end": "2022-07-21 20:25:26.551576", "failed_when_result": false, "rc": 22, "start": "2022-07-21 20:25:26.303270" } STDERR: Error: NO_DEFAULTS: public MSG: non-zero return code TASK [Reset default zone to defaults] ****************************************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:44 Friday 22 July 2022 00:25:27 +0000 (0:00:00.641) 0:00:17.628 *********** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": "zone=$(firewall-cmd --get-default-zone)\nfirewall-cmd --permanent --load-zone-defaults=$zone\n", "delta": "0:00:00.520328", "end": "2022-07-21 20:25:27.433462", "failed_when_result": false, "rc": 22, "start": "2022-07-21 20:25:26.913134" } STDERR: Error: NO_DEFAULTS: public MSG: non-zero return code TASK [Create custom zone] ****************************************************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:52 Friday 22 July 2022 00:25:28 +0000 (0:00:00.888) 0:00:18.517 *********** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--new-zone=custom" ], "delta": "0:00:00.265081", "end": "2022-07-21 20:25:28.083674", "failed_when_result": false, "rc": 0, "start": "2022-07-21 20:25:27.818593" } STDOUT: success TASK [Reload firewalld] ******************************************************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:57 Friday 22 July 2022 00:25:28 +0000 (0:00:00.645) 0:00:19.162 *********** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--reload" ], "delta": "0:00:00.706828", "end": "2022-07-21 20:25:29.163331", "failed_when_result": false, "rc": 0, "start": "2022-07-21 20:25:28.456503" } STDOUT: success TASK [Permit traffic in default zone for https service] ************************ task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:64 Friday 22 July 2022 00:25:29 +0000 (0:00:01.080) 0:00:20.242 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Permit traffic in default zone for https service, again] ***************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:72 Friday 22 July 2022 00:25:30 +0000 (0:00:00.663) 0:00:20.906 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Permit traffic in default zone on port 8081/tcp] ************************* task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:80 Friday 22 July 2022 00:25:31 +0000 (0:00:00.533) 0:00:21.440 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Permit traffic in default zone on port 8081/tcp, again] ****************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:88 Friday 22 July 2022 00:25:31 +0000 (0:00:00.547) 0:00:21.987 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Allow port 161-162/udp in permanent default zone] ************************ task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:96 Friday 22 July 2022 00:25:32 +0000 (0:00:00.534) 0:00:22.521 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Allow port 161-162/udp in permanent default zone, again] ***************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:104 Friday 22 July 2022 00:25:32 +0000 (0:00:00.527) 0:00:23.049 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Do not permit traffic in default zone on port 8081/tcp] ****************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:112 Friday 22 July 2022 00:25:33 +0000 (0:00:00.526) 0:00:23.576 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Do not permit traffic in default zone on port 8081/tcp, again] *********** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:120 Friday 22 July 2022 00:25:33 +0000 (0:00:00.541) 0:00:24.117 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Allow service http in permanent dmz zone] ******************************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:128 Friday 22 July 2022 00:25:34 +0000 (0:00:00.544) 0:00:24.662 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Allow service http in permanent dmz zone, again] ************************* task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:137 Friday 22 July 2022 00:25:34 +0000 (0:00:00.526) 0:00:25.189 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Allow service ftp with limitation using rich rule in permanent default zone] *** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:146 Friday 22 July 2022 00:25:35 +0000 (0:00:00.539) 0:00:25.728 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Allow service ftp with limitation using rich rule in permanent default zone, again] *** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:154 Friday 22 July 2022 00:25:36 +0000 (0:00:00.538) 0:00:26.266 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Allow source 192.0.2.0/24 in internal zone] ****************************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:162 Friday 22 July 2022 00:25:36 +0000 (0:00:00.529) 0:00:26.796 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Allow source 192.0.2.0/24 in internal zone, again] *********************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:171 Friday 22 July 2022 00:25:37 +0000 (0:00:00.566) 0:00:27.362 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Allow interface eth2 in permanent trusted zone] ************************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:180 Friday 22 July 2022 00:25:37 +0000 (0:00:00.532) 0:00:27.895 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Allow interface eth2 in permanent trusted zone, again] ******************* task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:189 Friday 22 July 2022 00:25:38 +0000 (0:00:00.542) 0:00:28.437 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Allow masquerading in permament dmz zone] ******************************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:198 Friday 22 July 2022 00:25:38 +0000 (0:00:00.549) 0:00:28.987 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Allow masquerading in permament dmz zone, again] ************************* task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:206 Friday 22 July 2022 00:25:39 +0000 (0:00:00.553) 0:00:29.541 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Ensure permanent custom zone exists (no change)] ************************* task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:214 Friday 22 July 2022 00:25:39 +0000 (0:00:00.540) 0:00:30.081 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Ensure ICMP block inversion in permanent drop zone] ********************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:222 Friday 22 July 2022 00:25:40 +0000 (0:00:00.541) 0:00:30.622 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Ensure ICMP block inversion in permanent drop zone, again] *************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:230 Friday 22 July 2022 00:25:40 +0000 (0:00:00.556) 0:00:31.179 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Block ICMP echo-request in permanent drop zone] ************************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:238 Friday 22 July 2022 00:25:41 +0000 (0:00:00.565) 0:00:31.745 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Block ICMP echo-request in permanent drop zone, again] ******************* task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:247 Friday 22 July 2022 00:25:42 +0000 (0:00:00.595) 0:00:32.340 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Ensure default target in permanent internal zone (no change)] ************ task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:256 Friday 22 July 2022 00:25:42 +0000 (0:00:00.557) 0:00:32.898 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Ensure target ACCEPT in permanent internal zone] ************************* task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:265 Friday 22 July 2022 00:25:43 +0000 (0:00:00.567) 0:00:33.466 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Ensure target ACCEPT in permanent internal zone, again] ****************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:274 Friday 22 July 2022 00:25:44 +0000 (0:00:01.163) 0:00:34.629 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Ensure default target in permanent internal zone] ************************ task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:283 Friday 22 July 2022 00:25:44 +0000 (0:00:00.556) 0:00:35.186 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Ensure default target in permanent internal zone, again] ***************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:292 Friday 22 July 2022 00:25:45 +0000 (0:00:01.062) 0:00:36.249 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Redirect port 443 to 8443 with Rich Rule in permanent and runtime public zone] *** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:301 Friday 22 July 2022 00:25:46 +0000 (0:00:00.519) 0:00:36.769 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Redirect port 443 to 8443 with Rich Rule in permanent and runtime public zone, again] *** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:311 Friday 22 July 2022 00:25:47 +0000 (0:00:00.570) 0:00:37.340 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Firewalld custom zone] *************************************************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:321 Friday 22 July 2022 00:25:47 +0000 (0:00:00.537) 0:00:37.877 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true } TASK [assert firewalld custom zone] ******************************************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:329 Friday 22 July 2022 00:25:48 +0000 (0:00:01.026) 0:00:38.904 *********** ok: [/cache/rhel-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Add masquerade to custom zone] ******************************************* task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:334 Friday 22 July 2022 00:25:48 +0000 (0:00:00.037) 0:00:38.941 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Add masquerade to custom zone, again] ************************************ task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:344 Friday 22 July 2022 00:25:49 +0000 (0:00:00.527) 0:00:39.468 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Set the default zone to something other than dmz] ************************ task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:354 Friday 22 July 2022 00:25:49 +0000 (0:00:00.524) 0:00:39.993 *********** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--set-default-zone", "public" ], "delta": "0:00:00.245823", "end": "2022-07-21 20:25:49.510928", "rc": 0, "start": "2022-07-21 20:25:49.265105" } STDOUT: success STDERR: Warning: ZONE_ALREADY_SET: public TASK [set default zone] ******************************************************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:357 Friday 22 July 2022 00:25:50 +0000 (0:00:00.593) 0:00:40.586 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [set default zone, again] ************************************************* task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:364 Friday 22 July 2022 00:25:50 +0000 (0:00:00.574) 0:00:41.160 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [add multiple custom services] ******************************************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:371 Friday 22 July 2022 00:25:51 +0000 (0:00:00.546) 0:00:41.707 *********** ok: [/cache/rhel-8.qcow2] => { "changed": false, "failed_when_result": false } MSG: can only add, modify, or remove one service at a time TASK [add custom service without details] ************************************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:381 Friday 22 July 2022 00:25:51 +0000 (0:00:00.491) 0:00:42.198 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [add custom service that already exists] ********************************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:389 Friday 22 July 2022 00:25:52 +0000 (0:00:01.048) 0:00:43.246 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [add description to custom service] *************************************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:397 Friday 22 July 2022 00:25:53 +0000 (0:00:00.579) 0:00:43.825 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [add short description to custom service] ********************************* task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:406 Friday 22 July 2022 00:25:54 +0000 (0:00:01.057) 0:00:44.883 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [add source_ports to custom service] ************************************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:415 Friday 22 July 2022 00:25:55 +0000 (0:00:01.082) 0:00:45.965 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [add source_ports to custom service again] ******************************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:424 Friday 22 July 2022 00:25:56 +0000 (0:00:01.045) 0:00:47.011 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [add invalid protocol to custom service] ********************************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:433 Friday 22 July 2022 00:25:57 +0000 (0:00:00.564) 0:00:47.575 *********** ok: [/cache/rhel-8.qcow2] => { "changed": false, "failed_when_result": false } MSG: INVALID_PROTOCOL: nonexistentprotocol TASK [add valid protocol to custom service] ************************************ task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:442 Friday 22 July 2022 00:25:57 +0000 (0:00:00.571) 0:00:48.147 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [remove valid protocol from customservice] ******************************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:451 Friday 22 July 2022 00:25:58 +0000 (0:00:01.098) 0:00:49.246 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [remove ports from custom service without deleting service] *************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:460 Friday 22 July 2022 00:26:00 +0000 (0:00:01.050) 0:00:50.297 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [add destination addresses] *********************************************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:469 Friday 22 July 2022 00:26:01 +0000 (0:00:01.028) 0:00:51.326 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [delete custom service] *************************************************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:480 Friday 22 July 2022 00:26:02 +0000 (0:00:01.255) 0:00:52.581 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [delete custom service again] ********************************************* task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:488 Friday 22 July 2022 00:26:03 +0000 (0:00:01.077) 0:00:53.659 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [add custom service with all the elements at once] ************************ task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:496 Friday 22 July 2022 00:26:03 +0000 (0:00:00.554) 0:00:54.213 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [add helper module that already is on customservice] ********************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:513 Friday 22 July 2022 00:26:05 +0000 (0:00:01.067) 0:00:55.280 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [forward port 40 to 0.0.0.0:8080 (string)] ******************************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:522 Friday 22 July 2022 00:26:05 +0000 (0:00:00.586) 0:00:55.867 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [forward same port again (string)] **************************************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:529 Friday 22 July 2022 00:26:06 +0000 (0:00:00.627) 0:00:56.494 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [disable forward port (string)] ******************************************* task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:536 Friday 22 July 2022 00:26:06 +0000 (0:00:00.573) 0:00:57.068 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [forward port (dict form)] ************************************************ task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:543 Friday 22 July 2022 00:26:07 +0000 (0:00:00.583) 0:00:57.651 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [forward port again (dict form)] ****************************************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:554 Friday 22 July 2022 00:26:07 +0000 (0:00:00.547) 0:00:58.198 *********** ok: [/cache/rhel-8.qcow2] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [disable forward port (dict form)] **************************************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:565 Friday 22 July 2022 00:26:08 +0000 (0:00:00.543) 0:00:58.742 *********** changed: [/cache/rhel-8.qcow2] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Remove custom zone] ****************************************************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:584 Friday 22 July 2022 00:26:09 +0000 (0:00:00.555) 0:00:59.297 *********** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--delete-zone=custom" ], "delta": "0:00:00.262429", "end": "2022-07-21 20:26:08.848328", "failed_when_result": false, "rc": 0, "start": "2022-07-21 20:26:08.585899" } STDOUT: success TASK [Remove customzone zone] ************************************************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:589 Friday 22 July 2022 00:26:09 +0000 (0:00:00.630) 0:00:59.927 *********** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--delete-zone=customzone" ], "delta": "0:00:00.248861", "end": "2022-07-21 20:26:09.461367", "failed_when_result": false, "rc": 0, "start": "2022-07-21 20:26:09.212506" } STDOUT: success TASK [Reset internal zone to defaults] ***************************************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:594 Friday 22 July 2022 00:26:10 +0000 (0:00:00.615) 0:01:00.543 *********** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=internal" ], "delta": "0:00:00.270061", "end": "2022-07-21 20:26:10.099658", "failed_when_result": false, "rc": 0, "start": "2022-07-21 20:26:09.829597" } STDOUT: success TASK [Reset trusted zone to defaults] ****************************************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:599 Friday 22 July 2022 00:26:10 +0000 (0:00:00.638) 0:01:01.182 *********** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=trusted" ], "delta": "0:00:00.272608", "end": "2022-07-21 20:26:10.747456", "failed_when_result": false, "rc": 0, "start": "2022-07-21 20:26:10.474848" } STDOUT: success TASK [Reset dmz zone to defaults] ********************************************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:604 Friday 22 July 2022 00:26:11 +0000 (0:00:00.649) 0:01:01.831 *********** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=dmz" ], "delta": "0:00:00.276752", "end": "2022-07-21 20:26:11.409512", "failed_when_result": false, "rc": 0, "start": "2022-07-21 20:26:11.132760" } STDOUT: success TASK [Reset drop zone to defaults] ********************************************* task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:609 Friday 22 July 2022 00:26:12 +0000 (0:00:00.658) 0:01:02.490 *********** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=drop" ], "delta": "0:00:00.263843", "end": "2022-07-21 20:26:12.048019", "failed_when_result": false, "rc": 0, "start": "2022-07-21 20:26:11.784176" } STDOUT: success TASK [Reset public zone to defaults] ******************************************* task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:614 Friday 22 July 2022 00:26:12 +0000 (0:00:00.640) 0:01:03.130 *********** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=public" ], "delta": "0:00:00.269584", "end": "2022-07-21 20:26:12.683102", "failed_when_result": false, "rc": 0, "start": "2022-07-21 20:26:12.413518" } STDOUT: success TASK [Reset default zone to defaults] ****************************************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:619 Friday 22 July 2022 00:26:13 +0000 (0:00:00.637) 0:01:03.768 *********** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=public" ], "delta": "0:00:00.258932", "end": "2022-07-21 20:26:13.317130", "failed_when_result": false, "rc": 22, "start": "2022-07-21 20:26:13.058198" } STDERR: Error: NO_DEFAULTS: public MSG: non-zero return code TASK [Reload firewalld] ******************************************************** task path: /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:624 Friday 22 July 2022 00:26:14 +0000 (0:00:00.632) 0:01:04.400 *********** changed: [/cache/rhel-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--reload" ], "delta": "0:00:00.720303", "end": "2022-07-21 20:26:14.419823", "failed_when_result": false, "rc": 0, "start": "2022-07-21 20:26:13.699520" } STDOUT: success META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=85 changed=53 unreachable=0 failed=0 skipped=6 rescued=0 ignored=0 Friday 22 July 2022 00:26:15 +0000 (0:00:01.109) 0:01:05.510 *********** =============================================================================== fedora.linux_system_roles.firewall : Install firewalld ------------------ 6.24s /tmp/tmpx2we9fjr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 fedora.linux_system_roles.firewall : Ensure ansible_facts used by role --- 1.61s /tmp/tmpx2we9fjr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Gathering Facts --------------------------------------------------------- 1.53s /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:1 --------------------------- set up internal repositories -------------------------------------------- 1.38s /cache/rhel-8_setup.yml:5 ----------------------------------------------------- fedora.linux_system_roles.firewall : Install python3-firewall ----------- 1.26s /tmp/tmpx2we9fjr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:18 add destination addresses ----------------------------------------------- 1.26s /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:469 ------------------------- Ensure target ACCEPT in permanent internal zone ------------------------- 1.16s /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:265 ------------------------- Reload firewalld -------------------------------------------------------- 1.11s /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:624 ------------------------- add valid protocol to custom service ------------------------------------ 1.10s /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:442 ------------------------- fedora.linux_system_roles.firewall : Enable and start firewalld service --- 1.08s /tmp/tmpx2we9fjr/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 add short description to custom service --------------------------------- 1.08s /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:406 ------------------------- Reload firewalld -------------------------------------------------------- 1.08s /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:57 -------------------------- delete custom service --------------------------------------------------- 1.08s /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:480 ------------------------- add custom service with all the elements at once ------------------------ 1.07s /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:496 ------------------------- Ensure default target in permanent internal zone ------------------------ 1.06s /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:283 ------------------------- add description to custom service --------------------------------------- 1.06s /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:397 ------------------------- remove valid protocol from customservice -------------------------------- 1.05s /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:451 ------------------------- add custom service without details -------------------------------------- 1.05s /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:381 ------------------------- add source_ports to custom service -------------------------------------- 1.05s /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:415 ------------------------- remove ports from custom service without deleting service --------------- 1.03s /tmp/tmpbqqyrfee/tests/firewall/tests_ansible.yml:460 -------------------------