+ cd /tmp/tmpw9f8y6co/tests; TEST_SUBJECTS=/cache/rhel-8-y.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_firewall-59-3dbb545-rhel-8-y-gyxq4424/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 --skip-tags=tests::cleanup /tmp/tmpw9f8y6co/_setup.yml /tmp/tmpw9f8y6co/tests/tests_ansible.yml ansible-playbook 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Nov 16 2020, 22:23:17) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] Using /etc/ansible/ansible.cfg as config file Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: _setup.yml *********************************************************** 2 plays in /tmp/tmpw9f8y6co/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpw9f8y6co/_setup.yml:5 Thursday 16 December 2021 04:42:12 +0000 (0:00:00.023) 0:00:00.023 ***** ok: [/cache/rhel-8-y.qcow2] => { "groups": { "all": [ "/cache/rhel-8-y.qcow2" ], "localhost": [ "/cache/rhel-8-y.qcow2" ], "subjects": [ "/cache/rhel-8-y.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpw9f8y6co/_setup.yml:7 Thursday 16 December 2021 04:42:12 +0000 (0:00:00.044) 0:00:00.067 ***** skipping: [/cache/rhel-8-y.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /tmp/tmpw9f8y6co/_setup.yml:16 Thursday 16 December 2021 04:42:12 +0000 (0:00:00.043) 0:00:00.110 ***** changed: [/cache/rhel-8-y.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-y.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-y.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-y.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-y.qcow2 : ok=2 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 Thursday 16 December 2021 04:42:15 +0000 (0:00:02.997) 0:00:03.108 ***** =============================================================================== set up internal repositories -------------------------------------------- 3.00s /tmp/tmpw9f8y6co/_setup.yml:16 ------------------------------------------------ debug ------------------------------------------------------------------- 0.04s /tmp/tmpw9f8y6co/_setup.yml:5 ------------------------------------------------- fail -------------------------------------------------------------------- 0.04s /tmp/tmpw9f8y6co/_setup.yml:7 ------------------------------------------------- statically imported: /tmp/tmpw9f8y6co/tasks/firewalld.yml PLAYBOOK: tests_ansible.yml **************************************************** 1 plays in /tmp/tmpw9f8y6co/tests/tests_ansible.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:1 Thursday 16 December 2021 04:42:15 +0000 (0:00:00.048) 0:00:03.157 ***** ok: [/cache/rhel-8-y.qcow2] META: ran handlers TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpw9f8y6co/tasks/firewalld.yml:2 Thursday 16 December 2021 04:42:16 +0000 (0:00:01.016) 0:00:04.173 ***** changed: [/cache/rhel-8-y.qcow2] => { "changed": true, "rc": 0, "results": [ "Installed: python3-firewall-0.9.3-11.el8.noarch", "Installed: libnfnetlink-1.0.1-13.el8.x86_64", "Installed: iptables-ebtables-1.8.4-22.el8.x86_64", "Installed: firewalld-0.9.3-11.el8.noarch", "Installed: firewalld-filesystem-0.9.3-11.el8.noarch", "Installed: iptables-libs-1.8.4-22.el8.x86_64", "Installed: libnetfilter_conntrack-1.0.6-5.el8.x86_64", "Installed: libnftnl-1.1.5-4.el8.x86_64", "Installed: nftables-1:0.9.3-24.el8.x86_64", "Installed: ipset-7.1-1.el8.x86_64", "Installed: ipset-libs-7.1-1.el8.x86_64", "Installed: python3-nftables-1:0.9.3-24.el8.x86_64", "Installed: iptables-1.8.4-22.el8.x86_64" ] } TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmpw9f8y6co/tasks/firewalld.yml:7 Thursday 16 December 2021 04:42:22 +0000 (0:00:05.926) 0:00:10.100 ***** skipping: [/cache/rhel-8-y.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmpw9f8y6co/tasks/firewalld.yml:13 Thursday 16 December 2021 04:42:22 +0000 (0:00:00.049) 0:00:10.149 ***** ok: [/cache/rhel-8-y.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmpw9f8y6co/tasks/firewalld.yml:19 Thursday 16 December 2021 04:42:23 +0000 (0:00:01.242) 0:00:11.392 ***** changed: [/cache/rhel-8-y.qcow2] => { "changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "dbus.service system.slice basic.target sysinit.target dbus.socket polkit.service", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "network-pre.target multi-user.target shutdown.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": "iptables.service ip6tables.service nftables.service ipset.service ebtables.service shutdown.target", "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": "6972", "LimitNPROCSoft": "6972", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6972", "LimitSIGPENDINGSoft": "6972", "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 dbus.socket sysinit.target", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "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": "11155", "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 : Configure firewall] ************************ task path: /tmp/tmpw9f8y6co/tasks/main.yml:3 Thursday 16 December 2021 04:42:24 +0000 (0:00:01.109) 0:00:12.502 ***** TASK [Remove custom zone] ****************************************************** task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:14 Thursday 16 December 2021 04:42:24 +0000 (0:00:00.048) 0:00:12.550 ***** changed: [/cache/rhel-8-y.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--delete-zone=custom" ], "delta": "0:00:00.273211", "end": "2021-12-15 23:42:25.338612", "failed_when_result": false, "rc": 112, "start": "2021-12-15 23:42:25.065401" } STDERR: Error: INVALID_ZONE: custom MSG: non-zero return code TASK [Reset internal zone to defaults] ***************************************** task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:19 Thursday 16 December 2021 04:42:25 +0000 (0:00:00.806) 0:00:13.356 ***** changed: [/cache/rhel-8-y.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=internal" ], "delta": "0:00:00.255268", "end": "2021-12-15 23:42:25.991070", "failed_when_result": false, "rc": 22, "start": "2021-12-15 23:42:25.735802" } STDERR: Error: NO_DEFAULTS: internal MSG: non-zero return code TASK [Reset trusted zone to defaults] ****************************************** task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:24 Thursday 16 December 2021 04:42:26 +0000 (0:00:00.650) 0:00:14.006 ***** changed: [/cache/rhel-8-y.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=trusted" ], "delta": "0:00:00.293828", "end": "2021-12-15 23:42:26.692508", "failed_when_result": false, "rc": 22, "start": "2021-12-15 23:42:26.398680" } STDERR: Error: NO_DEFAULTS: trusted MSG: non-zero return code TASK [Reset dmz zone to defaults] ********************************************** task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:29 Thursday 16 December 2021 04:42:26 +0000 (0:00:00.701) 0:00:14.708 ***** changed: [/cache/rhel-8-y.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=dmz" ], "delta": "0:00:00.250661", "end": "2021-12-15 23:42:27.329421", "failed_when_result": false, "rc": 22, "start": "2021-12-15 23:42:27.078760" } STDERR: Error: NO_DEFAULTS: dmz MSG: non-zero return code TASK [Reset drop zone to defaults] ********************************************* task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:34 Thursday 16 December 2021 04:42:27 +0000 (0:00:00.636) 0:00:15.345 ***** changed: [/cache/rhel-8-y.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=drop" ], "delta": "0:00:00.250510", "end": "2021-12-15 23:42:27.977647", "failed_when_result": false, "rc": 22, "start": "2021-12-15 23:42:27.727137" } STDERR: Error: NO_DEFAULTS: drop MSG: non-zero return code TASK [Reset public zone to defaults] ******************************************* task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:39 Thursday 16 December 2021 04:42:28 +0000 (0:00:00.663) 0:00:16.008 ***** changed: [/cache/rhel-8-y.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=public" ], "delta": "0:00:00.269714", "end": "2021-12-15 23:42:28.663805", "failed_when_result": false, "rc": 22, "start": "2021-12-15 23:42:28.394091" } STDERR: Error: NO_DEFAULTS: public MSG: non-zero return code TASK [Reset default zone to defaults] ****************************************** task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:44 Thursday 16 December 2021 04:42:28 +0000 (0:00:00.668) 0:00:16.677 ***** changed: [/cache/rhel-8-y.qcow2] => { "changed": true, "cmd": "zone=$(firewall-cmd --get-default-zone)\nfirewall-cmd --permanent --load-zone-defaults=$zone\n", "delta": "0:00:00.511169", "end": "2021-12-15 23:42:29.578153", "failed_when_result": false, "rc": 22, "start": "2021-12-15 23:42:29.066984" } STDERR: Error: NO_DEFAULTS: public MSG: non-zero return code TASK [Create custom zone] ****************************************************** task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:52 Thursday 16 December 2021 04:42:29 +0000 (0:00:00.918) 0:00:17.595 ***** changed: [/cache/rhel-8-y.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--new-zone=custom" ], "delta": "0:00:01.243035", "end": "2021-12-15 23:42:31.215178", "failed_when_result": false, "rc": 0, "start": "2021-12-15 23:42:29.972143" } STDOUT: success TASK [Reload firewalld] ******************************************************** task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:57 Thursday 16 December 2021 04:42:31 +0000 (0:00:01.638) 0:00:19.233 ***** changed: [/cache/rhel-8-y.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--reload" ], "delta": "0:00:00.714942", "end": "2021-12-15 23:42:32.337510", "failed_when_result": false, "rc": 0, "start": "2021-12-15 23:42:31.622568" } STDOUT: success TASK [Permit traffic in default zone for https service] ************************ task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:64 Thursday 16 December 2021 04:42:32 +0000 (0:00:01.121) 0:00:20.355 ***** changed: [/cache/rhel-8-y.qcow2] => { "changed": true, "failed_when_result": false } TASK [Permit traffic in default zone for https service, again] ***************** task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:72 Thursday 16 December 2021 04:42:33 +0000 (0:00:00.695) 0:00:21.050 ***** ok: [/cache/rhel-8-y.qcow2] => { "changed": false, "failed_when_result": false } TASK [Permit traffic in default zone on port 8081/tcp] ************************* task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:80 Thursday 16 December 2021 04:42:33 +0000 (0:00:00.551) 0:00:21.602 ***** changed: [/cache/rhel-8-y.qcow2] => { "changed": true, "failed_when_result": false } TASK [Permit traffic in default zone on port 8081/tcp, again] ****************** task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:88 Thursday 16 December 2021 04:42:34 +0000 (0:00:00.570) 0:00:22.172 ***** ok: [/cache/rhel-8-y.qcow2] => { "changed": false, "failed_when_result": false } TASK [Allow port 161-162/udp in permanent default zone] ************************ task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:96 Thursday 16 December 2021 04:42:34 +0000 (0:00:00.564) 0:00:22.737 ***** changed: [/cache/rhel-8-y.qcow2] => { "changed": true, "failed_when_result": false } TASK [Allow port 161-162/udp in permanent default zone, again] ***************** task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:104 Thursday 16 December 2021 04:42:35 +0000 (0:00:00.539) 0:00:23.276 ***** ok: [/cache/rhel-8-y.qcow2] => { "changed": false, "failed_when_result": false } TASK [Do not permit traffic in default zone on port 8081/tcp] ****************** task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:112 Thursday 16 December 2021 04:42:36 +0000 (0:00:00.585) 0:00:23.861 ***** changed: [/cache/rhel-8-y.qcow2] => { "changed": true, "failed_when_result": false } TASK [Do not permit traffic in default zone on port 8081/tcp, again] *********** task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:120 Thursday 16 December 2021 04:42:36 +0000 (0:00:00.582) 0:00:24.443 ***** ok: [/cache/rhel-8-y.qcow2] => { "changed": false, "failed_when_result": false } TASK [Allow service http in permanent dmz zone] ******************************** task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:128 Thursday 16 December 2021 04:42:37 +0000 (0:00:00.553) 0:00:24.997 ***** changed: [/cache/rhel-8-y.qcow2] => { "changed": true, "failed_when_result": false } TASK [Allow service http in permanent dmz zone, again] ************************* task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:137 Thursday 16 December 2021 04:42:37 +0000 (0:00:00.576) 0:00:25.574 ***** ok: [/cache/rhel-8-y.qcow2] => { "changed": false, "failed_when_result": false } TASK [Allow service ftp with limitation using rich rule in permanent default zone] *** task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:146 Thursday 16 December 2021 04:42:38 +0000 (0:00:00.543) 0:00:26.117 ***** changed: [/cache/rhel-8-y.qcow2] => { "changed": true, "failed_when_result": false } TASK [Allow service ftp with limitation using rich rule in permanent default zone, again] *** task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:155 Thursday 16 December 2021 04:42:38 +0000 (0:00:00.555) 0:00:26.672 ***** ok: [/cache/rhel-8-y.qcow2] => { "changed": false, "failed_when_result": false } TASK [Allow source 192.0.2.0/24 in internal zone] ****************************** task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:164 Thursday 16 December 2021 04:42:39 +0000 (0:00:00.549) 0:00:27.222 ***** changed: [/cache/rhel-8-y.qcow2] => { "changed": true, "failed_when_result": false } TASK [Allow source 192.0.2.0/24 in internal zone, again] *********************** task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:173 Thursday 16 December 2021 04:42:39 +0000 (0:00:00.543) 0:00:27.765 ***** ok: [/cache/rhel-8-y.qcow2] => { "changed": false, "failed_when_result": false } TASK [Allow interface eth2 in permanent trusted zone] ************************** task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:182 Thursday 16 December 2021 04:42:40 +0000 (0:00:00.556) 0:00:28.322 ***** changed: [/cache/rhel-8-y.qcow2] => { "changed": true, "failed_when_result": false } TASK [Allow interface eth2 in permanent trusted zone, again] ******************* task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:191 Thursday 16 December 2021 04:42:41 +0000 (0:00:00.579) 0:00:28.902 ***** ok: [/cache/rhel-8-y.qcow2] => { "changed": false, "failed_when_result": false } TASK [Allow masquerading in permament dmz zone] ******************************** task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:200 Thursday 16 December 2021 04:42:41 +0000 (0:00:00.572) 0:00:29.475 ***** changed: [/cache/rhel-8-y.qcow2] => { "changed": true, "failed_when_result": false } TASK [Allow masquerading in permament dmz zone, again] ************************* task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:209 Thursday 16 December 2021 04:42:42 +0000 (0:00:00.558) 0:00:30.033 ***** ok: [/cache/rhel-8-y.qcow2] => { "changed": false, "failed_when_result": false } TASK [Ensure permanent custom zone exists (no change)] ************************* task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:218 Thursday 16 December 2021 04:42:42 +0000 (0:00:00.545) 0:00:30.578 ***** ok: [/cache/rhel-8-y.qcow2] => { "changed": false, "failed_when_result": false } TASK [Ensure ICMP block inversion in permanent drop zone] ********************** task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:226 Thursday 16 December 2021 04:42:43 +0000 (0:00:00.567) 0:00:31.146 ***** changed: [/cache/rhel-8-y.qcow2] => { "changed": true, "failed_when_result": false } TASK [Ensure ICMP block inversion in permanent drop zone, again] *************** task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:235 Thursday 16 December 2021 04:42:43 +0000 (0:00:00.557) 0:00:31.703 ***** ok: [/cache/rhel-8-y.qcow2] => { "changed": false, "failed_when_result": false } TASK [Block ICMP echo-request in permanent drop zone] ************************** task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:244 Thursday 16 December 2021 04:42:44 +0000 (0:00:00.565) 0:00:32.269 ***** changed: [/cache/rhel-8-y.qcow2] => { "changed": true, "failed_when_result": false } TASK [Block ICMP echo-request in permanent drop zone, again] ******************* task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:253 Thursday 16 December 2021 04:42:45 +0000 (0:00:00.572) 0:00:32.841 ***** ok: [/cache/rhel-8-y.qcow2] => { "changed": false, "failed_when_result": false } TASK [Ensure default target in permanent internal zone (no change)] ************ task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:262 Thursday 16 December 2021 04:42:45 +0000 (0:00:00.566) 0:00:33.408 ***** ok: [/cache/rhel-8-y.qcow2] => { "changed": false, "failed_when_result": false } TASK [Ensure target ACCEPT in permanent internal zone] ************************* task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:271 Thursday 16 December 2021 04:42:46 +0000 (0:00:00.554) 0:00:33.963 ***** changed: [/cache/rhel-8-y.qcow2] => { "changed": true, "failed_when_result": false } TASK [Ensure target ACCEPT in permanent internal zone, again] ****************** task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:280 Thursday 16 December 2021 04:42:46 +0000 (0:00:00.573) 0:00:34.536 ***** ok: [/cache/rhel-8-y.qcow2] => { "changed": false, "failed_when_result": false } TASK [Ensure default target in permanent internal zone] ************************ task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:289 Thursday 16 December 2021 04:42:47 +0000 (0:00:00.553) 0:00:35.089 ***** changed: [/cache/rhel-8-y.qcow2] => { "changed": true, "failed_when_result": false } TASK [Ensure default target in permanent internal zone, again] ***************** task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:298 Thursday 16 December 2021 04:42:47 +0000 (0:00:00.552) 0:00:35.641 ***** ok: [/cache/rhel-8-y.qcow2] => { "changed": false, "failed_when_result": false } TASK [Redirect port 443 to 8443 with Rich Rule in permanent and runtime public zone] *** task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:307 Thursday 16 December 2021 04:42:48 +0000 (0:00:00.559) 0:00:36.201 ***** [DEPRECATION WARNING]: Alias 'immediate' is deprecated. See the module docs for more information. This feature will be removed in a future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. changed: [/cache/rhel-8-y.qcow2] => { "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/tmpw9f8y6co/tests/tests_ansible.yml:319 Thursday 16 December 2021 04:42:49 +0000 (0:00:00.653) 0:00:36.854 ***** ok: [/cache/rhel-8-y.qcow2] => { "changed": false, "failed_when_result": false } TASK [Firewalld custom zone] *************************************************** task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:331 Thursday 16 December 2021 04:42:49 +0000 (0:00:00.542) 0:00:37.397 ***** changed: [/cache/rhel-8-y.qcow2] => { "changed": true } TASK [assert firewalld custom zone] ******************************************** task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:339 Thursday 16 December 2021 04:42:50 +0000 (0:00:01.154) 0:00:38.551 ***** ok: [/cache/rhel-8-y.qcow2] => { "changed": false } MSG: All assertions passed TASK [Add masquerade to custom zone] ******************************************* task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:344 Thursday 16 December 2021 04:42:50 +0000 (0:00:00.051) 0:00:38.603 ***** changed: [/cache/rhel-8-y.qcow2] => { "changed": true, "failed_when_result": false } TASK [Add masquerade to custom zone, again] ************************************ task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:354 Thursday 16 December 2021 04:42:51 +0000 (0:00:00.578) 0:00:39.182 ***** ok: [/cache/rhel-8-y.qcow2] => { "changed": false, "failed_when_result": false } TASK [Remove custom zone] ****************************************************** task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:368 Thursday 16 December 2021 04:42:51 +0000 (0:00:00.626) 0:00:39.808 ***** changed: [/cache/rhel-8-y.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--delete-zone=custom" ], "delta": "0:00:00.258469", "end": "2021-12-15 23:42:52.445866", "failed_when_result": false, "rc": 0, "start": "2021-12-15 23:42:52.187397" } STDOUT: success TASK [Reset internal zone to defaults] ***************************************** task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:373 Thursday 16 December 2021 04:42:52 +0000 (0:00:00.657) 0:00:40.466 ***** changed: [/cache/rhel-8-y.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=internal" ], "delta": "0:00:00.257733", "end": "2021-12-15 23:42:53.089864", "failed_when_result": false, "rc": 0, "start": "2021-12-15 23:42:52.832131" } STDOUT: success TASK [Reset trusted zone to defaults] ****************************************** task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:378 Thursday 16 December 2021 04:42:53 +0000 (0:00:00.640) 0:00:41.107 ***** changed: [/cache/rhel-8-y.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=trusted" ], "delta": "0:00:00.263476", "end": "2021-12-15 23:42:53.731740", "failed_when_result": false, "rc": 0, "start": "2021-12-15 23:42:53.468264" } STDOUT: success TASK [Reset dmz zone to defaults] ********************************************** task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:383 Thursday 16 December 2021 04:42:53 +0000 (0:00:00.649) 0:00:41.756 ***** changed: [/cache/rhel-8-y.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=dmz" ], "delta": "0:00:00.262731", "end": "2021-12-15 23:42:54.393398", "failed_when_result": false, "rc": 0, "start": "2021-12-15 23:42:54.130667" } STDOUT: success TASK [Reset drop zone to defaults] ********************************************* task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:388 Thursday 16 December 2021 04:42:54 +0000 (0:00:00.663) 0:00:42.419 ***** changed: [/cache/rhel-8-y.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=drop" ], "delta": "0:00:00.285267", "end": "2021-12-15 23:42:55.078966", "failed_when_result": false, "rc": 0, "start": "2021-12-15 23:42:54.793699" } STDOUT: success TASK [Reset public zone to defaults] ******************************************* task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:393 Thursday 16 December 2021 04:42:55 +0000 (0:00:00.683) 0:00:43.102 ***** changed: [/cache/rhel-8-y.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=public" ], "delta": "0:00:00.275573", "end": "2021-12-15 23:42:55.746501", "failed_when_result": false, "rc": 0, "start": "2021-12-15 23:42:55.470928" } STDOUT: success TASK [Reset default zone to defaults] ****************************************** task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:398 Thursday 16 December 2021 04:42:55 +0000 (0:00:00.662) 0:00:43.764 ***** changed: [/cache/rhel-8-y.qcow2] => { "changed": true, "cmd": "zone=$(firewall-cmd --get-default-zone)\nfirewall-cmd --permanent --load-zone-defaults=$zone\n", "delta": "0:00:00.539498", "end": "2021-12-15 23:42:56.685516", "failed_when_result": false, "rc": 22, "start": "2021-12-15 23:42:56.146018" } STDERR: Error: NO_DEFAULTS: public MSG: non-zero return code TASK [Reload firewalld] ******************************************************** task path: /tmp/tmpw9f8y6co/tests/tests_ansible.yml:406 Thursday 16 December 2021 04:42:56 +0000 (0:00:00.937) 0:00:44.701 ***** changed: [/cache/rhel-8-y.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--reload" ], "delta": "0:00:00.698158", "end": "2021-12-15 23:42:57.774529", "failed_when_result": false, "rc": 0, "start": "2021-12-15 23:42:57.076371" } STDOUT: success META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8-y.qcow2 : ok=57 changed=36 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 16 December 2021 04:42:57 +0000 (0:00:01.086) 0:00:45.788 ***** =============================================================================== linux-system-roles.firewall : Install firewalld ------------------------- 5.93s /tmp/tmpw9f8y6co/tasks/firewalld.yml:2 ---------------------------------------- set up internal repositories -------------------------------------------- 3.00s /tmp/tmpw9f8y6co/_setup.yml:16 ------------------------------------------------ Create custom zone ------------------------------------------------------ 1.64s /tmp/tmpw9f8y6co/tests/tests_ansible.yml:52 ----------------------------------- linux-system-roles.firewall : Install python3-firewall ------------------ 1.24s /tmp/tmpw9f8y6co/tasks/firewalld.yml:13 --------------------------------------- Firewalld custom zone --------------------------------------------------- 1.15s /tmp/tmpw9f8y6co/tests/tests_ansible.yml:331 ---------------------------------- Reload firewalld -------------------------------------------------------- 1.12s /tmp/tmpw9f8y6co/tests/tests_ansible.yml:57 ----------------------------------- linux-system-roles.firewall : Enable and start firewalld service -------- 1.11s /tmp/tmpw9f8y6co/tasks/firewalld.yml:19 --------------------------------------- Reload firewalld -------------------------------------------------------- 1.09s /tmp/tmpw9f8y6co/tests/tests_ansible.yml:406 ---------------------------------- Gathering Facts --------------------------------------------------------- 1.02s /tmp/tmpw9f8y6co/tests/tests_ansible.yml:1 ------------------------------------ Reset default zone to defaults ------------------------------------------ 0.94s /tmp/tmpw9f8y6co/tests/tests_ansible.yml:398 ---------------------------------- Reset default zone to defaults ------------------------------------------ 0.92s /tmp/tmpw9f8y6co/tests/tests_ansible.yml:44 ----------------------------------- Remove custom zone ------------------------------------------------------ 0.81s /tmp/tmpw9f8y6co/tests/tests_ansible.yml:14 ----------------------------------- Reset trusted zone to defaults ------------------------------------------ 0.70s /tmp/tmpw9f8y6co/tests/tests_ansible.yml:24 ----------------------------------- Permit traffic in default zone for https service ------------------------ 0.70s /tmp/tmpw9f8y6co/tests/tests_ansible.yml:64 ----------------------------------- Reset drop zone to defaults --------------------------------------------- 0.68s /tmp/tmpw9f8y6co/tests/tests_ansible.yml:388 ---------------------------------- Reset public zone to defaults ------------------------------------------- 0.67s /tmp/tmpw9f8y6co/tests/tests_ansible.yml:39 ----------------------------------- Reset drop zone to defaults --------------------------------------------- 0.66s /tmp/tmpw9f8y6co/tests/tests_ansible.yml:34 ----------------------------------- Reset dmz zone to defaults ---------------------------------------------- 0.66s /tmp/tmpw9f8y6co/tests/tests_ansible.yml:383 ---------------------------------- Reset public zone to defaults ------------------------------------------- 0.66s /tmp/tmpw9f8y6co/tests/tests_ansible.yml:393 ---------------------------------- Remove custom zone ------------------------------------------------------ 0.66s /tmp/tmpw9f8y6co/tests/tests_ansible.yml:368 ---------------------------------- + cd /tmp/tmpw9f8y6co/tests; TEST_SUBJECTS=/cache/rhel-8-y.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_firewall-59-3dbb545-rhel-8-y-gyxq4424/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 --skip-tags=tests::cleanup /tmp/tmpw9f8y6co/_setup.yml /tmp/tmpw9f8y6co/tests/tests_default.yml ansible-playbook 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Nov 16 2020, 22:23:17) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] Using /etc/ansible/ansible.cfg as config file Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: _setup.yml *********************************************************** 2 plays in /tmp/tmpw9f8y6co/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpw9f8y6co/_setup.yml:5 Thursday 16 December 2021 04:43:11 +0000 (0:00:00.023) 0:00:00.023 ***** ok: [/cache/rhel-8-y.qcow2] => { "groups": { "all": [ "/cache/rhel-8-y.qcow2" ], "localhost": [ "/cache/rhel-8-y.qcow2" ], "subjects": [ "/cache/rhel-8-y.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpw9f8y6co/_setup.yml:7 Thursday 16 December 2021 04:43:12 +0000 (0:00:00.044) 0:00:00.068 ***** skipping: [/cache/rhel-8-y.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /tmp/tmpw9f8y6co/_setup.yml:16 Thursday 16 December 2021 04:43:12 +0000 (0:00:00.043) 0:00:00.112 ***** changed: [/cache/rhel-8-y.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-y.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-y.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-y.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-y.qcow2 : ok=2 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 Thursday 16 December 2021 04:43:14 +0000 (0:00:02.436) 0:00:02.548 ***** =============================================================================== set up internal repositories -------------------------------------------- 2.44s /tmp/tmpw9f8y6co/_setup.yml:16 ------------------------------------------------ debug ------------------------------------------------------------------- 0.04s /tmp/tmpw9f8y6co/_setup.yml:5 ------------------------------------------------- fail -------------------------------------------------------------------- 0.04s /tmp/tmpw9f8y6co/_setup.yml:7 ------------------------------------------------- statically imported: /tmp/tmpw9f8y6co/tasks/firewalld.yml PLAYBOOK: tests_default.yml **************************************************** 1 plays in /tmp/tmpw9f8y6co/tests/tests_default.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpw9f8y6co/tests/tests_default.yml:1 Thursday 16 December 2021 04:43:14 +0000 (0:00:00.018) 0:00:02.566 ***** ok: [/cache/rhel-8-y.qcow2] META: ran handlers TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpw9f8y6co/tasks/firewalld.yml:2 Thursday 16 December 2021 04:43:15 +0000 (0:00:01.412) 0:00:03.978 ***** changed: [/cache/rhel-8-y.qcow2] => { "changed": true, "rc": 0, "results": [ "Installed: python3-firewall-0.9.3-11.el8.noarch", "Installed: libnfnetlink-1.0.1-13.el8.x86_64", "Installed: iptables-ebtables-1.8.4-22.el8.x86_64", "Installed: firewalld-0.9.3-11.el8.noarch", "Installed: firewalld-filesystem-0.9.3-11.el8.noarch", "Installed: iptables-libs-1.8.4-22.el8.x86_64", "Installed: libnetfilter_conntrack-1.0.6-5.el8.x86_64", "Installed: libnftnl-1.1.5-4.el8.x86_64", "Installed: nftables-1:0.9.3-24.el8.x86_64", "Installed: ipset-7.1-1.el8.x86_64", "Installed: ipset-libs-7.1-1.el8.x86_64", "Installed: python3-nftables-1:0.9.3-24.el8.x86_64", "Installed: iptables-1.8.4-22.el8.x86_64" ] } TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmpw9f8y6co/tasks/firewalld.yml:7 Thursday 16 December 2021 04:43:21 +0000 (0:00:06.055) 0:00:10.034 ***** skipping: [/cache/rhel-8-y.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmpw9f8y6co/tasks/firewalld.yml:13 Thursday 16 December 2021 04:43:22 +0000 (0:00:00.052) 0:00:10.086 ***** ok: [/cache/rhel-8-y.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmpw9f8y6co/tasks/firewalld.yml:19 Thursday 16 December 2021 04:43:23 +0000 (0:00:01.300) 0:00:11.387 ***** changed: [/cache/rhel-8-y.qcow2] => { "changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "dbus.socket polkit.service sysinit.target system.slice dbus.service basic.target", "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 iptables.service ipset.service ip6tables.service nftables.service ebtables.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": "6972", "LimitNPROCSoft": "6972", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6972", "LimitSIGPENDINGSoft": "6972", "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": "sysinit.target system.slice 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": "11155", "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 : Configure firewall] ************************ task path: /tmp/tmpw9f8y6co/tasks/main.yml:3 Thursday 16 December 2021 04:43:24 +0000 (0:00:01.149) 0:00:12.536 ***** META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8-y.qcow2 : ok=6 changed=3 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Thursday 16 December 2021 04:43:24 +0000 (0:00:00.051) 0:00:12.588 ***** =============================================================================== linux-system-roles.firewall : Install firewalld ------------------------- 6.06s /tmp/tmpw9f8y6co/tasks/firewalld.yml:2 ---------------------------------------- set up internal repositories -------------------------------------------- 2.44s /tmp/tmpw9f8y6co/_setup.yml:16 ------------------------------------------------ Gathering Facts --------------------------------------------------------- 1.41s /tmp/tmpw9f8y6co/tests/tests_default.yml:1 ------------------------------------ linux-system-roles.firewall : Install python3-firewall ------------------ 1.30s /tmp/tmpw9f8y6co/tasks/firewalld.yml:13 --------------------------------------- linux-system-roles.firewall : Enable and start firewalld service -------- 1.15s /tmp/tmpw9f8y6co/tasks/firewalld.yml:19 --------------------------------------- linux-system-roles.firewall : Install python-firewall ------------------- 0.05s /tmp/tmpw9f8y6co/tasks/firewalld.yml:7 ---------------------------------------- linux-system-roles.firewall : Configure firewall ------------------------ 0.05s /tmp/tmpw9f8y6co/tasks/main.yml:3 --------------------------------------------- debug ------------------------------------------------------------------- 0.04s /tmp/tmpw9f8y6co/_setup.yml:5 ------------------------------------------------- fail -------------------------------------------------------------------- 0.04s /tmp/tmpw9f8y6co/_setup.yml:7 ------------------------------------------------- + cd /tmp/tmpw9f8y6co/tests; TEST_SUBJECTS=/cache/rhel-8-y.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_firewall-59-3dbb545-rhel-8-y-gyxq4424/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 --skip-tags=tests::cleanup /tmp/tmpw9f8y6co/_setup.yml /tmp/tmpw9f8y6co/tests/tests_zone.yml ansible-playbook 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Nov 16 2020, 22:23:17) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] Using /etc/ansible/ansible.cfg as config file Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: _setup.yml *********************************************************** 2 plays in /tmp/tmpw9f8y6co/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpw9f8y6co/_setup.yml:5 Thursday 16 December 2021 04:43:39 +0000 (0:00:00.023) 0:00:00.023 ***** ok: [/cache/rhel-8-y.qcow2] => { "groups": { "all": [ "/cache/rhel-8-y.qcow2" ], "localhost": [ "/cache/rhel-8-y.qcow2" ], "subjects": [ "/cache/rhel-8-y.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpw9f8y6co/_setup.yml:7 Thursday 16 December 2021 04:43:39 +0000 (0:00:00.046) 0:00:00.070 ***** skipping: [/cache/rhel-8-y.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /tmp/tmpw9f8y6co/_setup.yml:16 Thursday 16 December 2021 04:43:39 +0000 (0:00:00.056) 0:00:00.126 ***** changed: [/cache/rhel-8-y.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-y.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-y.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-y.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-y.qcow2 : ok=2 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 Thursday 16 December 2021 04:43:42 +0000 (0:00:02.898) 0:00:03.024 ***** =============================================================================== set up internal repositories -------------------------------------------- 2.90s /tmp/tmpw9f8y6co/_setup.yml:16 ------------------------------------------------ fail -------------------------------------------------------------------- 0.06s /tmp/tmpw9f8y6co/_setup.yml:7 ------------------------------------------------- debug ------------------------------------------------------------------- 0.05s /tmp/tmpw9f8y6co/_setup.yml:5 ------------------------------------------------- PLAYBOOK: tests_zone.yml ******************************************************* 1 plays in /tmp/tmpw9f8y6co/tests/tests_zone.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpw9f8y6co/tests/tests_zone.yml:1 Thursday 16 December 2021 04:43:42 +0000 (0:00:00.012) 0:00:03.037 ***** ok: [/cache/rhel-8-y.qcow2] META: ran handlers TASK [include_role : linux-system-roles.firewall] ****************************** task path: /tmp/tmpw9f8y6co/tests/tests_zone.yml:6 Thursday 16 December 2021 04:43:43 +0000 (0:00:00.925) 0:00:03.962 ***** statically imported: /tmp/tmpw9f8y6co/tasks/firewalld.yml TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpw9f8y6co/tasks/firewalld.yml:2 Thursday 16 December 2021 04:43:43 +0000 (0:00:00.036) 0:00:03.998 ***** changed: [/cache/rhel-8-y.qcow2] => { "changed": true, "rc": 0, "results": [ "Installed: python3-firewall-0.9.3-11.el8.noarch", "Installed: libnfnetlink-1.0.1-13.el8.x86_64", "Installed: iptables-ebtables-1.8.4-22.el8.x86_64", "Installed: firewalld-0.9.3-11.el8.noarch", "Installed: firewalld-filesystem-0.9.3-11.el8.noarch", "Installed: iptables-libs-1.8.4-22.el8.x86_64", "Installed: libnetfilter_conntrack-1.0.6-5.el8.x86_64", "Installed: libnftnl-1.1.5-4.el8.x86_64", "Installed: nftables-1:0.9.3-24.el8.x86_64", "Installed: ipset-7.1-1.el8.x86_64", "Installed: ipset-libs-7.1-1.el8.x86_64", "Installed: python3-nftables-1:0.9.3-24.el8.x86_64", "Installed: iptables-1.8.4-22.el8.x86_64" ] } TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmpw9f8y6co/tasks/firewalld.yml:7 Thursday 16 December 2021 04:43:49 +0000 (0:00:05.892) 0:00:09.891 ***** skipping: [/cache/rhel-8-y.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmpw9f8y6co/tasks/firewalld.yml:13 Thursday 16 December 2021 04:43:49 +0000 (0:00:00.051) 0:00:09.942 ***** ok: [/cache/rhel-8-y.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmpw9f8y6co/tasks/firewalld.yml:19 Thursday 16 December 2021 04:43:50 +0000 (0:00:01.138) 0:00:11.081 ***** changed: [/cache/rhel-8-y.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 multi-user.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": "ip6tables.service nftables.service iptables.service shutdown.target ebtables.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": "6972", "LimitNPROCSoft": "6972", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6972", "LimitSIGPENDINGSoft": "6972", "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 system.slice sysinit.target", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "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": "11155", "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 : Configure firewall] ************************ task path: /tmp/tmpw9f8y6co/tasks/main.yml:3 Thursday 16 December 2021 04:43:51 +0000 (0:00:01.107) 0:00:12.188 ***** TASK [Verify used firewalld zones] ********************************************* task path: /tmp/tmpw9f8y6co/tests/tests_zone.yml:14 Thursday 16 December 2021 04:43:51 +0000 (0:00:00.049) 0:00:12.237 ***** statically imported: /tmp/tmpw9f8y6co/tasks/firewalld.yml TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpw9f8y6co/tasks/firewalld.yml:2 Thursday 16 December 2021 04:43:51 +0000 (0:00:00.068) 0:00:12.306 ***** ok: [/cache/rhel-8-y.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmpw9f8y6co/tasks/firewalld.yml:7 Thursday 16 December 2021 04:43:52 +0000 (0:00:01.181) 0:00:13.487 ***** skipping: [/cache/rhel-8-y.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmpw9f8y6co/tasks/firewalld.yml:13 Thursday 16 December 2021 04:43:52 +0000 (0:00:00.051) 0:00:13.539 ***** ok: [/cache/rhel-8-y.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmpw9f8y6co/tasks/firewalld.yml:19 Thursday 16 December 2021 04:43:53 +0000 (0:00:01.181) 0:00:14.721 ***** ok: [/cache/rhel-8-y.qcow2] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2021-12-15 23:43:51 EST", "ActiveEnterTimestampMonotonic": "24214113", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "polkit.service dbus.socket dbus.service sysinit.target basic.target system.slice", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Wed 2021-12-15 23:43:51 EST", "AssertTimestampMonotonic": "23941703", "Before": "shutdown.target multi-user.target network-pre.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2021-12-15 23:43:51 EST", "ConditionTimestampMonotonic": "23941703", "ConfigurationDirectoryMode": "0755", "Conflicts": "ip6tables.service nftables.service iptables.service shutdown.target ebtables.service ipset.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "11657", "ExecMainStartTimestamp": "Wed 2021-12-15 23:43:51 EST", "ExecMainStartTimestampMonotonic": "23942910", "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=[Wed 2021-12-15 23:43:51 EST] ; stop_time=[n/a] ; pid=11657 ; 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", "InactiveExitTimestamp": "Wed 2021-12-15 23:43:51 EST", "InactiveExitTimestampMonotonic": "23942943", "InvocationID": "79dd673d16314cfb88bf22420a2c0e78", "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": "6972", "LimitNPROCSoft": "6972", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6972", "LimitSIGPENDINGSoft": "6972", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "11657", "MemoryAccounting": "yes", "MemoryCurrent": "27414528", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket system.slice sysinit.target", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Wed 2021-12-15 23:43:51 EST", "StateChangeTimestampMonotonic": "24214113", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "2", "TasksMax": "11155", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogTimestamp": "Wed 2021-12-15 23:43:51 EST", "WatchdogTimestampMonotonic": "24214112", "WatchdogUSec": "0" } } TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmpw9f8y6co/tasks/main.yml:3 Thursday 16 December 2021 04:43:54 +0000 (0:00:00.553) 0:00:15.275 ***** ok: [/cache/rhel-8-y.qcow2] => (item={u'state': u'enabled', u'zone': u'internal'}) => { "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "internal" } } ok: [/cache/rhel-8-y.qcow2] => (item={u'state': u'enabled', u'zone': u'external'}) => { "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "external" } } ok: [/cache/rhel-8-y.qcow2] => (item={u'state': u'enabled', u'zone': u'trusted'}) => { "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "trusted" } } TASK [Fail on missing zones] *************************************************** task path: /tmp/tmpw9f8y6co/tests/tests_zone.yml:26 Thursday 16 December 2021 04:43:56 +0000 (0:00:01.815) 0:00:17.090 ***** skipping: [/cache/rhel-8-y.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Setup firewalld] ********************************************************* task path: /tmp/tmpw9f8y6co/tests/tests_zone.yml:32 Thursday 16 December 2021 04:43:56 +0000 (0:00:00.052) 0:00:17.142 ***** statically imported: /tmp/tmpw9f8y6co/tasks/firewalld.yml TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpw9f8y6co/tasks/firewalld.yml:2 Thursday 16 December 2021 04:43:56 +0000 (0:00:00.073) 0:00:17.216 ***** ok: [/cache/rhel-8-y.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmpw9f8y6co/tasks/firewalld.yml:7 Thursday 16 December 2021 04:43:57 +0000 (0:00:01.302) 0:00:18.519 ***** skipping: [/cache/rhel-8-y.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmpw9f8y6co/tasks/firewalld.yml:13 Thursday 16 December 2021 04:43:57 +0000 (0:00:00.052) 0:00:18.572 ***** ok: [/cache/rhel-8-y.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmpw9f8y6co/tasks/firewalld.yml:19 Thursday 16 December 2021 04:43:58 +0000 (0:00:01.126) 0:00:19.698 ***** ok: [/cache/rhel-8-y.qcow2] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2021-12-15 23:43:51 EST", "ActiveEnterTimestampMonotonic": "24214113", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "polkit.service dbus.socket dbus.service sysinit.target basic.target system.slice", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Wed 2021-12-15 23:43:51 EST", "AssertTimestampMonotonic": "23941703", "Before": "shutdown.target multi-user.target network-pre.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2021-12-15 23:43:51 EST", "ConditionTimestampMonotonic": "23941703", "ConfigurationDirectoryMode": "0755", "Conflicts": "ip6tables.service nftables.service iptables.service shutdown.target ebtables.service ipset.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "11657", "ExecMainStartTimestamp": "Wed 2021-12-15 23:43:51 EST", "ExecMainStartTimestampMonotonic": "23942910", "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=[Wed 2021-12-15 23:43:51 EST] ; stop_time=[n/a] ; pid=11657 ; 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", "InactiveExitTimestamp": "Wed 2021-12-15 23:43:51 EST", "InactiveExitTimestampMonotonic": "23942943", "InvocationID": "79dd673d16314cfb88bf22420a2c0e78", "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": "6972", "LimitNPROCSoft": "6972", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6972", "LimitSIGPENDINGSoft": "6972", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "11657", "MemoryAccounting": "yes", "MemoryCurrent": "28385280", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket system.slice sysinit.target", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Wed 2021-12-15 23:43:51 EST", "StateChangeTimestampMonotonic": "24214113", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "2", "TasksMax": "11155", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogTimestamp": "Wed 2021-12-15 23:43:51 EST", "WatchdogTimestampMonotonic": "24214112", "WatchdogUSec": "0" } } TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmpw9f8y6co/tasks/main.yml:3 Thursday 16 December 2021 04:43:59 +0000 (0:00:00.579) 0:00:20.277 ***** changed: [/cache/rhel-8-y.qcow2] => (item={u'state': u'enabled', u'zone': u'internal', u'port': [u'443/tcp', u'443/udp'], u'service': [u'tftp', u'ftp'], u'forward_port': [u'447/tcp;;1.2.3.4', u'448/tcp;;1.2.3.5']}) => { "ansible_loop_var": "item", "changed": true, "item": { "forward_port": [ "447/tcp;;1.2.3.4", "448/tcp;;1.2.3.5" ], "port": [ "443/tcp", "443/udp" ], "service": [ "tftp", "ftp" ], "state": "enabled", "zone": "internal" } } TASK [Fail if no changes are done] ********************************************* task path: /tmp/tmpw9f8y6co/tests/tests_zone.yml:45 Thursday 16 December 2021 04:44:00 +0000 (0:00:00.599) 0:00:20.877 ***** skipping: [/cache/rhel-8-y.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Setup firewalld again] *************************************************** task path: /tmp/tmpw9f8y6co/tests/tests_zone.yml:51 Thursday 16 December 2021 04:44:00 +0000 (0:00:00.051) 0:00:20.928 ***** TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpw9f8y6co/tasks/firewalld.yml:2 Thursday 16 December 2021 04:44:00 +0000 (0:00:00.074) 0:00:21.003 ***** ok: [/cache/rhel-8-y.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmpw9f8y6co/tasks/firewalld.yml:7 Thursday 16 December 2021 04:44:01 +0000 (0:00:01.224) 0:00:22.228 ***** skipping: [/cache/rhel-8-y.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmpw9f8y6co/tasks/firewalld.yml:13 Thursday 16 December 2021 04:44:01 +0000 (0:00:00.051) 0:00:22.279 ***** ok: [/cache/rhel-8-y.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmpw9f8y6co/tasks/firewalld.yml:19 Thursday 16 December 2021 04:44:02 +0000 (0:00:01.166) 0:00:23.445 ***** ok: [/cache/rhel-8-y.qcow2] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2021-12-15 23:43:51 EST", "ActiveEnterTimestampMonotonic": "24214113", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "polkit.service dbus.socket dbus.service sysinit.target basic.target system.slice", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Wed 2021-12-15 23:43:51 EST", "AssertTimestampMonotonic": "23941703", "Before": "shutdown.target multi-user.target network-pre.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2021-12-15 23:43:51 EST", "ConditionTimestampMonotonic": "23941703", "ConfigurationDirectoryMode": "0755", "Conflicts": "ip6tables.service nftables.service iptables.service shutdown.target ebtables.service ipset.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "11657", "ExecMainStartTimestamp": "Wed 2021-12-15 23:43:51 EST", "ExecMainStartTimestampMonotonic": "23942910", "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=[Wed 2021-12-15 23:43:51 EST] ; stop_time=[n/a] ; pid=11657 ; 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", "InactiveExitTimestamp": "Wed 2021-12-15 23:43:51 EST", "InactiveExitTimestampMonotonic": "23942943", "InvocationID": "79dd673d16314cfb88bf22420a2c0e78", "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": "6972", "LimitNPROCSoft": "6972", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6972", "LimitSIGPENDINGSoft": "6972", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "11657", "MemoryAccounting": "yes", "MemoryCurrent": "28389376", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket system.slice sysinit.target", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Wed 2021-12-15 23:43:51 EST", "StateChangeTimestampMonotonic": "24214113", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "2", "TasksMax": "11155", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogTimestamp": "Wed 2021-12-15 23:43:51 EST", "WatchdogTimestampMonotonic": "24214112", "WatchdogUSec": "0" } } TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmpw9f8y6co/tasks/main.yml:3 Thursday 16 December 2021 04:44:03 +0000 (0:00:00.530) 0:00:23.975 ***** ok: [/cache/rhel-8-y.qcow2] => (item={u'state': u'enabled', u'zone': u'internal', u'port': [u'443/tcp', u'443/udp'], u'service': [u'tftp', u'ftp'], u'forward_port': [u'447/tcp;;1.2.3.4', u'448/tcp;;1.2.3.5']}) => { "ansible_loop_var": "item", "changed": false, "item": { "forward_port": [ "447/tcp;;1.2.3.4", "448/tcp;;1.2.3.5" ], "port": [ "443/tcp", "443/udp" ], "service": [ "tftp", "ftp" ], "state": "enabled", "zone": "internal" } } TASK [Fail on newly changes] *************************************************** task path: /tmp/tmpw9f8y6co/tests/tests_zone.yml:64 Thursday 16 December 2021 04:44:03 +0000 (0:00:00.603) 0:00:24.579 ***** skipping: [/cache/rhel-8-y.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify firewalld zone internal services] ********************************* task path: /tmp/tmpw9f8y6co/tests/tests_zone.yml:70 Thursday 16 December 2021 04:44:03 +0000 (0:00:00.052) 0:00:24.632 ***** changed: [/cache/rhel-8-y.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-services" ], "delta": "0:00:00.255162", "end": "2021-12-15 23:44:04.762878", "failed_when_result": false, "rc": 0, "start": "2021-12-15 23:44:04.507716" } STDOUT: cockpit dhcpv6-client ftp mdns samba-client ssh tftp TASK [Verify firewalld zone internal ports] ************************************ task path: /tmp/tmpw9f8y6co/tests/tests_zone.yml:77 Thursday 16 December 2021 04:44:04 +0000 (0:00:00.773) 0:00:25.405 ***** changed: [/cache/rhel-8-y.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-ports" ], "delta": "0:00:00.264195", "end": "2021-12-15 23:44:05.414107", "failed_when_result": false, "rc": 0, "start": "2021-12-15 23:44:05.149912" } STDOUT: 443/tcp 443/udp TASK [Verify firewalld zone internal forward ports] **************************** task path: /tmp/tmpw9f8y6co/tests/tests_zone.yml:84 Thursday 16 December 2021 04:44:05 +0000 (0:00:00.650) 0:00:26.056 ***** changed: [/cache/rhel-8-y.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-forward-ports" ], "delta": "0:00:00.251531", "end": "2021-12-15 23:44:06.078309", "failed_when_result": false, "rc": 0, "start": "2021-12-15 23:44:05.826778" } STDOUT: port=447:proto=tcp:toport=:toaddr=1.2.3.4 port=448:proto=tcp:toport=:toaddr=1.2.3.5 TASK [Reset to zone defaults] ************************************************** task path: /tmp/tmpw9f8y6co/tests/tests_zone.yml:97 Thursday 16 December 2021 04:44:05 +0000 (0:00:00.664) 0:00:26.720 ***** changed: [/cache/rhel-8-y.qcow2] => { "changed": true, "cmd": "firewall-cmd --permanent --load-zone-defaults=internal\nfirewall-cmd --permanent --load-zone-defaults=external\nfirewall-cmd --permanent --load-zone-defaults=trusted\nfirewall-cmd --reload\n", "delta": "0:00:01.510691", "end": "2021-12-15 23:44:07.994344", "rc": 0, "start": "2021-12-15 23:44:06.483653" } STDOUT: success success success success META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8-y.qcow2 : ok=22 changed=8 unreachable=0 failed=0 skipped=9 rescued=0 ignored=0 Thursday 16 December 2021 04:44:07 +0000 (0:00:01.906) 0:00:28.626 ***** =============================================================================== linux-system-roles.firewall : Install firewalld ------------------------- 5.89s /tmp/tmpw9f8y6co/tasks/firewalld.yml:2 ---------------------------------------- set up internal repositories -------------------------------------------- 2.90s /tmp/tmpw9f8y6co/_setup.yml:16 ------------------------------------------------ Reset to zone defaults -------------------------------------------------- 1.91s /tmp/tmpw9f8y6co/tests/tests_zone.yml:97 -------------------------------------- linux-system-roles.firewall : Configure firewall ------------------------ 1.82s /tmp/tmpw9f8y6co/tasks/main.yml:3 --------------------------------------------- linux-system-roles.firewall : Install firewalld ------------------------- 1.22s /tmp/tmpw9f8y6co/tasks/firewalld.yml:2 ---------------------------------------- linux-system-roles.firewall : Install python3-firewall ------------------ 1.18s /tmp/tmpw9f8y6co/tasks/firewalld.yml:13 --------------------------------------- linux-system-roles.firewall : Install firewalld ------------------------- 1.18s /tmp/tmpw9f8y6co/tasks/firewalld.yml:2 ---------------------------------------- linux-system-roles.firewall : Install python3-firewall ------------------ 1.17s /tmp/tmpw9f8y6co/tasks/firewalld.yml:13 --------------------------------------- linux-system-roles.firewall : Install python3-firewall ------------------ 1.14s /tmp/tmpw9f8y6co/tasks/firewalld.yml:13 --------------------------------------- linux-system-roles.firewall : Enable and start firewalld service -------- 1.11s /tmp/tmpw9f8y6co/tasks/firewalld.yml:19 --------------------------------------- Gathering Facts --------------------------------------------------------- 0.93s /tmp/tmpw9f8y6co/tests/tests_zone.yml:1 --------------------------------------- Verify firewalld zone internal services --------------------------------- 0.77s /tmp/tmpw9f8y6co/tests/tests_zone.yml:70 -------------------------------------- Verify firewalld zone internal forward ports ---------------------------- 0.66s /tmp/tmpw9f8y6co/tests/tests_zone.yml:84 -------------------------------------- Verify firewalld zone internal ports ------------------------------------ 0.65s /tmp/tmpw9f8y6co/tests/tests_zone.yml:77 -------------------------------------- linux-system-roles.firewall : Configure firewall ------------------------ 0.60s /tmp/tmpw9f8y6co/tasks/main.yml:3 --------------------------------------------- linux-system-roles.firewall : Enable and start firewalld service -------- 0.55s /tmp/tmpw9f8y6co/tasks/firewalld.yml:19 --------------------------------------- linux-system-roles.firewall : Enable and start firewalld service -------- 0.53s /tmp/tmpw9f8y6co/tasks/firewalld.yml:19 --------------------------------------- Setup firewalld again --------------------------------------------------- 0.07s /tmp/tmpw9f8y6co/tests/tests_zone.yml:51 -------------------------------------- Setup firewalld --------------------------------------------------------- 0.07s /tmp/tmpw9f8y6co/tests/tests_zone.yml:32 -------------------------------------- Verify used firewalld zones --------------------------------------------- 0.07s /tmp/tmpw9f8y6co/tests/tests_zone.yml:14 --------------------------------------