+ cd /tmp/tmpknen55vk/tests; TEST_SUBJECTS=/cache/centos-8.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_firewall-58-6d38ee5-centos-8-mmtbp1qk/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 --skip-tags=tests::cleanup /tmp/tmpknen55vk/_setup.yml /tmp/tmpknen55vk/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/tmpknen55vk/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpknen55vk/_setup.yml:5 Tuesday 14 December 2021 01:23:18 +0000 (0:00:00.025) 0:00:00.025 ****** ok: [/cache/centos-8.qcow2] => { "groups": { "all": [ "/cache/centos-8.qcow2" ], "localhost": [ "/cache/centos-8.qcow2" ], "subjects": [ "/cache/centos-8.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpknen55vk/_setup.yml:7 Tuesday 14 December 2021 01:23:18 +0000 (0:00:00.049) 0:00:00.074 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY [Enable HA repos] ********************************************************* META: ran handlers TASK [Enable HA repos] ********************************************************* task path: /tmp/tmpknen55vk/_setup.yml:16 Tuesday 14 December 2021 01:23:18 +0000 (0:00:00.049) 0:00:00.124 ****** [WARNING]: Consider using the dnf module rather than running 'dnf'. If you need to use command because dnf is insufficient you can add 'warn: false' to this command task or set 'command_warnings=False' in ansible.cfg to get rid of this message. changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "ha" ], "delta": "0:00:00.397674", "end": "2021-12-14 01:23:18.796082", "rc": 0, "start": "2021-12-14 01:23:18.398408" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=2 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 Tuesday 14 December 2021 01:23:19 +0000 (0:00:01.084) 0:00:01.208 ****** =============================================================================== Enable HA repos --------------------------------------------------------- 1.08s /tmp/tmpknen55vk/_setup.yml:16 ------------------------------------------------ fail -------------------------------------------------------------------- 0.05s /tmp/tmpknen55vk/_setup.yml:7 ------------------------------------------------- debug ------------------------------------------------------------------- 0.05s /tmp/tmpknen55vk/_setup.yml:5 ------------------------------------------------- statically imported: /tmp/tmpknen55vk/tasks/firewalld.yml PLAYBOOK: tests_ansible.yml **************************************************** 1 plays in /tmp/tmpknen55vk/tests/tests_ansible.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:1 Tuesday 14 December 2021 01:23:19 +0000 (0:00:00.242) 0:00:01.450 ****** ok: [/cache/centos-8.qcow2] META: ran handlers TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpknen55vk/tasks/firewalld.yml:2 Tuesday 14 December 2021 01:23:20 +0000 (0:00:01.007) 0:00:02.457 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "rc": 0, "results": [ "Installed: nftables-1:0.9.3-21.el8.x86_64", "Installed: ipset-7.1-1.el8.x86_64", "Installed: libnetfilter_conntrack-1.0.6-5.el8.x86_64", "Installed: ipset-libs-7.1-1.el8.x86_64", "Installed: iptables-1.8.4-20.el8.x86_64", "Installed: iptables-ebtables-1.8.4-20.el8.x86_64", "Installed: libnfnetlink-1.0.1-13.el8.x86_64", "Installed: iptables-libs-1.8.4-20.el8.x86_64", "Installed: firewalld-0.9.3-7.el8.noarch", "Installed: firewalld-filesystem-0.9.3-7.el8.noarch", "Installed: libnftnl-1.1.5-4.el8.x86_64", "Installed: python3-nftables-1:0.9.3-21.el8.x86_64", "Installed: python3-firewall-0.9.3-7.el8.noarch", "Removed: iptables-libs-1.8.4-17.el8.x86_64" ] } TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmpknen55vk/tasks/firewalld.yml:7 Tuesday 14 December 2021 01:23:29 +0000 (0:00:09.248) 0:00:11.705 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmpknen55vk/tasks/firewalld.yml:13 Tuesday 14 December 2021 01:23:29 +0000 (0:00:00.056) 0:00:11.762 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmpknen55vk/tasks/firewalld.yml:19 Tuesday 14 December 2021 01:23:31 +0000 (0:00:01.325) 0:00:13.087 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "dbus.socket sysinit.target basic.target dbus.service system.slice polkit.service", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "network-pre.target shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "ip6tables.service ipset.service nftables.service shutdown.target iptables.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": "infinity", "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": "6995", "LimitNPROCSoft": "6995", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6995", "LimitSIGPENDINGSoft": "6995", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket sysinit.target system.slice", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "11192", "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/tmpknen55vk/tasks/main.yml:3 Tuesday 14 December 2021 01:23:32 +0000 (0:00:01.154) 0:00:14.242 ****** TASK [Remove custom zone] ****************************************************** task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:14 Tuesday 14 December 2021 01:23:32 +0000 (0:00:00.059) 0:00:14.301 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--delete-zone=custom" ], "delta": "0:00:00.258414", "end": "2021-12-14 01:23:32.512669", "failed_when_result": false, "rc": 112, "start": "2021-12-14 01:23:32.254255" } STDERR: Error: INVALID_ZONE: custom MSG: non-zero return code TASK [Reset internal zone to defaults] ***************************************** task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:19 Tuesday 14 December 2021 01:23:33 +0000 (0:00:00.662) 0:00:14.963 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=internal" ], "delta": "0:00:00.259940", "end": "2021-12-14 01:23:33.177267", "failed_when_result": false, "rc": 22, "start": "2021-12-14 01:23:32.917327" } STDERR: Error: NO_DEFAULTS: internal MSG: non-zero return code TASK [Reset trusted zone to defaults] ****************************************** task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:24 Tuesday 14 December 2021 01:23:33 +0000 (0:00:00.667) 0:00:15.631 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=trusted" ], "delta": "0:00:00.252741", "end": "2021-12-14 01:23:33.807891", "failed_when_result": false, "rc": 22, "start": "2021-12-14 01:23:33.555150" } STDERR: Error: NO_DEFAULTS: trusted MSG: non-zero return code TASK [Reset dmz zone to defaults] ********************************************** task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:29 Tuesday 14 December 2021 01:23:34 +0000 (0:00:00.627) 0:00:16.258 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=dmz" ], "delta": "0:00:00.258509", "end": "2021-12-14 01:23:34.456967", "failed_when_result": false, "rc": 22, "start": "2021-12-14 01:23:34.198458" } STDERR: Error: NO_DEFAULTS: dmz MSG: non-zero return code TASK [Reset drop zone to defaults] ********************************************* task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:34 Tuesday 14 December 2021 01:23:35 +0000 (0:00:00.649) 0:00:16.908 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=drop" ], "delta": "0:00:00.254392", "end": "2021-12-14 01:23:35.096584", "failed_when_result": false, "rc": 22, "start": "2021-12-14 01:23:34.842192" } STDERR: Error: NO_DEFAULTS: drop MSG: non-zero return code TASK [Reset public zone to defaults] ******************************************* task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:39 Tuesday 14 December 2021 01:23:35 +0000 (0:00:00.646) 0:00:17.555 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=public" ], "delta": "0:00:00.257125", "end": "2021-12-14 01:23:35.744183", "failed_when_result": false, "rc": 0, "start": "2021-12-14 01:23:35.487058" } STDOUT: success TASK [Reset default zone to defaults] ****************************************** task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:44 Tuesday 14 December 2021 01:23:36 +0000 (0:00:00.640) 0:00:18.195 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": "zone=$(firewall-cmd --get-default-zone)\nfirewall-cmd --permanent --load-zone-defaults=$zone\n", "delta": "0:00:00.504118", "end": "2021-12-14 01:23:36.638639", "failed_when_result": false, "rc": 22, "start": "2021-12-14 01:23:36.134521" } STDERR: Error: NO_DEFAULTS: public MSG: non-zero return code TASK [Create custom zone] ****************************************************** task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:52 Tuesday 14 December 2021 01:23:37 +0000 (0:00:00.895) 0:00:19.091 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--new-zone=custom" ], "delta": "0:00:00.237581", "end": "2021-12-14 01:23:37.264287", "failed_when_result": false, "rc": 0, "start": "2021-12-14 01:23:37.026706" } STDOUT: success TASK [Reload firewalld] ******************************************************** task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:57 Tuesday 14 December 2021 01:23:37 +0000 (0:00:00.623) 0:00:19.714 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--reload" ], "delta": "0:00:00.705443", "end": "2021-12-14 01:23:38.351511", "failed_when_result": false, "rc": 0, "start": "2021-12-14 01:23:37.646068" } STDOUT: success TASK [Permit traffic in default zone for https service] ************************ task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:64 Tuesday 14 December 2021 01:23:38 +0000 (0:00:01.089) 0:00:20.804 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "failed_when_result": false } TASK [Permit traffic in default zone for https service, again] ***************** task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:72 Tuesday 14 December 2021 01:23:39 +0000 (0:00:00.708) 0:00:21.512 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "failed_when_result": false } TASK [Permit traffic in default zone on port 8081/tcp] ************************* task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:80 Tuesday 14 December 2021 01:23:40 +0000 (0:00:00.554) 0:00:22.067 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "failed_when_result": false } TASK [Permit traffic in default zone on port 8081/tcp, again] ****************** task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:88 Tuesday 14 December 2021 01:23:40 +0000 (0:00:00.545) 0:00:22.613 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "failed_when_result": false } TASK [Allow port 161-162/udp in permanent default zone] ************************ task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:96 Tuesday 14 December 2021 01:23:41 +0000 (0:00:00.546) 0:00:23.159 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "failed_when_result": false } TASK [Allow port 161-162/udp in permanent default zone, again] ***************** task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:104 Tuesday 14 December 2021 01:23:41 +0000 (0:00:00.562) 0:00:23.722 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "failed_when_result": false } TASK [Do not permit traffic in default zone on port 8081/tcp] ****************** task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:112 Tuesday 14 December 2021 01:23:42 +0000 (0:00:00.548) 0:00:24.270 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "failed_when_result": false } TASK [Do not permit traffic in default zone on port 8081/tcp, again] *********** task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:120 Tuesday 14 December 2021 01:23:42 +0000 (0:00:00.575) 0:00:24.846 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "failed_when_result": false } TASK [Allow service http in permanent dmz zone] ******************************** task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:128 Tuesday 14 December 2021 01:23:43 +0000 (0:00:00.536) 0:00:25.383 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "failed_when_result": false } TASK [Allow service http in permanent dmz zone, again] ************************* task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:137 Tuesday 14 December 2021 01:23:44 +0000 (0:00:00.562) 0:00:25.946 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "failed_when_result": false } TASK [Allow service ftp with limitation using rich rule in permanent default zone] *** task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:146 Tuesday 14 December 2021 01:23:44 +0000 (0:00:00.554) 0:00:26.501 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "failed_when_result": false } TASK [Allow service ftp with limitation using rich rule in permanent default zone, again] *** task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:155 Tuesday 14 December 2021 01:23:45 +0000 (0:00:00.545) 0:00:27.046 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "failed_when_result": false } TASK [Allow source 192.0.2.0/24 in internal zone] ****************************** task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:164 Tuesday 14 December 2021 01:23:45 +0000 (0:00:00.554) 0:00:27.601 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "failed_when_result": false } TASK [Allow source 192.0.2.0/24 in internal zone, again] *********************** task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:173 Tuesday 14 December 2021 01:23:46 +0000 (0:00:00.553) 0:00:28.154 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "failed_when_result": false } TASK [Allow interface eth2 in permanent trusted zone] ************************** task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:182 Tuesday 14 December 2021 01:23:46 +0000 (0:00:00.566) 0:00:28.721 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "failed_when_result": false } TASK [Allow interface eth2 in permanent trusted zone, again] ******************* task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:191 Tuesday 14 December 2021 01:23:47 +0000 (0:00:00.563) 0:00:29.284 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "failed_when_result": false } TASK [Allow masquerading in permament dmz zone] ******************************** task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:200 Tuesday 14 December 2021 01:23:47 +0000 (0:00:00.538) 0:00:29.823 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "failed_when_result": false } TASK [Allow masquerading in permament dmz zone, again] ************************* task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:209 Tuesday 14 December 2021 01:23:48 +0000 (0:00:00.559) 0:00:30.382 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "failed_when_result": false } TASK [Ensure permanent custom zone exists (no change)] ************************* task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:218 Tuesday 14 December 2021 01:23:49 +0000 (0:00:00.543) 0:00:30.925 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "failed_when_result": false } TASK [Ensure ICMP block inversion in permanent drop zone] ********************** task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:226 Tuesday 14 December 2021 01:23:49 +0000 (0:00:00.542) 0:00:31.468 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "failed_when_result": false } TASK [Ensure ICMP block inversion in permanent drop zone, again] *************** task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:235 Tuesday 14 December 2021 01:23:50 +0000 (0:00:00.541) 0:00:32.009 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "failed_when_result": false } TASK [Block ICMP echo-request in permanent drop zone] ************************** task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:244 Tuesday 14 December 2021 01:23:50 +0000 (0:00:00.546) 0:00:32.556 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "failed_when_result": false } TASK [Block ICMP echo-request in permanent drop zone, again] ******************* task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:253 Tuesday 14 December 2021 01:23:51 +0000 (0:00:00.605) 0:00:33.161 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "failed_when_result": false } TASK [Ensure default target in permanent internal zone (no change)] ************ task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:262 Tuesday 14 December 2021 01:23:51 +0000 (0:00:00.559) 0:00:33.720 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "failed_when_result": false } TASK [Ensure target ACCEPT in permanent internal zone] ************************* task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:271 Tuesday 14 December 2021 01:23:52 +0000 (0:00:00.560) 0:00:34.280 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "failed_when_result": false } TASK [Ensure target ACCEPT in permanent internal zone, again] ****************** task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:280 Tuesday 14 December 2021 01:23:52 +0000 (0:00:00.552) 0:00:34.833 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "failed_when_result": false } TASK [Ensure default target in permanent internal zone] ************************ task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:289 Tuesday 14 December 2021 01:23:53 +0000 (0:00:00.553) 0:00:35.387 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "failed_when_result": false } TASK [Ensure default target in permanent internal zone, again] ***************** task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:298 Tuesday 14 December 2021 01:23:54 +0000 (0:00:00.557) 0:00:35.944 ****** ok: [/cache/centos-8.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/tmpknen55vk/tests/tests_ansible.yml:307 Tuesday 14 December 2021 01:23:54 +0000 (0:00:00.576) 0:00:36.521 ****** [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/centos-8.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/tmpknen55vk/tests/tests_ansible.yml:319 Tuesday 14 December 2021 01:23:55 +0000 (0:00:00.600) 0:00:37.122 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "failed_when_result": false } TASK [Firewalld custom zone] *************************************************** task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:331 Tuesday 14 December 2021 01:23:55 +0000 (0:00:00.542) 0:00:37.664 ****** changed: [/cache/centos-8.qcow2] => { "changed": true } TASK [assert firewalld custom zone] ******************************************** task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:338 Tuesday 14 December 2021 01:23:56 +0000 (0:00:00.884) 0:00:38.549 ****** ok: [/cache/centos-8.qcow2] => { "changed": false } MSG: All assertions passed TASK [Remove custom zone] ****************************************************** task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:347 Tuesday 14 December 2021 01:23:56 +0000 (0:00:00.056) 0:00:38.606 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--delete-zone=custom" ], "delta": "0:00:01.092396", "end": "2021-12-14 01:23:59.059164", "failed_when_result": false, "rc": 0, "start": "2021-12-14 01:23:57.966768" } STDOUT: success TASK [Reset internal zone to defaults] ***************************************** task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:352 Tuesday 14 December 2021 01:23:59 +0000 (0:00:02.932) 0:00:41.538 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=internal" ], "delta": "0:00:00.273521", "end": "2021-12-14 01:23:59.782445", "failed_when_result": false, "rc": 0, "start": "2021-12-14 01:23:59.508924" } STDOUT: success TASK [Reset trusted zone to defaults] ****************************************** task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:357 Tuesday 14 December 2021 01:24:00 +0000 (0:00:00.700) 0:00:42.238 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=trusted" ], "delta": "0:00:00.265536", "end": "2021-12-14 01:24:00.444501", "failed_when_result": false, "rc": 0, "start": "2021-12-14 01:24:00.178965" } STDOUT: success TASK [Reset dmz zone to defaults] ********************************************** task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:362 Tuesday 14 December 2021 01:24:01 +0000 (0:00:00.663) 0:00:42.901 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=dmz" ], "delta": "0:00:00.270116", "end": "2021-12-14 01:24:01.111463", "failed_when_result": false, "rc": 0, "start": "2021-12-14 01:24:00.841347" } STDOUT: success TASK [Reset drop zone to defaults] ********************************************* task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:367 Tuesday 14 December 2021 01:24:01 +0000 (0:00:00.663) 0:00:43.565 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=drop" ], "delta": "0:00:00.251967", "end": "2021-12-14 01:24:01.765893", "failed_when_result": false, "rc": 0, "start": "2021-12-14 01:24:01.513926" } STDOUT: success TASK [Reset public zone to defaults] ******************************************* task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:372 Tuesday 14 December 2021 01:24:02 +0000 (0:00:00.658) 0:00:44.224 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=public" ], "delta": "0:00:00.253190", "end": "2021-12-14 01:24:02.427762", "failed_when_result": false, "rc": 0, "start": "2021-12-14 01:24:02.174572" } STDOUT: success TASK [Reset default zone to defaults] ****************************************** task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:377 Tuesday 14 December 2021 01:24:03 +0000 (0:00:00.655) 0:00:44.880 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": "zone=$(firewall-cmd --get-default-zone)\nfirewall-cmd --permanent --load-zone-defaults=$zone\n", "delta": "0:00:00.476878", "end": "2021-12-14 01:24:03.288224", "failed_when_result": false, "rc": 22, "start": "2021-12-14 01:24:02.811346" } STDERR: Error: NO_DEFAULTS: public MSG: non-zero return code TASK [Reload firewalld] ******************************************************** task path: /tmp/tmpknen55vk/tests/tests_ansible.yml:385 Tuesday 14 December 2021 01:24:03 +0000 (0:00:00.860) 0:00:45.740 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--reload" ], "delta": "0:00:00.710197", "end": "2021-12-14 01:24:04.377531", "failed_when_result": false, "rc": 0, "start": "2021-12-14 01:24:03.667334" } STDOUT: success META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=55 changed=35 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Tuesday 14 December 2021 01:24:04 +0000 (0:00:01.088) 0:00:46.829 ****** =============================================================================== linux-system-roles.firewall : Install firewalld ------------------------- 9.25s /tmp/tmpknen55vk/tasks/firewalld.yml:2 ---------------------------------------- Remove custom zone ------------------------------------------------------ 2.93s /tmp/tmpknen55vk/tests/tests_ansible.yml:347 ---------------------------------- linux-system-roles.firewall : Install python3-firewall ------------------ 1.33s /tmp/tmpknen55vk/tasks/firewalld.yml:13 --------------------------------------- linux-system-roles.firewall : Enable and start firewalld service -------- 1.15s /tmp/tmpknen55vk/tasks/firewalld.yml:19 --------------------------------------- Reload firewalld -------------------------------------------------------- 1.09s /tmp/tmpknen55vk/tests/tests_ansible.yml:57 ----------------------------------- Reload firewalld -------------------------------------------------------- 1.09s /tmp/tmpknen55vk/tests/tests_ansible.yml:385 ---------------------------------- Enable HA repos --------------------------------------------------------- 1.08s /tmp/tmpknen55vk/_setup.yml:16 ------------------------------------------------ Gathering Facts --------------------------------------------------------- 1.01s /tmp/tmpknen55vk/tests/tests_ansible.yml:1 ------------------------------------ Reset default zone to defaults ------------------------------------------ 0.90s /tmp/tmpknen55vk/tests/tests_ansible.yml:44 ----------------------------------- Firewalld custom zone --------------------------------------------------- 0.88s /tmp/tmpknen55vk/tests/tests_ansible.yml:331 ---------------------------------- Reset default zone to defaults ------------------------------------------ 0.86s /tmp/tmpknen55vk/tests/tests_ansible.yml:377 ---------------------------------- Permit traffic in default zone for https service ------------------------ 0.71s /tmp/tmpknen55vk/tests/tests_ansible.yml:64 ----------------------------------- Reset internal zone to defaults ----------------------------------------- 0.70s /tmp/tmpknen55vk/tests/tests_ansible.yml:352 ---------------------------------- Reset internal zone to defaults ----------------------------------------- 0.67s /tmp/tmpknen55vk/tests/tests_ansible.yml:19 ----------------------------------- Reset dmz zone to defaults ---------------------------------------------- 0.66s /tmp/tmpknen55vk/tests/tests_ansible.yml:362 ---------------------------------- Reset trusted zone to defaults ------------------------------------------ 0.66s /tmp/tmpknen55vk/tests/tests_ansible.yml:357 ---------------------------------- Remove custom zone ------------------------------------------------------ 0.66s /tmp/tmpknen55vk/tests/tests_ansible.yml:14 ----------------------------------- Reset drop zone to defaults --------------------------------------------- 0.66s /tmp/tmpknen55vk/tests/tests_ansible.yml:367 ---------------------------------- Reset public zone to defaults ------------------------------------------- 0.66s /tmp/tmpknen55vk/tests/tests_ansible.yml:372 ---------------------------------- Reset dmz zone to defaults ---------------------------------------------- 0.65s /tmp/tmpknen55vk/tests/tests_ansible.yml:29 ----------------------------------- + cd /tmp/tmpknen55vk/tests; TEST_SUBJECTS=/cache/centos-8.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_firewall-58-6d38ee5-centos-8-mmtbp1qk/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 --skip-tags=tests::cleanup /tmp/tmpknen55vk/_setup.yml /tmp/tmpknen55vk/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/tmpknen55vk/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpknen55vk/_setup.yml:5 Tuesday 14 December 2021 01:25:01 +0000 (0:00:00.023) 0:00:00.023 ****** ok: [/cache/centos-8.qcow2] => { "groups": { "all": [ "/cache/centos-8.qcow2" ], "localhost": [ "/cache/centos-8.qcow2" ], "subjects": [ "/cache/centos-8.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpknen55vk/_setup.yml:7 Tuesday 14 December 2021 01:25:01 +0000 (0:00:00.047) 0:00:00.071 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY [Enable HA repos] ********************************************************* META: ran handlers TASK [Enable HA repos] ********************************************************* task path: /tmp/tmpknen55vk/_setup.yml:16 Tuesday 14 December 2021 01:25:01 +0000 (0:00:00.048) 0:00:00.119 ****** [WARNING]: Consider using the dnf module rather than running 'dnf'. If you need to use command because dnf is insufficient you can add 'warn: false' to this command task or set 'command_warnings=False' in ansible.cfg to get rid of this message. changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "ha" ], "delta": "0:00:00.418589", "end": "2021-12-14 01:25:01.225971", "rc": 0, "start": "2021-12-14 01:25:00.807382" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=2 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 Tuesday 14 December 2021 01:25:02 +0000 (0:00:01.109) 0:00:01.229 ****** =============================================================================== Enable HA repos --------------------------------------------------------- 1.11s /tmp/tmpknen55vk/_setup.yml:16 ------------------------------------------------ fail -------------------------------------------------------------------- 0.05s /tmp/tmpknen55vk/_setup.yml:7 ------------------------------------------------- debug ------------------------------------------------------------------- 0.05s /tmp/tmpknen55vk/_setup.yml:5 ------------------------------------------------- statically imported: /tmp/tmpknen55vk/tasks/firewalld.yml PLAYBOOK: tests_default.yml **************************************************** 1 plays in /tmp/tmpknen55vk/tests/tests_default.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpknen55vk/tests/tests_default.yml:1 Tuesday 14 December 2021 01:25:02 +0000 (0:00:00.217) 0:00:01.446 ****** ok: [/cache/centos-8.qcow2] META: ran handlers TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpknen55vk/tasks/firewalld.yml:2 Tuesday 14 December 2021 01:25:03 +0000 (0:00:01.441) 0:00:02.887 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "rc": 0, "results": [ "Installed: nftables-1:0.9.3-21.el8.x86_64", "Installed: ipset-7.1-1.el8.x86_64", "Installed: libnetfilter_conntrack-1.0.6-5.el8.x86_64", "Installed: ipset-libs-7.1-1.el8.x86_64", "Installed: iptables-1.8.4-20.el8.x86_64", "Installed: iptables-ebtables-1.8.4-20.el8.x86_64", "Installed: libnfnetlink-1.0.1-13.el8.x86_64", "Installed: iptables-libs-1.8.4-20.el8.x86_64", "Installed: firewalld-0.9.3-7.el8.noarch", "Installed: firewalld-filesystem-0.9.3-7.el8.noarch", "Installed: libnftnl-1.1.5-4.el8.x86_64", "Installed: python3-nftables-1:0.9.3-21.el8.x86_64", "Installed: python3-firewall-0.9.3-7.el8.noarch", "Removed: iptables-libs-1.8.4-17.el8.x86_64" ] } TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmpknen55vk/tasks/firewalld.yml:7 Tuesday 14 December 2021 01:25:16 +0000 (0:00:12.950) 0:00:15.838 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmpknen55vk/tasks/firewalld.yml:13 Tuesday 14 December 2021 01:25:17 +0000 (0:00:00.058) 0:00:15.897 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmpknen55vk/tasks/firewalld.yml:19 Tuesday 14 December 2021 01:25:18 +0000 (0:00:01.419) 0:00:17.316 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "sysinit.target system.slice dbus.socket dbus.service basic.target 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", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "iptables.service ebtables.service ip6tables.service nftables.service ipset.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": "infinity", "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": "6995", "LimitNPROCSoft": "6995", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6995", "LimitSIGPENDINGSoft": "6995", "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": "11192", "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/tmpknen55vk/tasks/main.yml:3 Tuesday 14 December 2021 01:25:19 +0000 (0:00:01.123) 0:00:18.439 ****** META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=6 changed=3 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Tuesday 14 December 2021 01:25:19 +0000 (0:00:00.044) 0:00:18.484 ****** =============================================================================== linux-system-roles.firewall : Install firewalld ------------------------ 12.95s /tmp/tmpknen55vk/tasks/firewalld.yml:2 ---------------------------------------- Gathering Facts --------------------------------------------------------- 1.44s /tmp/tmpknen55vk/tests/tests_default.yml:1 ------------------------------------ linux-system-roles.firewall : Install python3-firewall ------------------ 1.42s /tmp/tmpknen55vk/tasks/firewalld.yml:13 --------------------------------------- linux-system-roles.firewall : Enable and start firewalld service -------- 1.12s /tmp/tmpknen55vk/tasks/firewalld.yml:19 --------------------------------------- Enable HA repos --------------------------------------------------------- 1.11s /tmp/tmpknen55vk/_setup.yml:16 ------------------------------------------------ linux-system-roles.firewall : Install python-firewall ------------------- 0.06s /tmp/tmpknen55vk/tasks/firewalld.yml:7 ---------------------------------------- fail -------------------------------------------------------------------- 0.05s /tmp/tmpknen55vk/_setup.yml:7 ------------------------------------------------- debug ------------------------------------------------------------------- 0.05s /tmp/tmpknen55vk/_setup.yml:5 ------------------------------------------------- linux-system-roles.firewall : Configure firewall ------------------------ 0.04s /tmp/tmpknen55vk/tasks/main.yml:3 --------------------------------------------- + cd /tmp/tmpknen55vk/tests; TEST_SUBJECTS=/cache/centos-8.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_firewall-58-6d38ee5-centos-8-mmtbp1qk/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 --skip-tags=tests::cleanup /tmp/tmpknen55vk/_setup.yml /tmp/tmpknen55vk/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/tmpknen55vk/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpknen55vk/_setup.yml:5 Tuesday 14 December 2021 01:26:15 +0000 (0:00:00.025) 0:00:00.025 ****** ok: [/cache/centos-8.qcow2] => { "groups": { "all": [ "/cache/centos-8.qcow2" ], "localhost": [ "/cache/centos-8.qcow2" ], "subjects": [ "/cache/centos-8.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpknen55vk/_setup.yml:7 Tuesday 14 December 2021 01:26:15 +0000 (0:00:00.048) 0:00:00.074 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY [Enable HA repos] ********************************************************* META: ran handlers TASK [Enable HA repos] ********************************************************* task path: /tmp/tmpknen55vk/_setup.yml:16 Tuesday 14 December 2021 01:26:15 +0000 (0:00:00.049) 0:00:00.123 ****** [WARNING]: Consider using the dnf module rather than running 'dnf'. If you need to use command because dnf is insufficient you can add 'warn: false' to this command task or set 'command_warnings=False' in ansible.cfg to get rid of this message. changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": [ "dnf", "config-manager", "--set-enabled", "ha" ], "delta": "0:00:00.402922", "end": "2021-12-14 01:26:16.354816", "rc": 0, "start": "2021-12-14 01:26:15.951894" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=2 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 Tuesday 14 December 2021 01:26:16 +0000 (0:00:01.095) 0:00:01.219 ****** =============================================================================== Enable HA repos --------------------------------------------------------- 1.10s /tmp/tmpknen55vk/_setup.yml:16 ------------------------------------------------ fail -------------------------------------------------------------------- 0.05s /tmp/tmpknen55vk/_setup.yml:7 ------------------------------------------------- debug ------------------------------------------------------------------- 0.05s /tmp/tmpknen55vk/_setup.yml:5 ------------------------------------------------- PLAYBOOK: tests_zone.yml ******************************************************* 1 plays in /tmp/tmpknen55vk/tests/tests_zone.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpknen55vk/tests/tests_zone.yml:1 Tuesday 14 December 2021 01:26:16 +0000 (0:00:00.013) 0:00:01.233 ****** ok: [/cache/centos-8.qcow2] META: ran handlers TASK [include_role : linux-system-roles.firewall] ****************************** task path: /tmp/tmpknen55vk/tests/tests_zone.yml:6 Tuesday 14 December 2021 01:26:18 +0000 (0:00:01.214) 0:00:02.447 ****** statically imported: /tmp/tmpknen55vk/tasks/firewalld.yml TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpknen55vk/tasks/firewalld.yml:2 Tuesday 14 December 2021 01:26:18 +0000 (0:00:00.232) 0:00:02.680 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "rc": 0, "results": [ "Installed: nftables-1:0.9.3-21.el8.x86_64", "Installed: ipset-7.1-1.el8.x86_64", "Installed: libnetfilter_conntrack-1.0.6-5.el8.x86_64", "Installed: ipset-libs-7.1-1.el8.x86_64", "Installed: iptables-1.8.4-20.el8.x86_64", "Installed: iptables-ebtables-1.8.4-20.el8.x86_64", "Installed: libnfnetlink-1.0.1-13.el8.x86_64", "Installed: iptables-libs-1.8.4-20.el8.x86_64", "Installed: firewalld-0.9.3-7.el8.noarch", "Installed: firewalld-filesystem-0.9.3-7.el8.noarch", "Installed: libnftnl-1.1.5-4.el8.x86_64", "Installed: python3-nftables-1:0.9.3-21.el8.x86_64", "Installed: python3-firewall-0.9.3-7.el8.noarch", "Removed: iptables-libs-1.8.4-17.el8.x86_64" ] } TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmpknen55vk/tasks/firewalld.yml:7 Tuesday 14 December 2021 01:26:27 +0000 (0:00:08.978) 0:00:11.658 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmpknen55vk/tasks/firewalld.yml:13 Tuesday 14 December 2021 01:26:27 +0000 (0:00:00.056) 0:00:11.715 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmpknen55vk/tasks/firewalld.yml:19 Tuesday 14 December 2021 01:26:28 +0000 (0:00:01.413) 0:00:13.128 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "polkit.service system.slice dbus.socket sysinit.target dbus.service basic.target", "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", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "nftables.service ip6tables.service ipset.service iptables.service shutdown.target 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": "infinity", "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": "6995", "LimitNPROCSoft": "6995", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6995", "LimitSIGPENDINGSoft": "6995", "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 dbus.socket system.slice", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "11192", "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/tmpknen55vk/tasks/main.yml:3 Tuesday 14 December 2021 01:26:29 +0000 (0:00:01.125) 0:00:14.254 ****** TASK [Verify used firewalld zones] ********************************************* task path: /tmp/tmpknen55vk/tests/tests_zone.yml:14 Tuesday 14 December 2021 01:26:29 +0000 (0:00:00.054) 0:00:14.308 ****** statically imported: /tmp/tmpknen55vk/tasks/firewalld.yml TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpknen55vk/tasks/firewalld.yml:2 Tuesday 14 December 2021 01:26:29 +0000 (0:00:00.070) 0:00:14.379 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmpknen55vk/tasks/firewalld.yml:7 Tuesday 14 December 2021 01:26:31 +0000 (0:00:01.325) 0:00:15.704 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmpknen55vk/tasks/firewalld.yml:13 Tuesday 14 December 2021 01:26:31 +0000 (0:00:00.057) 0:00:15.762 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmpknen55vk/tasks/firewalld.yml:19 Tuesday 14 December 2021 01:26:32 +0000 (0:00:01.342) 0:00:17.104 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2021-12-14 01:26:29 UTC", "ActiveEnterTimestampMonotonic": "66920127", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "polkit.service system.slice dbus.socket sysinit.target dbus.service basic.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Tue 2021-12-14 01:26:29 UTC", "AssertTimestampMonotonic": "66670309", "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", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2021-12-14 01:26:29 UTC", "ConditionTimestampMonotonic": "66670308", "ConfigurationDirectoryMode": "0755", "Conflicts": "nftables.service ip6tables.service ipset.service iptables.service shutdown.target ebtables.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "12426", "ExecMainStartTimestamp": "Tue 2021-12-14 01:26:29 UTC", "ExecMainStartTimestampMonotonic": "66671330", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; ignore_errors=no ; start_time=[Tue 2021-12-14 01:26:29 UTC] ; stop_time=[n/a] ; pid=12426 ; 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": "Tue 2021-12-14 01:26:29 UTC", "InactiveExitTimestampMonotonic": "66671378", "InvocationID": "3fa210bd0c98439cb518b920990e251b", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "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": "6995", "LimitNPROCSoft": "6995", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6995", "LimitSIGPENDINGSoft": "6995", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "12426", "MemoryAccounting": "yes", "MemoryCurrent": "27000832", "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 dbus.socket system.slice", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Tue 2021-12-14 01:26:29 UTC", "StateChangeTimestampMonotonic": "66920127", "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": "11192", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogTimestamp": "Tue 2021-12-14 01:26:29 UTC", "WatchdogTimestampMonotonic": "66920125", "WatchdogUSec": "0" } } TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmpknen55vk/tasks/main.yml:3 Tuesday 14 December 2021 01:26:33 +0000 (0:00:00.562) 0:00:17.666 ****** ok: [/cache/centos-8.qcow2] => (item={u'state': u'enabled', u'zone': u'internal'}) => { "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "internal" } } ok: [/cache/centos-8.qcow2] => (item={u'state': u'enabled', u'zone': u'external'}) => { "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "external" } } ok: [/cache/centos-8.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/tmpknen55vk/tests/tests_zone.yml:26 Tuesday 14 December 2021 01:26:34 +0000 (0:00:01.724) 0:00:19.391 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Setup firewalld] ********************************************************* task path: /tmp/tmpknen55vk/tests/tests_zone.yml:32 Tuesday 14 December 2021 01:26:35 +0000 (0:00:00.056) 0:00:19.447 ****** statically imported: /tmp/tmpknen55vk/tasks/firewalld.yml TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpknen55vk/tasks/firewalld.yml:2 Tuesday 14 December 2021 01:26:35 +0000 (0:00:00.085) 0:00:19.533 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmpknen55vk/tasks/firewalld.yml:7 Tuesday 14 December 2021 01:26:36 +0000 (0:00:01.325) 0:00:20.859 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmpknen55vk/tasks/firewalld.yml:13 Tuesday 14 December 2021 01:26:36 +0000 (0:00:00.055) 0:00:20.914 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmpknen55vk/tasks/firewalld.yml:19 Tuesday 14 December 2021 01:26:37 +0000 (0:00:01.331) 0:00:22.246 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2021-12-14 01:26:29 UTC", "ActiveEnterTimestampMonotonic": "66920127", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "polkit.service system.slice dbus.socket sysinit.target dbus.service basic.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Tue 2021-12-14 01:26:29 UTC", "AssertTimestampMonotonic": "66670309", "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", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2021-12-14 01:26:29 UTC", "ConditionTimestampMonotonic": "66670308", "ConfigurationDirectoryMode": "0755", "Conflicts": "nftables.service ip6tables.service ipset.service iptables.service shutdown.target ebtables.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "12426", "ExecMainStartTimestamp": "Tue 2021-12-14 01:26:29 UTC", "ExecMainStartTimestampMonotonic": "66671330", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; ignore_errors=no ; start_time=[Tue 2021-12-14 01:26:29 UTC] ; stop_time=[n/a] ; pid=12426 ; 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": "Tue 2021-12-14 01:26:29 UTC", "InactiveExitTimestampMonotonic": "66671378", "InvocationID": "3fa210bd0c98439cb518b920990e251b", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "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": "6995", "LimitNPROCSoft": "6995", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6995", "LimitSIGPENDINGSoft": "6995", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "12426", "MemoryAccounting": "yes", "MemoryCurrent": "28065792", "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 dbus.socket system.slice", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Tue 2021-12-14 01:26:29 UTC", "StateChangeTimestampMonotonic": "66920127", "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": "11192", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogTimestamp": "Tue 2021-12-14 01:26:29 UTC", "WatchdogTimestampMonotonic": "66920125", "WatchdogUSec": "0" } } TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmpknen55vk/tasks/main.yml:3 Tuesday 14 December 2021 01:26:38 +0000 (0:00:00.544) 0:00:22.790 ****** changed: [/cache/centos-8.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/tmpknen55vk/tests/tests_zone.yml:45 Tuesday 14 December 2021 01:26:38 +0000 (0:00:00.589) 0:00:23.379 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Setup firewalld again] *************************************************** task path: /tmp/tmpknen55vk/tests/tests_zone.yml:51 Tuesday 14 December 2021 01:26:39 +0000 (0:00:00.051) 0:00:23.431 ****** TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpknen55vk/tasks/firewalld.yml:2 Tuesday 14 December 2021 01:26:39 +0000 (0:00:00.072) 0:00:23.503 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmpknen55vk/tasks/firewalld.yml:7 Tuesday 14 December 2021 01:26:40 +0000 (0:00:01.301) 0:00:24.805 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmpknen55vk/tasks/firewalld.yml:13 Tuesday 14 December 2021 01:26:40 +0000 (0:00:00.087) 0:00:24.893 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmpknen55vk/tasks/firewalld.yml:19 Tuesday 14 December 2021 01:26:41 +0000 (0:00:01.380) 0:00:26.273 ****** ok: [/cache/centos-8.qcow2] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2021-12-14 01:26:29 UTC", "ActiveEnterTimestampMonotonic": "66920127", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "polkit.service system.slice dbus.socket sysinit.target dbus.service basic.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Tue 2021-12-14 01:26:29 UTC", "AssertTimestampMonotonic": "66670309", "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", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2021-12-14 01:26:29 UTC", "ConditionTimestampMonotonic": "66670308", "ConfigurationDirectoryMode": "0755", "Conflicts": "nftables.service ip6tables.service ipset.service iptables.service shutdown.target ebtables.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "12426", "ExecMainStartTimestamp": "Tue 2021-12-14 01:26:29 UTC", "ExecMainStartTimestampMonotonic": "66671330", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; ignore_errors=no ; start_time=[Tue 2021-12-14 01:26:29 UTC] ; stop_time=[n/a] ; pid=12426 ; 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": "Tue 2021-12-14 01:26:29 UTC", "InactiveExitTimestampMonotonic": "66671378", "InvocationID": "3fa210bd0c98439cb518b920990e251b", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "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": "6995", "LimitNPROCSoft": "6995", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6995", "LimitSIGPENDINGSoft": "6995", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "12426", "MemoryAccounting": "yes", "MemoryCurrent": "28069888", "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 dbus.socket system.slice", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Tue 2021-12-14 01:26:29 UTC", "StateChangeTimestampMonotonic": "66920127", "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": "11192", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogTimestamp": "Tue 2021-12-14 01:26:29 UTC", "WatchdogTimestampMonotonic": "66920125", "WatchdogUSec": "0" } } TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmpknen55vk/tasks/main.yml:3 Tuesday 14 December 2021 01:26:42 +0000 (0:00:00.525) 0:00:26.798 ****** ok: [/cache/centos-8.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/tmpknen55vk/tests/tests_zone.yml:64 Tuesday 14 December 2021 01:26:42 +0000 (0:00:00.584) 0:00:27.383 ****** skipping: [/cache/centos-8.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify firewalld zone internal services] ********************************* task path: /tmp/tmpknen55vk/tests/tests_zone.yml:70 Tuesday 14 December 2021 01:26:43 +0000 (0:00:00.055) 0:00:27.438 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-services" ], "delta": "0:00:00.250805", "end": "2021-12-14 01:26:43.221115", "failed_when_result": false, "rc": 0, "start": "2021-12-14 01:26:42.970310" } STDOUT: cockpit dhcpv6-client ftp mdns samba-client ssh tftp TASK [Verify firewalld zone internal ports] ************************************ task path: /tmp/tmpknen55vk/tests/tests_zone.yml:77 Tuesday 14 December 2021 01:26:43 +0000 (0:00:00.653) 0:00:28.092 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-ports" ], "delta": "0:00:00.260075", "end": "2021-12-14 01:26:43.858799", "failed_when_result": false, "rc": 0, "start": "2021-12-14 01:26:43.598724" } STDOUT: 443/tcp 443/udp TASK [Verify firewalld zone internal forward ports] **************************** task path: /tmp/tmpknen55vk/tests/tests_zone.yml:84 Tuesday 14 December 2021 01:26:44 +0000 (0:00:00.637) 0:00:28.729 ****** changed: [/cache/centos-8.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-forward-ports" ], "delta": "0:00:00.272988", "end": "2021-12-14 01:26:44.538393", "failed_when_result": false, "rc": 0, "start": "2021-12-14 01:26:44.265405" } 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/tmpknen55vk/tests/tests_zone.yml:97 Tuesday 14 December 2021 01:26:45 +0000 (0:00:00.684) 0:00:29.413 ****** changed: [/cache/centos-8.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.450386", "end": "2021-12-14 01:26:46.371462", "rc": 0, "start": "2021-12-14 01:26:44.921076" } STDOUT: success success success success META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/centos-8.qcow2 : ok=22 changed=8 unreachable=0 failed=0 skipped=9 rescued=0 ignored=0 Tuesday 14 December 2021 01:26:46 +0000 (0:00:01.821) 0:00:31.235 ****** =============================================================================== linux-system-roles.firewall : Install firewalld ------------------------- 8.98s /tmp/tmpknen55vk/tasks/firewalld.yml:2 ---------------------------------------- Reset to zone defaults -------------------------------------------------- 1.82s /tmp/tmpknen55vk/tests/tests_zone.yml:97 -------------------------------------- linux-system-roles.firewall : Configure firewall ------------------------ 1.72s /tmp/tmpknen55vk/tasks/main.yml:3 --------------------------------------------- linux-system-roles.firewall : Install python3-firewall ------------------ 1.41s /tmp/tmpknen55vk/tasks/firewalld.yml:13 --------------------------------------- linux-system-roles.firewall : Install python3-firewall ------------------ 1.38s /tmp/tmpknen55vk/tasks/firewalld.yml:13 --------------------------------------- linux-system-roles.firewall : Install python3-firewall ------------------ 1.34s /tmp/tmpknen55vk/tasks/firewalld.yml:13 --------------------------------------- linux-system-roles.firewall : Install firewalld ------------------------- 1.33s /tmp/tmpknen55vk/tasks/firewalld.yml:2 ---------------------------------------- linux-system-roles.firewall : Install firewalld ------------------------- 1.30s /tmp/tmpknen55vk/tasks/firewalld.yml:2 ---------------------------------------- Gathering Facts --------------------------------------------------------- 1.21s /tmp/tmpknen55vk/tests/tests_zone.yml:1 --------------------------------------- linux-system-roles.firewall : Enable and start firewalld service -------- 1.13s /tmp/tmpknen55vk/tasks/firewalld.yml:19 --------------------------------------- Enable HA repos --------------------------------------------------------- 1.10s /tmp/tmpknen55vk/_setup.yml:16 ------------------------------------------------ Verify firewalld zone internal forward ports ---------------------------- 0.68s /tmp/tmpknen55vk/tests/tests_zone.yml:84 -------------------------------------- Verify firewalld zone internal services --------------------------------- 0.65s /tmp/tmpknen55vk/tests/tests_zone.yml:70 -------------------------------------- Verify firewalld zone internal ports ------------------------------------ 0.64s /tmp/tmpknen55vk/tests/tests_zone.yml:77 -------------------------------------- linux-system-roles.firewall : Configure firewall ------------------------ 0.58s /tmp/tmpknen55vk/tasks/main.yml:3 --------------------------------------------- linux-system-roles.firewall : Enable and start firewalld service -------- 0.56s /tmp/tmpknen55vk/tasks/firewalld.yml:19 --------------------------------------- linux-system-roles.firewall : Enable and start firewalld service -------- 0.53s /tmp/tmpknen55vk/tasks/firewalld.yml:19 --------------------------------------- include_role : linux-system-roles.firewall ------------------------------ 0.23s /tmp/tmpknen55vk/tests/tests_zone.yml:6 --------------------------------------- linux-system-roles.firewall : Install python-firewall ------------------- 0.09s /tmp/tmpknen55vk/tasks/firewalld.yml:7 ---------------------------------------- Setup firewalld --------------------------------------------------------- 0.09s /tmp/tmpknen55vk/tests/tests_zone.yml:32 --------------------------------------