+ cd /tmp/tmpmjzlljip/tests; TEST_SUBJECTS=/cache/rhel-8.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_firewall-35-f13e2d1-rhel-8-rmpjgdsw/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpmjzlljip/_setup.yml /tmp/tmpmjzlljip/tests/tests_ansible.yml ansible-playbook 2.9.23 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/tester/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.9.6 (default, Jun 29 2021, 00:00:00) [GCC 11.1.1 20210531 (Red Hat 11.1.1-3)] 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/tmpmjzlljip/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpmjzlljip/_setup.yml:5 ok: [/cache/rhel-8.qcow2] => { "groups": { "all": [ "/cache/rhel-8.qcow2" ], "localhost": [ "/cache/rhel-8.qcow2" ], "subjects": [ "/cache/rhel-8.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpmjzlljip/_setup.yml:7 skipping: [/cache/rhel-8.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /tmp/tmpmjzlljip/_setup.yml:16 changed: [/cache/rhel-8.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-8.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-8.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-8.qcow2] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=2 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 statically imported: /tmp/tmpmjzlljip/tasks/firewalld.yml PLAYBOOK: tests_ansible.yml **************************************************** 1 plays in /tmp/tmpmjzlljip/tests/tests_ansible.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpmjzlljip/tests/tests_ansible.yml:1 ok: [/cache/rhel-8.qcow2] META: ran handlers TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpmjzlljip/tasks/firewalld.yml:2 changed: [/cache/rhel-8.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: ipset-7.1-1.el8.x86_64", "Installed: libnetfilter_conntrack-1.0.6-5.el8.x86_64", "Installed: ipset-libs-7.1-1.el8.x86_64", "Installed: python3-nftables-1:0.9.3-18.el8.x86_64", "Installed: iptables-1.8.4-17.el8.x86_64", "Installed: python3-firewall-0.8.2-6.el8.noarch", "Installed: iptables-ebtables-1.8.4-17.el8.x86_64", "Installed: libnfnetlink-1.0.1-13.el8.x86_64", "Installed: firewalld-0.8.2-6.el8.noarch", "Installed: firewalld-filesystem-0.8.2-6.el8.noarch", "Installed: libnftnl-1.1.5-4.el8.x86_64", "Installed: nftables-1:0.9.3-18.el8.x86_64"]} TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmpmjzlljip/tasks/firewalld.yml:7 skipping: [/cache/rhel-8.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmpmjzlljip/tasks/firewalld.yml:13 ok: [/cache/rhel-8.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmpmjzlljip/tasks/firewalld.yml:19 changed: [/cache/rhel-8.qcow2] => {"changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": {"ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "dbus.service basic.target polkit.service system.slice dbus.socket sysinit.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "multi-user.target network-pre.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": "ebtables.service ipset.service ip6tables.service shutdown.target iptables.service nftables.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": "6997", "LimitNPROCSoft": "6997", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6997", "LimitSIGPENDINGSoft": "6997", "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": "11196", "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/tmpmjzlljip/tasks/main.yml:3 TASK [Remove custom zone] ****************************************************** task path: /tmp/tmpmjzlljip/tests/tests_ansible.yml:14 changed: [/cache/rhel-8.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--delete-zone=custom"], "delta": "0:00:00.248445", "end": "2021-08-30 23:45:11.199659", "failed_when_result": false, "msg": "non-zero return code", "rc": 112, "start": "2021-08-30 23:45:10.951214", "stderr": "Error: INVALID_ZONE: custom", "stderr_lines": ["Error: INVALID_ZONE: custom"], "stdout": "", "stdout_lines": []} TASK [Reset internal zone to defaults] ***************************************** task path: /tmp/tmpmjzlljip/tests/tests_ansible.yml:19 changed: [/cache/rhel-8.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--load-zone-defaults=internal"], "delta": "0:00:00.248922", "end": "2021-08-30 23:45:11.786758", "failed_when_result": false, "msg": "non-zero return code", "rc": 22, "start": "2021-08-30 23:45:11.537836", "stderr": "Error: NO_DEFAULTS: internal", "stderr_lines": ["Error: NO_DEFAULTS: internal"], "stdout": "", "stdout_lines": []} TASK [Reset trusted zone to defaults] ****************************************** task path: /tmp/tmpmjzlljip/tests/tests_ansible.yml:24 changed: [/cache/rhel-8.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--load-zone-defaults=trusted"], "delta": "0:00:00.232817", "end": "2021-08-30 23:45:12.380693", "failed_when_result": false, "msg": "non-zero return code", "rc": 22, "start": "2021-08-30 23:45:12.147876", "stderr": "Error: NO_DEFAULTS: trusted", "stderr_lines": ["Error: NO_DEFAULTS: trusted"], "stdout": "", "stdout_lines": []} TASK [Reset dmz zone to defaults] ********************************************** task path: /tmp/tmpmjzlljip/tests/tests_ansible.yml:29 changed: [/cache/rhel-8.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--load-zone-defaults=dmz"], "delta": "0:00:00.237360", "end": "2021-08-30 23:45:12.964612", "failed_when_result": false, "msg": "non-zero return code", "rc": 22, "start": "2021-08-30 23:45:12.727252", "stderr": "Error: NO_DEFAULTS: dmz", "stderr_lines": ["Error: NO_DEFAULTS: dmz"], "stdout": "", "stdout_lines": []} TASK [Reset drop zone to defaults] ********************************************* task path: /tmp/tmpmjzlljip/tests/tests_ansible.yml:34 changed: [/cache/rhel-8.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--load-zone-defaults=drop"], "delta": "0:00:00.233926", "end": "2021-08-30 23:45:13.550053", "failed_when_result": false, "msg": "non-zero return code", "rc": 22, "start": "2021-08-30 23:45:13.316127", "stderr": "Error: NO_DEFAULTS: drop", "stderr_lines": ["Error: NO_DEFAULTS: drop"], "stdout": "", "stdout_lines": []} TASK [Reset public zone to defaults] ******************************************* task path: /tmp/tmpmjzlljip/tests/tests_ansible.yml:39 changed: [/cache/rhel-8.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--load-zone-defaults=public"], "delta": "0:00:00.235141", "end": "2021-08-30 23:45:14.128349", "failed_when_result": false, "msg": "non-zero return code", "rc": 22, "start": "2021-08-30 23:45:13.893208", "stderr": "Error: NO_DEFAULTS: public", "stderr_lines": ["Error: NO_DEFAULTS: public"], "stdout": "", "stdout_lines": []} TASK [Reset default zone to defaults] ****************************************** task path: /tmp/tmpmjzlljip/tests/tests_ansible.yml:44 changed: [/cache/rhel-8.qcow2] => {"changed": true, "cmd": "zone=$(firewall-cmd --get-default-zone)\nfirewall-cmd --permanent --load-zone-defaults=$zone\n", "delta": "0:00:00.490943", "end": "2021-08-30 23:45:14.958434", "failed_when_result": false, "msg": "non-zero return code", "rc": 22, "start": "2021-08-30 23:45:14.467491", "stderr": "Error: NO_DEFAULTS: public", "stderr_lines": ["Error: NO_DEFAULTS: public"], "stdout": "", "stdout_lines": []} TASK [Create custom zone] ****************************************************** task path: /tmp/tmpmjzlljip/tests/tests_ansible.yml:52 changed: [/cache/rhel-8.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--new-zone=custom"], "delta": "0:00:00.241762", "end": "2021-08-30 23:45:15.560434", "failed_when_result": false, "rc": 0, "start": "2021-08-30 23:45:15.318672", "stderr": "", "stderr_lines": [], "stdout": "success", "stdout_lines": ["success"]} TASK [Reload firewalld] ******************************************************** task path: /tmp/tmpmjzlljip/tests/tests_ansible.yml:57 changed: [/cache/rhel-8.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--reload"], "delta": "0:00:00.665093", "end": "2021-08-30 23:45:16.588529", "failed_when_result": false, "rc": 0, "start": "2021-08-30 23:45:15.923436", "stderr": "", "stderr_lines": [], "stdout": "success", "stdout_lines": ["success"]} TASK [Permit traffic in default zone for https service] ************************ task path: /tmp/tmpmjzlljip/tests/tests_ansible.yml:64 changed: [/cache/rhel-8.qcow2] => {"changed": true, "failed_when_result": false} TASK [Permit traffic in default zone for https service, again] ***************** task path: /tmp/tmpmjzlljip/tests/tests_ansible.yml:72 ok: [/cache/rhel-8.qcow2] => {"changed": false, "failed_when_result": false} TASK [Permit traffic in default zone on port 8081/tcp] ************************* task path: /tmp/tmpmjzlljip/tests/tests_ansible.yml:80 changed: [/cache/rhel-8.qcow2] => {"changed": true, "failed_when_result": false} TASK [Permit traffic in default zone on port 8081/tcp, again] ****************** task path: /tmp/tmpmjzlljip/tests/tests_ansible.yml:88 ok: [/cache/rhel-8.qcow2] => {"changed": false, "failed_when_result": false} TASK [Allow port 161-162/udp in permanent default zone] ************************ task path: /tmp/tmpmjzlljip/tests/tests_ansible.yml:96 changed: [/cache/rhel-8.qcow2] => {"changed": true, "failed_when_result": false} TASK [Allow port 161-162/udp in permanent default zone, again] ***************** task path: /tmp/tmpmjzlljip/tests/tests_ansible.yml:104 ok: [/cache/rhel-8.qcow2] => {"changed": false, "failed_when_result": false} TASK [Do not permit traffic in default zone on port 8081/tcp] ****************** task path: /tmp/tmpmjzlljip/tests/tests_ansible.yml:112 changed: [/cache/rhel-8.qcow2] => {"changed": true, "failed_when_result": false} TASK [Do not permit traffic in default zone on port 8081/tcp, again] *********** task path: /tmp/tmpmjzlljip/tests/tests_ansible.yml:120 ok: [/cache/rhel-8.qcow2] => {"changed": false, "failed_when_result": false} TASK [Allow service http in permanent dmz zone] ******************************** task path: /tmp/tmpmjzlljip/tests/tests_ansible.yml:128 changed: [/cache/rhel-8.qcow2] => {"changed": true, "failed_when_result": false} TASK [Allow service http in permanent dmz zone, again] ************************* task path: /tmp/tmpmjzlljip/tests/tests_ansible.yml:137 ok: [/cache/rhel-8.qcow2] => {"changed": false, "failed_when_result": false} TASK [Allow service ftp with limitation using rich rule in permanent default zone] *** task path: /tmp/tmpmjzlljip/tests/tests_ansible.yml:146 changed: [/cache/rhel-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/tmpmjzlljip/tests/tests_ansible.yml:155 ok: [/cache/rhel-8.qcow2] => {"changed": false, "failed_when_result": false} TASK [Allow source 192.0.2.0/24 in internal zone] ****************************** task path: /tmp/tmpmjzlljip/tests/tests_ansible.yml:164 changed: [/cache/rhel-8.qcow2] => {"changed": true, "failed_when_result": false} TASK [Allow source 192.0.2.0/24 in internal zone, again] *********************** task path: /tmp/tmpmjzlljip/tests/tests_ansible.yml:172 ok: [/cache/rhel-8.qcow2] => {"changed": false, "failed_when_result": false} TASK [Allow interface eth2 in permanent trusted zone] ************************** task path: /tmp/tmpmjzlljip/tests/tests_ansible.yml:180 changed: [/cache/rhel-8.qcow2] => {"changed": true, "failed_when_result": false} TASK [Allow interface eth2 in permanent trusted zone, again] ******************* task path: /tmp/tmpmjzlljip/tests/tests_ansible.yml:189 ok: [/cache/rhel-8.qcow2] => {"changed": false, "failed_when_result": false} TASK [Allow masquerading in permament dmz zone] ******************************** task path: /tmp/tmpmjzlljip/tests/tests_ansible.yml:198 changed: [/cache/rhel-8.qcow2] => {"changed": true, "failed_when_result": false} TASK [Allow masquerading in permament dmz zone, again] ************************* task path: /tmp/tmpmjzlljip/tests/tests_ansible.yml:207 ok: [/cache/rhel-8.qcow2] => {"changed": false, "failed_when_result": false} TASK [Ensure permanent custom zone exists (no change)] ************************* task path: /tmp/tmpmjzlljip/tests/tests_ansible.yml:216 ok: [/cache/rhel-8.qcow2] => {"changed": false, "failed_when_result": false} TASK [Ensure ICMP block inversion in permanent drop zone] ********************** task path: /tmp/tmpmjzlljip/tests/tests_ansible.yml:224 changed: [/cache/rhel-8.qcow2] => {"changed": true, "failed_when_result": false} TASK [Ensure ICMP block inversion in permanent drop zone, again] *************** task path: /tmp/tmpmjzlljip/tests/tests_ansible.yml:233 ok: [/cache/rhel-8.qcow2] => {"changed": false, "failed_when_result": false} TASK [Block ICMP echo-request in permanent drop zone] ************************** task path: /tmp/tmpmjzlljip/tests/tests_ansible.yml:242 changed: [/cache/rhel-8.qcow2] => {"changed": true, "failed_when_result": false} TASK [Block ICMP echo-request in permanent drop zone, again] ******************* task path: /tmp/tmpmjzlljip/tests/tests_ansible.yml:251 ok: [/cache/rhel-8.qcow2] => {"changed": false, "failed_when_result": false} TASK [Ensure default target in permanent internal zone (no change)] ************ task path: /tmp/tmpmjzlljip/tests/tests_ansible.yml:260 ok: [/cache/rhel-8.qcow2] => {"changed": false, "failed_when_result": false} TASK [Ensure target ACCEPT in permanent internal zone] ************************* task path: /tmp/tmpmjzlljip/tests/tests_ansible.yml:269 changed: [/cache/rhel-8.qcow2] => {"changed": true, "failed_when_result": false} TASK [Ensure target ACCEPT in permanent internal zone, again] ****************** task path: /tmp/tmpmjzlljip/tests/tests_ansible.yml:278 ok: [/cache/rhel-8.qcow2] => {"changed": false, "failed_when_result": false} TASK [Ensure default target in permanent internal zone] ************************ task path: /tmp/tmpmjzlljip/tests/tests_ansible.yml:287 changed: [/cache/rhel-8.qcow2] => {"changed": true, "failed_when_result": false} TASK [Ensure default target in permanent internal zone, again] ***************** task path: /tmp/tmpmjzlljip/tests/tests_ansible.yml:296 ok: [/cache/rhel-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/tmpmjzlljip/tests/tests_ansible.yml:305 changed: [/cache/rhel-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/tmpmjzlljip/tests/tests_ansible.yml:317 ok: [/cache/rhel-8.qcow2] => {"changed": false, "failed_when_result": false} TASK [Remove custom zone] ****************************************************** task path: /tmp/tmpmjzlljip/tests/tests_ansible.yml:333 changed: [/cache/rhel-8.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--delete-zone=custom"], "delta": "0:00:00.243397", "end": "2021-08-30 23:45:32.743426", "failed_when_result": false, "rc": 0, "start": "2021-08-30 23:45:32.500029", "stderr": "", "stderr_lines": [], "stdout": "success", "stdout_lines": ["success"]} TASK [Reset internal zone to defaults] ***************************************** task path: /tmp/tmpmjzlljip/tests/tests_ansible.yml:338 changed: [/cache/rhel-8.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--load-zone-defaults=internal"], "delta": "0:00:00.249495", "end": "2021-08-30 23:45:33.357599", "failed_when_result": false, "rc": 0, "start": "2021-08-30 23:45:33.108104", "stderr": "", "stderr_lines": [], "stdout": "success", "stdout_lines": ["success"]} TASK [Reset trusted zone to defaults] ****************************************** task path: /tmp/tmpmjzlljip/tests/tests_ansible.yml:343 changed: [/cache/rhel-8.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--load-zone-defaults=trusted"], "delta": "0:00:00.241415", "end": "2021-08-30 23:45:33.964201", "failed_when_result": false, "rc": 0, "start": "2021-08-30 23:45:33.722786", "stderr": "", "stderr_lines": [], "stdout": "success", "stdout_lines": ["success"]} TASK [Reset dmz zone to defaults] ********************************************** task path: /tmp/tmpmjzlljip/tests/tests_ansible.yml:348 changed: [/cache/rhel-8.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--load-zone-defaults=dmz"], "delta": "0:00:00.236631", "end": "2021-08-30 23:45:34.561317", "failed_when_result": false, "rc": 0, "start": "2021-08-30 23:45:34.324686", "stderr": "", "stderr_lines": [], "stdout": "success", "stdout_lines": ["success"]} TASK [Reset drop zone to defaults] ********************************************* task path: /tmp/tmpmjzlljip/tests/tests_ansible.yml:353 changed: [/cache/rhel-8.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--load-zone-defaults=drop"], "delta": "0:00:00.236361", "end": "2021-08-30 23:45:35.159970", "failed_when_result": false, "rc": 0, "start": "2021-08-30 23:45:34.923609", "stderr": "", "stderr_lines": [], "stdout": "success", "stdout_lines": ["success"]} TASK [Reset public zone to defaults] ******************************************* task path: /tmp/tmpmjzlljip/tests/tests_ansible.yml:358 changed: [/cache/rhel-8.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--load-zone-defaults=public"], "delta": "0:00:00.232778", "end": "2021-08-30 23:45:35.743499", "failed_when_result": false, "rc": 0, "start": "2021-08-30 23:45:35.510721", "stderr": "", "stderr_lines": [], "stdout": "success", "stdout_lines": ["success"]} TASK [Reset default zone to defaults] ****************************************** task path: /tmp/tmpmjzlljip/tests/tests_ansible.yml:363 changed: [/cache/rhel-8.qcow2] => {"changed": true, "cmd": "zone=$(firewall-cmd --get-default-zone)\nfirewall-cmd --permanent --load-zone-defaults=$zone\n", "delta": "0:00:00.464271", "end": "2021-08-30 23:45:36.554217", "failed_when_result": false, "msg": "non-zero return code", "rc": 22, "start": "2021-08-30 23:45:36.089946", "stderr": "Error: NO_DEFAULTS: public", "stderr_lines": ["Error: NO_DEFAULTS: public"], "stdout": "", "stdout_lines": []} TASK [Reload firewalld] ******************************************************** task path: /tmp/tmpmjzlljip/tests/tests_ansible.yml:371 changed: [/cache/rhel-8.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--reload"], "delta": "0:00:00.669620", "end": "2021-08-30 23:45:37.572386", "failed_when_result": false, "rc": 0, "start": "2021-08-30 23:45:36.902766", "stderr": "", "stderr_lines": [], "stdout": "success", "stdout_lines": ["success"]} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=53 changed=34 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 + cd /tmp/tmpmjzlljip/tests; TEST_SUBJECTS=/cache/rhel-8.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_firewall-35-f13e2d1-rhel-8-rmpjgdsw/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpmjzlljip/_setup.yml /tmp/tmpmjzlljip/tests/tests_default.yml ansible-playbook 2.9.23 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/tester/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.9.6 (default, Jun 29 2021, 00:00:00) [GCC 11.1.1 20210531 (Red Hat 11.1.1-3)] 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/tmpmjzlljip/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpmjzlljip/_setup.yml:5 ok: [/cache/rhel-8.qcow2] => { "groups": { "all": [ "/cache/rhel-8.qcow2" ], "localhost": [ "/cache/rhel-8.qcow2" ], "subjects": [ "/cache/rhel-8.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpmjzlljip/_setup.yml:7 skipping: [/cache/rhel-8.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /tmp/tmpmjzlljip/_setup.yml:16 changed: [/cache/rhel-8.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-8.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-8.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-8.qcow2] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=2 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 statically imported: /tmp/tmpmjzlljip/tasks/firewalld.yml PLAYBOOK: tests_default.yml **************************************************** 1 plays in /tmp/tmpmjzlljip/tests/tests_default.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpmjzlljip/tests/tests_default.yml:1 ok: [/cache/rhel-8.qcow2] META: ran handlers TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpmjzlljip/tasks/firewalld.yml:2 changed: [/cache/rhel-8.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: ipset-7.1-1.el8.x86_64", "Installed: libnetfilter_conntrack-1.0.6-5.el8.x86_64", "Installed: ipset-libs-7.1-1.el8.x86_64", "Installed: python3-nftables-1:0.9.3-18.el8.x86_64", "Installed: iptables-1.8.4-17.el8.x86_64", "Installed: python3-firewall-0.8.2-6.el8.noarch", "Installed: iptables-ebtables-1.8.4-17.el8.x86_64", "Installed: libnfnetlink-1.0.1-13.el8.x86_64", "Installed: firewalld-0.8.2-6.el8.noarch", "Installed: firewalld-filesystem-0.8.2-6.el8.noarch", "Installed: libnftnl-1.1.5-4.el8.x86_64", "Installed: nftables-1:0.9.3-18.el8.x86_64"]} TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmpmjzlljip/tasks/firewalld.yml:7 skipping: [/cache/rhel-8.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmpmjzlljip/tasks/firewalld.yml:13 ok: [/cache/rhel-8.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmpmjzlljip/tasks/firewalld.yml:19 changed: [/cache/rhel-8.qcow2] => {"changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": {"ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "polkit.service system.slice dbus.socket dbus.service basic.target sysinit.target", "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": "iptables.service ip6tables.service ipset.service nftables.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": "6997", "LimitNPROCSoft": "6997", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6997", "LimitSIGPENDINGSoft": "6997", "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": "11196", "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/tmpmjzlljip/tasks/main.yml:3 META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=6 changed=3 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 + cd /tmp/tmpmjzlljip/tests; TEST_SUBJECTS=/cache/rhel-8.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_firewall-35-f13e2d1-rhel-8-rmpjgdsw/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpmjzlljip/_setup.yml /tmp/tmpmjzlljip/tests/tests_zone.yml ansible-playbook 2.9.23 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/tester/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.9.6 (default, Jun 29 2021, 00:00:00) [GCC 11.1.1 20210531 (Red Hat 11.1.1-3)] 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/tmpmjzlljip/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpmjzlljip/_setup.yml:5 ok: [/cache/rhel-8.qcow2] => { "groups": { "all": [ "/cache/rhel-8.qcow2" ], "localhost": [ "/cache/rhel-8.qcow2" ], "subjects": [ "/cache/rhel-8.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpmjzlljip/_setup.yml:7 skipping: [/cache/rhel-8.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /tmp/tmpmjzlljip/_setup.yml:16 changed: [/cache/rhel-8.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-8.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-8.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-8.qcow2] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=2 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_zone.yml ******************************************************* 1 plays in /tmp/tmpmjzlljip/tests/tests_zone.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpmjzlljip/tests/tests_zone.yml:1 ok: [/cache/rhel-8.qcow2] META: ran handlers TASK [include_role : linux-system-roles.firewall] ****************************** task path: /tmp/tmpmjzlljip/tests/tests_zone.yml:6 statically imported: /tmp/tmpmjzlljip/tasks/firewalld.yml TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpmjzlljip/tasks/firewalld.yml:2 changed: [/cache/rhel-8.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: ipset-7.1-1.el8.x86_64", "Installed: libnetfilter_conntrack-1.0.6-5.el8.x86_64", "Installed: ipset-libs-7.1-1.el8.x86_64", "Installed: python3-nftables-1:0.9.3-18.el8.x86_64", "Installed: iptables-1.8.4-17.el8.x86_64", "Installed: python3-firewall-0.8.2-6.el8.noarch", "Installed: iptables-ebtables-1.8.4-17.el8.x86_64", "Installed: libnfnetlink-1.0.1-13.el8.x86_64", "Installed: firewalld-0.8.2-6.el8.noarch", "Installed: firewalld-filesystem-0.8.2-6.el8.noarch", "Installed: libnftnl-1.1.5-4.el8.x86_64", "Installed: nftables-1:0.9.3-18.el8.x86_64"]} TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmpmjzlljip/tasks/firewalld.yml:7 skipping: [/cache/rhel-8.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmpmjzlljip/tasks/firewalld.yml:13 ok: [/cache/rhel-8.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmpmjzlljip/tasks/firewalld.yml:19 changed: [/cache/rhel-8.qcow2] => {"changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": {"ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "dbus.socket sysinit.target dbus.service basic.target system.slice 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": "ebtables.service ipset.service ip6tables.service shutdown.target nftables.service iptables.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "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": "6997", "LimitNPROCSoft": "6997", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6997", "LimitSIGPENDINGSoft": "6997", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice sysinit.target dbus.socket", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "11196", "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/tmpmjzlljip/tasks/main.yml:3 TASK [Verify used firewalld zones] ********************************************* task path: /tmp/tmpmjzlljip/tests/tests_zone.yml:14 statically imported: /tmp/tmpmjzlljip/tasks/firewalld.yml TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpmjzlljip/tasks/firewalld.yml:2 ok: [/cache/rhel-8.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmpmjzlljip/tasks/firewalld.yml:7 skipping: [/cache/rhel-8.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmpmjzlljip/tasks/firewalld.yml:13 ok: [/cache/rhel-8.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmpmjzlljip/tasks/firewalld.yml:19 ok: [/cache/rhel-8.qcow2] => {"changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": {"ActiveEnterTimestamp": "Mon 2021-08-30 23:47:59 EDT", "ActiveEnterTimestampMonotonic": "60342989", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "dbus.socket sysinit.target dbus.service basic.target system.slice polkit.service", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Mon 2021-08-30 23:47:59 EDT", "AssertTimestampMonotonic": "60104450", "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": "Mon 2021-08-30 23:47:59 EDT", "ConditionTimestampMonotonic": "60104450", "ConfigurationDirectoryMode": "0755", "Conflicts": "ebtables.service ipset.service ip6tables.service shutdown.target nftables.service iptables.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": "10817", "ExecMainStartTimestamp": "Mon 2021-08-30 23:47:59 EDT", "ExecMainStartTimestampMonotonic": "60105575", "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=[Mon 2021-08-30 23:47:59 EDT] ; stop_time=[n/a] ; pid=10817 ; 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": "Mon 2021-08-30 23:47:59 EDT", "InactiveExitTimestampMonotonic": "60105611", "InvocationID": "5dffee2bad3b453badfe5ac79b01cea6", "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": "6997", "LimitNPROCSoft": "6997", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6997", "LimitSIGPENDINGSoft": "6997", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "10817", "MemoryAccounting": "yes", "MemoryCurrent": "25600000", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice sysinit.target dbus.socket", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Mon 2021-08-30 23:47:59 EDT", "StateChangeTimestampMonotonic": "60342989", "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": "11196", "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": "Mon 2021-08-30 23:47:59 EDT", "WatchdogTimestampMonotonic": "60342988", "WatchdogUSec": "0"}} TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmpmjzlljip/tasks/main.yml:3 ok: [/cache/rhel-8.qcow2] => (item={'zone': 'internal', 'state': 'enabled'}) => {"ansible_loop_var": "item", "changed": false, "item": {"state": "enabled", "zone": "internal"}} ok: [/cache/rhel-8.qcow2] => (item={'zone': 'external', 'state': 'enabled'}) => {"ansible_loop_var": "item", "changed": false, "item": {"state": "enabled", "zone": "external"}} ok: [/cache/rhel-8.qcow2] => (item={'zone': 'trusted', 'state': 'enabled'}) => {"ansible_loop_var": "item", "changed": false, "item": {"state": "enabled", "zone": "trusted"}} TASK [Fail on missing zones] *************************************************** task path: /tmp/tmpmjzlljip/tests/tests_zone.yml:26 skipping: [/cache/rhel-8.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Setup firewalld] ********************************************************* task path: /tmp/tmpmjzlljip/tests/tests_zone.yml:32 statically imported: /tmp/tmpmjzlljip/tasks/firewalld.yml TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpmjzlljip/tasks/firewalld.yml:2 ok: [/cache/rhel-8.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmpmjzlljip/tasks/firewalld.yml:7 skipping: [/cache/rhel-8.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmpmjzlljip/tasks/firewalld.yml:13 ok: [/cache/rhel-8.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmpmjzlljip/tasks/firewalld.yml:19 ok: [/cache/rhel-8.qcow2] => {"changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": {"ActiveEnterTimestamp": "Mon 2021-08-30 23:47:59 EDT", "ActiveEnterTimestampMonotonic": "60342989", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "dbus.socket sysinit.target dbus.service basic.target system.slice polkit.service", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Mon 2021-08-30 23:47:59 EDT", "AssertTimestampMonotonic": "60104450", "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": "Mon 2021-08-30 23:47:59 EDT", "ConditionTimestampMonotonic": "60104450", "ConfigurationDirectoryMode": "0755", "Conflicts": "ebtables.service ipset.service ip6tables.service shutdown.target nftables.service iptables.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": "10817", "ExecMainStartTimestamp": "Mon 2021-08-30 23:47:59 EDT", "ExecMainStartTimestampMonotonic": "60105575", "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=[Mon 2021-08-30 23:47:59 EDT] ; stop_time=[n/a] ; pid=10817 ; 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": "Mon 2021-08-30 23:47:59 EDT", "InactiveExitTimestampMonotonic": "60105611", "InvocationID": "5dffee2bad3b453badfe5ac79b01cea6", "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": "6997", "LimitNPROCSoft": "6997", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6997", "LimitSIGPENDINGSoft": "6997", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "10817", "MemoryAccounting": "yes", "MemoryCurrent": "26923008", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice sysinit.target dbus.socket", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Mon 2021-08-30 23:47:59 EDT", "StateChangeTimestampMonotonic": "60342989", "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": "11196", "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": "Mon 2021-08-30 23:47:59 EDT", "WatchdogTimestampMonotonic": "60342988", "WatchdogUSec": "0"}} TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmpmjzlljip/tasks/main.yml:3 changed: [/cache/rhel-8.qcow2] => (item={'zone': 'internal', 'service': ['tftp', 'ftp'], 'port': ['443/tcp', '443/udp'], 'forward_port': ['447/tcp;;1.2.3.4', '448/tcp;;1.2.3.5'], 'state': 'enabled'}) => {"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/tmpmjzlljip/tests/tests_zone.yml:45 skipping: [/cache/rhel-8.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Setup firewalld again] *************************************************** task path: /tmp/tmpmjzlljip/tests/tests_zone.yml:51 TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpmjzlljip/tasks/firewalld.yml:2 ok: [/cache/rhel-8.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmpmjzlljip/tasks/firewalld.yml:7 skipping: [/cache/rhel-8.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmpmjzlljip/tasks/firewalld.yml:13 ok: [/cache/rhel-8.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmpmjzlljip/tasks/firewalld.yml:19 ok: [/cache/rhel-8.qcow2] => {"changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": {"ActiveEnterTimestamp": "Mon 2021-08-30 23:47:59 EDT", "ActiveEnterTimestampMonotonic": "60342989", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "dbus.socket sysinit.target dbus.service basic.target system.slice polkit.service", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Mon 2021-08-30 23:47:59 EDT", "AssertTimestampMonotonic": "60104450", "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": "Mon 2021-08-30 23:47:59 EDT", "ConditionTimestampMonotonic": "60104450", "ConfigurationDirectoryMode": "0755", "Conflicts": "ebtables.service ipset.service ip6tables.service shutdown.target nftables.service iptables.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": "10817", "ExecMainStartTimestamp": "Mon 2021-08-30 23:47:59 EDT", "ExecMainStartTimestampMonotonic": "60105575", "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=[Mon 2021-08-30 23:47:59 EDT] ; stop_time=[n/a] ; pid=10817 ; 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": "Mon 2021-08-30 23:47:59 EDT", "InactiveExitTimestampMonotonic": "60105611", "InvocationID": "5dffee2bad3b453badfe5ac79b01cea6", "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": "6997", "LimitNPROCSoft": "6997", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6997", "LimitSIGPENDINGSoft": "6997", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "10817", "MemoryAccounting": "yes", "MemoryCurrent": "26931200", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice sysinit.target dbus.socket", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Mon 2021-08-30 23:47:59 EDT", "StateChangeTimestampMonotonic": "60342989", "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": "11196", "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": "Mon 2021-08-30 23:47:59 EDT", "WatchdogTimestampMonotonic": "60342988", "WatchdogUSec": "0"}} TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmpmjzlljip/tasks/main.yml:3 ok: [/cache/rhel-8.qcow2] => (item={'zone': 'internal', 'service': ['tftp', 'ftp'], 'port': ['443/tcp', '443/udp'], 'forward_port': ['447/tcp;;1.2.3.4', '448/tcp;;1.2.3.5'], 'state': 'enabled'}) => {"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/tmpmjzlljip/tests/tests_zone.yml:64 skipping: [/cache/rhel-8.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify firewalld zone internal services] ********************************* task path: /tmp/tmpmjzlljip/tests/tests_zone.yml:70 changed: [/cache/rhel-8.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--zone=internal", "--list-services"], "delta": "0:00:00.239482", "end": "2021-08-30 23:48:11.913270", "failed_when_result": false, "rc": 0, "start": "2021-08-30 23:48:11.673788", "stderr": "", "stderr_lines": [], "stdout": "cockpit dhcpv6-client ftp mdns samba-client ssh tftp", "stdout_lines": ["cockpit dhcpv6-client ftp mdns samba-client ssh tftp"]} TASK [Verify firewalld zone internal ports] ************************************ task path: /tmp/tmpmjzlljip/tests/tests_zone.yml:77 changed: [/cache/rhel-8.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--zone=internal", "--list-ports"], "delta": "0:00:00.242418", "end": "2021-08-30 23:48:12.509420", "failed_when_result": false, "rc": 0, "start": "2021-08-30 23:48:12.267002", "stderr": "", "stderr_lines": [], "stdout": "443/tcp 443/udp", "stdout_lines": ["443/tcp 443/udp"]} TASK [Verify firewalld zone internal forward ports] **************************** task path: /tmp/tmpmjzlljip/tests/tests_zone.yml:84 changed: [/cache/rhel-8.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--zone=internal", "--list-forward-ports"], "delta": "0:00:00.246540", "end": "2021-08-30 23:48:13.121878", "failed_when_result": false, "rc": 0, "start": "2021-08-30 23:48:12.875338", "stderr": "", "stderr_lines": [], "stdout": "port=447:proto=tcp:toport=:toaddr=1.2.3.4\nport=448:proto=tcp:toport=:toaddr=1.2.3.5", "stdout_lines": ["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/tmpmjzlljip/tests/tests_zone.yml:97 changed: [/cache/rhel-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.392179", "end": "2021-08-30 23:48:14.862253", "rc": 0, "start": "2021-08-30 23:48:13.470074", "stderr": "", "stderr_lines": [], "stdout": "success\nsuccess\nsuccess\nsuccess", "stdout_lines": ["success", "success", "success", "success"]} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=22 changed=8 unreachable=0 failed=0 skipped=9 rescued=0 ignored=0 + cd /tmp/tmpvzhugzks/tests/firewall; TEST_SUBJECTS=/cache/rhel-8.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_firewall-35-f13e2d1-rhel-8-rmpjgdsw/artifacts ANSIBLE_COLLECTIONS_PATHS=/tmp/tmpb1nxq5zt:~/.ansible/collections:/usr/share/ansible/collections ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpmjzlljip/_setup.yml /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml ansible-playbook 2.9.23 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/tester/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.9.6 (default, Jun 29 2021, 00:00:00) [GCC 11.1.1 20210531 (Red Hat 11.1.1-3)] 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/tmpmjzlljip/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpmjzlljip/_setup.yml:5 ok: [/cache/rhel-8.qcow2] => { "groups": { "all": [ "/cache/rhel-8.qcow2" ], "localhost": [ "/cache/rhel-8.qcow2" ], "subjects": [ "/cache/rhel-8.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpmjzlljip/_setup.yml:7 skipping: [/cache/rhel-8.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /tmp/tmpmjzlljip/_setup.yml:16 changed: [/cache/rhel-8.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-8.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-8.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-8.qcow2] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=2 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 statically imported: /tmp/tmpb1nxq5zt/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml PLAYBOOK: tests_ansible.yml **************************************************** 1 plays in /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml:1 ok: [/cache/rhel-8.qcow2] META: ran handlers TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmpb1nxq5zt/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 changed: [/cache/rhel-8.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: ipset-7.1-1.el8.x86_64", "Installed: libnetfilter_conntrack-1.0.6-5.el8.x86_64", "Installed: ipset-libs-7.1-1.el8.x86_64", "Installed: python3-nftables-1:0.9.3-18.el8.x86_64", "Installed: iptables-1.8.4-17.el8.x86_64", "Installed: python3-firewall-0.8.2-6.el8.noarch", "Installed: iptables-ebtables-1.8.4-17.el8.x86_64", "Installed: libnfnetlink-1.0.1-13.el8.x86_64", "Installed: firewalld-0.8.2-6.el8.noarch", "Installed: firewalld-filesystem-0.8.2-6.el8.noarch", "Installed: libnftnl-1.1.5-4.el8.x86_64", "Installed: nftables-1:0.9.3-18.el8.x86_64"]} TASK [fedora.linux_system_roles.firewall : Install python-firewall] ************ task path: /tmp/tmpb1nxq5zt/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 skipping: [/cache/rhel-8.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [fedora.linux_system_roles.firewall : Install python3-firewall] *********** task path: /tmp/tmpb1nxq5zt/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:13 ok: [/cache/rhel-8.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [fedora.linux_system_roles.firewall : Enable and start firewalld service] *** task path: /tmp/tmpb1nxq5zt/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 changed: [/cache/rhel-8.qcow2] => {"changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": {"ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "polkit.service sysinit.target basic.target system.slice dbus.service dbus.socket", "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": "iptables.service ip6tables.service ipset.service ebtables.service shutdown.target nftables.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": "6997", "LimitNPROCSoft": "6997", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6997", "LimitSIGPENDINGSoft": "6997", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "sysinit.target system.slice dbus.socket", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "11196", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}} TASK [fedora.linux_system_roles.firewall : Configure firewall] ***************** task path: /tmp/tmpb1nxq5zt/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 TASK [Remove custom zone] ****************************************************** task path: /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml:14 changed: [/cache/rhel-8.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--delete-zone=custom"], "delta": "0:00:00.247472", "end": "2021-08-30 23:49:20.818247", "failed_when_result": false, "msg": "non-zero return code", "rc": 112, "start": "2021-08-30 23:49:20.570775", "stderr": "Error: INVALID_ZONE: custom", "stderr_lines": ["Error: INVALID_ZONE: custom"], "stdout": "", "stdout_lines": []} TASK [Reset internal zone to defaults] ***************************************** task path: /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml:19 changed: [/cache/rhel-8.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--load-zone-defaults=internal"], "delta": "0:00:00.245437", "end": "2021-08-30 23:49:21.416921", "failed_when_result": false, "msg": "non-zero return code", "rc": 22, "start": "2021-08-30 23:49:21.171484", "stderr": "Error: NO_DEFAULTS: internal", "stderr_lines": ["Error: NO_DEFAULTS: internal"], "stdout": "", "stdout_lines": []} TASK [Reset trusted zone to defaults] ****************************************** task path: /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml:24 changed: [/cache/rhel-8.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--load-zone-defaults=trusted"], "delta": "0:00:00.249555", "end": "2021-08-30 23:49:22.031627", "failed_when_result": false, "msg": "non-zero return code", "rc": 22, "start": "2021-08-30 23:49:21.782072", "stderr": "Error: NO_DEFAULTS: trusted", "stderr_lines": ["Error: NO_DEFAULTS: trusted"], "stdout": "", "stdout_lines": []} TASK [Reset dmz zone to defaults] ********************************************** task path: /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml:29 changed: [/cache/rhel-8.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--load-zone-defaults=dmz"], "delta": "0:00:00.240404", "end": "2021-08-30 23:49:22.622023", "failed_when_result": false, "msg": "non-zero return code", "rc": 22, "start": "2021-08-30 23:49:22.381619", "stderr": "Error: NO_DEFAULTS: dmz", "stderr_lines": ["Error: NO_DEFAULTS: dmz"], "stdout": "", "stdout_lines": []} TASK [Reset drop zone to defaults] ********************************************* task path: /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml:34 changed: [/cache/rhel-8.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--load-zone-defaults=drop"], "delta": "0:00:00.237739", "end": "2021-08-30 23:49:23.212785", "failed_when_result": false, "msg": "non-zero return code", "rc": 22, "start": "2021-08-30 23:49:22.975046", "stderr": "Error: NO_DEFAULTS: drop", "stderr_lines": ["Error: NO_DEFAULTS: drop"], "stdout": "", "stdout_lines": []} TASK [Reset public zone to defaults] ******************************************* task path: /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml:39 changed: [/cache/rhel-8.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--load-zone-defaults=public"], "delta": "0:00:00.239597", "end": "2021-08-30 23:49:23.800579", "failed_when_result": false, "msg": "non-zero return code", "rc": 22, "start": "2021-08-30 23:49:23.560982", "stderr": "Error: NO_DEFAULTS: public", "stderr_lines": ["Error: NO_DEFAULTS: public"], "stdout": "", "stdout_lines": []} TASK [Reset default zone to defaults] ****************************************** task path: /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml:44 changed: [/cache/rhel-8.qcow2] => {"changed": true, "cmd": "zone=$(firewall-cmd --get-default-zone)\nfirewall-cmd --permanent --load-zone-defaults=$zone\n", "delta": "0:00:00.490774", "end": "2021-08-30 23:49:24.658124", "failed_when_result": false, "msg": "non-zero return code", "rc": 22, "start": "2021-08-30 23:49:24.167350", "stderr": "Error: NO_DEFAULTS: public", "stderr_lines": ["Error: NO_DEFAULTS: public"], "stdout": "", "stdout_lines": []} TASK [Create custom zone] ****************************************************** task path: /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml:52 changed: [/cache/rhel-8.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--new-zone=custom"], "delta": "0:00:00.244196", "end": "2021-08-30 23:49:25.261969", "failed_when_result": false, "rc": 0, "start": "2021-08-30 23:49:25.017773", "stderr": "", "stderr_lines": [], "stdout": "success", "stdout_lines": ["success"]} TASK [Reload firewalld] ******************************************************** task path: /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml:57 changed: [/cache/rhel-8.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--reload"], "delta": "0:00:00.685293", "end": "2021-08-30 23:49:26.299288", "failed_when_result": false, "rc": 0, "start": "2021-08-30 23:49:25.613995", "stderr": "", "stderr_lines": [], "stdout": "success", "stdout_lines": ["success"]} TASK [Permit traffic in default zone for https service] ************************ task path: /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml:64 changed: [/cache/rhel-8.qcow2] => {"changed": true, "failed_when_result": false} TASK [Permit traffic in default zone for https service, again] ***************** task path: /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml:72 ok: [/cache/rhel-8.qcow2] => {"changed": false, "failed_when_result": false} TASK [Permit traffic in default zone on port 8081/tcp] ************************* task path: /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml:80 changed: [/cache/rhel-8.qcow2] => {"changed": true, "failed_when_result": false} TASK [Permit traffic in default zone on port 8081/tcp, again] ****************** task path: /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml:88 ok: [/cache/rhel-8.qcow2] => {"changed": false, "failed_when_result": false} TASK [Allow port 161-162/udp in permanent default zone] ************************ task path: /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml:96 changed: [/cache/rhel-8.qcow2] => {"changed": true, "failed_when_result": false} TASK [Allow port 161-162/udp in permanent default zone, again] ***************** task path: /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml:104 ok: [/cache/rhel-8.qcow2] => {"changed": false, "failed_when_result": false} TASK [Do not permit traffic in default zone on port 8081/tcp] ****************** task path: /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml:112 changed: [/cache/rhel-8.qcow2] => {"changed": true, "failed_when_result": false} TASK [Do not permit traffic in default zone on port 8081/tcp, again] *********** task path: /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml:120 ok: [/cache/rhel-8.qcow2] => {"changed": false, "failed_when_result": false} TASK [Allow service http in permanent dmz zone] ******************************** task path: /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml:128 changed: [/cache/rhel-8.qcow2] => {"changed": true, "failed_when_result": false} TASK [Allow service http in permanent dmz zone, again] ************************* task path: /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml:137 ok: [/cache/rhel-8.qcow2] => {"changed": false, "failed_when_result": false} TASK [Allow service ftp with limitation using rich rule in permanent default zone] *** task path: /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml:146 changed: [/cache/rhel-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/tmpvzhugzks/tests/firewall/tests_ansible.yml:154 ok: [/cache/rhel-8.qcow2] => {"changed": false, "failed_when_result": false} TASK [Allow source 192.0.2.0/24 in internal zone] ****************************** task path: /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml:162 changed: [/cache/rhel-8.qcow2] => {"changed": true, "failed_when_result": false} TASK [Allow source 192.0.2.0/24 in internal zone, again] *********************** task path: /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml:170 ok: [/cache/rhel-8.qcow2] => {"changed": false, "failed_when_result": false} TASK [Allow interface eth2 in permanent trusted zone] ************************** task path: /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml:178 changed: [/cache/rhel-8.qcow2] => {"changed": true, "failed_when_result": false} TASK [Allow interface eth2 in permanent trusted zone, again] ******************* task path: /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml:187 ok: [/cache/rhel-8.qcow2] => {"changed": false, "failed_when_result": false} TASK [Allow masquerading in permament dmz zone] ******************************** task path: /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml:196 changed: [/cache/rhel-8.qcow2] => {"changed": true, "failed_when_result": false} TASK [Allow masquerading in permament dmz zone, again] ************************* task path: /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml:205 ok: [/cache/rhel-8.qcow2] => {"changed": false, "failed_when_result": false} TASK [Ensure permanent custom zone exists (no change)] ************************* task path: /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml:214 ok: [/cache/rhel-8.qcow2] => {"changed": false, "failed_when_result": false} TASK [Ensure ICMP block inversion in permanent drop zone] ********************** task path: /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml:222 changed: [/cache/rhel-8.qcow2] => {"changed": true, "failed_when_result": false} TASK [Ensure ICMP block inversion in permanent drop zone, again] *************** task path: /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml:231 ok: [/cache/rhel-8.qcow2] => {"changed": false, "failed_when_result": false} TASK [Block ICMP echo-request in permanent drop zone] ************************** task path: /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml:240 changed: [/cache/rhel-8.qcow2] => {"changed": true, "failed_when_result": false} TASK [Block ICMP echo-request in permanent drop zone, again] ******************* task path: /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml:249 ok: [/cache/rhel-8.qcow2] => {"changed": false, "failed_when_result": false} TASK [Ensure default target in permanent internal zone (no change)] ************ task path: /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml:258 ok: [/cache/rhel-8.qcow2] => {"changed": false, "failed_when_result": false} TASK [Ensure target ACCEPT in permanent internal zone] ************************* task path: /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml:267 changed: [/cache/rhel-8.qcow2] => {"changed": true, "failed_when_result": false} TASK [Ensure target ACCEPT in permanent internal zone, again] ****************** task path: /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml:276 ok: [/cache/rhel-8.qcow2] => {"changed": false, "failed_when_result": false} TASK [Ensure default target in permanent internal zone] ************************ task path: /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml:285 changed: [/cache/rhel-8.qcow2] => {"changed": true, "failed_when_result": false} TASK [Ensure default target in permanent internal zone, again] ***************** task path: /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml:294 ok: [/cache/rhel-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/tmpvzhugzks/tests/firewall/tests_ansible.yml:303 changed: [/cache/rhel-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/tmpvzhugzks/tests/firewall/tests_ansible.yml:313 ok: [/cache/rhel-8.qcow2] => {"changed": false, "failed_when_result": false} TASK [Remove custom zone] ****************************************************** task path: /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml:327 changed: [/cache/rhel-8.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--delete-zone=custom"], "delta": "0:00:00.248696", "end": "2021-08-30 23:49:42.278725", "failed_when_result": false, "rc": 0, "start": "2021-08-30 23:49:42.030029", "stderr": "", "stderr_lines": [], "stdout": "success", "stdout_lines": ["success"]} TASK [Reset internal zone to defaults] ***************************************** task path: /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml:332 changed: [/cache/rhel-8.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--load-zone-defaults=internal"], "delta": "0:00:00.244267", "end": "2021-08-30 23:49:42.868044", "failed_when_result": false, "rc": 0, "start": "2021-08-30 23:49:42.623777", "stderr": "", "stderr_lines": [], "stdout": "success", "stdout_lines": ["success"]} TASK [Reset trusted zone to defaults] ****************************************** task path: /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml:337 changed: [/cache/rhel-8.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--load-zone-defaults=trusted"], "delta": "0:00:00.234470", "end": "2021-08-30 23:49:43.443644", "failed_when_result": false, "rc": 0, "start": "2021-08-30 23:49:43.209174", "stderr": "", "stderr_lines": [], "stdout": "success", "stdout_lines": ["success"]} TASK [Reset dmz zone to defaults] ********************************************** task path: /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml:342 changed: [/cache/rhel-8.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--load-zone-defaults=dmz"], "delta": "0:00:00.238439", "end": "2021-08-30 23:49:44.022390", "failed_when_result": false, "rc": 0, "start": "2021-08-30 23:49:43.783951", "stderr": "", "stderr_lines": [], "stdout": "success", "stdout_lines": ["success"]} TASK [Reset drop zone to defaults] ********************************************* task path: /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml:347 changed: [/cache/rhel-8.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--load-zone-defaults=drop"], "delta": "0:00:00.246966", "end": "2021-08-30 23:49:44.616674", "failed_when_result": false, "rc": 0, "start": "2021-08-30 23:49:44.369708", "stderr": "", "stderr_lines": [], "stdout": "success", "stdout_lines": ["success"]} TASK [Reset public zone to defaults] ******************************************* task path: /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml:352 changed: [/cache/rhel-8.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--load-zone-defaults=public"], "delta": "0:00:00.237584", "end": "2021-08-30 23:49:45.208287", "failed_when_result": false, "rc": 0, "start": "2021-08-30 23:49:44.970703", "stderr": "", "stderr_lines": [], "stdout": "success", "stdout_lines": ["success"]} TASK [Reset default zone to defaults] ****************************************** task path: /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml:357 changed: [/cache/rhel-8.qcow2] => {"changed": true, "cmd": "zone=$(firewall-cmd --get-default-zone)\nfirewall-cmd --permanent --load-zone-defaults=$zone\n", "delta": "0:00:00.477753", "end": "2021-08-30 23:49:46.038873", "failed_when_result": false, "msg": "non-zero return code", "rc": 22, "start": "2021-08-30 23:49:45.561120", "stderr": "Error: NO_DEFAULTS: public", "stderr_lines": ["Error: NO_DEFAULTS: public"], "stdout": "", "stdout_lines": []} TASK [Reload firewalld] ******************************************************** task path: /tmp/tmpvzhugzks/tests/firewall/tests_ansible.yml:365 changed: [/cache/rhel-8.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--reload"], "delta": "0:00:00.679023", "end": "2021-08-30 23:49:47.072020", "failed_when_result": false, "rc": 0, "start": "2021-08-30 23:49:46.392997", "stderr": "", "stderr_lines": [], "stdout": "success", "stdout_lines": ["success"]} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=53 changed=34 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 + cd /tmp/tmpvzhugzks/tests/firewall; TEST_SUBJECTS=/cache/rhel-8.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_firewall-35-f13e2d1-rhel-8-rmpjgdsw/artifacts ANSIBLE_COLLECTIONS_PATHS=/tmp/tmpb1nxq5zt:~/.ansible/collections:/usr/share/ansible/collections ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpmjzlljip/_setup.yml /tmp/tmpvzhugzks/tests/firewall/tests_default.yml ansible-playbook 2.9.23 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/tester/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.9.6 (default, Jun 29 2021, 00:00:00) [GCC 11.1.1 20210531 (Red Hat 11.1.1-3)] 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/tmpmjzlljip/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpmjzlljip/_setup.yml:5 ok: [/cache/rhel-8.qcow2] => { "groups": { "all": [ "/cache/rhel-8.qcow2" ], "localhost": [ "/cache/rhel-8.qcow2" ], "subjects": [ "/cache/rhel-8.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpmjzlljip/_setup.yml:7 skipping: [/cache/rhel-8.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /tmp/tmpmjzlljip/_setup.yml:16 changed: [/cache/rhel-8.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-8.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-8.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-8.qcow2] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=2 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 statically imported: /tmp/tmpb1nxq5zt/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml PLAYBOOK: tests_default.yml **************************************************** 1 plays in /tmp/tmpvzhugzks/tests/firewall/tests_default.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpvzhugzks/tests/firewall/tests_default.yml:1 ok: [/cache/rhel-8.qcow2] META: ran handlers TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmpb1nxq5zt/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 changed: [/cache/rhel-8.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: ipset-7.1-1.el8.x86_64", "Installed: libnetfilter_conntrack-1.0.6-5.el8.x86_64", "Installed: ipset-libs-7.1-1.el8.x86_64", "Installed: python3-nftables-1:0.9.3-18.el8.x86_64", "Installed: iptables-1.8.4-17.el8.x86_64", "Installed: python3-firewall-0.8.2-6.el8.noarch", "Installed: iptables-ebtables-1.8.4-17.el8.x86_64", "Installed: libnfnetlink-1.0.1-13.el8.x86_64", "Installed: firewalld-0.8.2-6.el8.noarch", "Installed: firewalld-filesystem-0.8.2-6.el8.noarch", "Installed: libnftnl-1.1.5-4.el8.x86_64", "Installed: nftables-1:0.9.3-18.el8.x86_64"]} TASK [fedora.linux_system_roles.firewall : Install python-firewall] ************ task path: /tmp/tmpb1nxq5zt/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 skipping: [/cache/rhel-8.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [fedora.linux_system_roles.firewall : Install python3-firewall] *********** task path: /tmp/tmpb1nxq5zt/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:13 ok: [/cache/rhel-8.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [fedora.linux_system_roles.firewall : Enable and start firewalld service] *** task path: /tmp/tmpb1nxq5zt/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 changed: [/cache/rhel-8.qcow2] => {"changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": {"ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "system.slice polkit.service sysinit.target dbus.service basic.target dbus.socket", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "multi-user.target network-pre.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 ipset.service iptables.service ip6tables.service ebtables.service shutdown.target", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "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": "6997", "LimitNPROCSoft": "6997", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6997", "LimitSIGPENDINGSoft": "6997", "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": "11196", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}} TASK [fedora.linux_system_roles.firewall : Configure firewall] ***************** task path: /tmp/tmpb1nxq5zt/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=6 changed=3 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 + cd /tmp/tmpvzhugzks/tests/firewall; TEST_SUBJECTS=/cache/rhel-8.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_firewall-35-f13e2d1-rhel-8-rmpjgdsw/artifacts ANSIBLE_COLLECTIONS_PATHS=/tmp/tmpb1nxq5zt:~/.ansible/collections:/usr/share/ansible/collections ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmpmjzlljip/_setup.yml /tmp/tmpvzhugzks/tests/firewall/tests_zone.yml ansible-playbook 2.9.23 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/tester/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.9.6 (default, Jun 29 2021, 00:00:00) [GCC 11.1.1 20210531 (Red Hat 11.1.1-3)] 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/tmpmjzlljip/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpmjzlljip/_setup.yml:5 ok: [/cache/rhel-8.qcow2] => { "groups": { "all": [ "/cache/rhel-8.qcow2" ], "localhost": [ "/cache/rhel-8.qcow2" ], "subjects": [ "/cache/rhel-8.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpmjzlljip/_setup.yml:7 skipping: [/cache/rhel-8.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /tmp/tmpmjzlljip/_setup.yml:16 changed: [/cache/rhel-8.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-8.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-8.qcow2] => (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} changed: [/cache/rhel-8.qcow2] => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": true} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=2 changed=1 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_zone.yml ******************************************************* 1 plays in /tmp/tmpvzhugzks/tests/firewall/tests_zone.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpvzhugzks/tests/firewall/tests_zone.yml:1 ok: [/cache/rhel-8.qcow2] META: ran handlers TASK [include_role : fedora.linux_system_roles.firewall] *********************** task path: /tmp/tmpvzhugzks/tests/firewall/tests_zone.yml:6 statically imported: /tmp/tmpb1nxq5zt/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmpb1nxq5zt/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 changed: [/cache/rhel-8.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: ipset-7.1-1.el8.x86_64", "Installed: libnetfilter_conntrack-1.0.6-5.el8.x86_64", "Installed: ipset-libs-7.1-1.el8.x86_64", "Installed: python3-nftables-1:0.9.3-18.el8.x86_64", "Installed: iptables-1.8.4-17.el8.x86_64", "Installed: python3-firewall-0.8.2-6.el8.noarch", "Installed: iptables-ebtables-1.8.4-17.el8.x86_64", "Installed: libnfnetlink-1.0.1-13.el8.x86_64", "Installed: firewalld-0.8.2-6.el8.noarch", "Installed: firewalld-filesystem-0.8.2-6.el8.noarch", "Installed: libnftnl-1.1.5-4.el8.x86_64", "Installed: nftables-1:0.9.3-18.el8.x86_64"]} TASK [fedora.linux_system_roles.firewall : Install python-firewall] ************ task path: /tmp/tmpb1nxq5zt/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 skipping: [/cache/rhel-8.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [fedora.linux_system_roles.firewall : Install python3-firewall] *********** task path: /tmp/tmpb1nxq5zt/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:13 ok: [/cache/rhel-8.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [fedora.linux_system_roles.firewall : Enable and start firewalld service] *** task path: /tmp/tmpb1nxq5zt/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 changed: [/cache/rhel-8.qcow2] => {"changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": {"ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "polkit.service dbus.socket basic.target dbus.service sysinit.target system.slice", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target network-pre.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "ip6tables.service ebtables.service iptables.service shutdown.target ipset.service nftables.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": "6997", "LimitNPROCSoft": "6997", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6997", "LimitSIGPENDINGSoft": "6997", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "sysinit.target system.slice dbus.socket", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "11196", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}} TASK [fedora.linux_system_roles.firewall : Configure firewall] ***************** task path: /tmp/tmpb1nxq5zt/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 TASK [Verify used firewalld zones] ********************************************* task path: /tmp/tmpvzhugzks/tests/firewall/tests_zone.yml:14 statically imported: /tmp/tmpb1nxq5zt/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmpb1nxq5zt/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 ok: [/cache/rhel-8.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [fedora.linux_system_roles.firewall : Install python-firewall] ************ task path: /tmp/tmpb1nxq5zt/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 skipping: [/cache/rhel-8.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [fedora.linux_system_roles.firewall : Install python3-firewall] *********** task path: /tmp/tmpb1nxq5zt/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:13 ok: [/cache/rhel-8.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [fedora.linux_system_roles.firewall : Enable and start firewalld service] *** task path: /tmp/tmpb1nxq5zt/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 ok: [/cache/rhel-8.qcow2] => {"changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": {"ActiveEnterTimestamp": "Mon 2021-08-30 23:52:03 EDT", "ActiveEnterTimestampMonotonic": "62318949", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "polkit.service dbus.socket basic.target dbus.service sysinit.target system.slice", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Mon 2021-08-30 23:52:03 EDT", "AssertTimestampMonotonic": "62079891", "Before": "shutdown.target network-pre.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Mon 2021-08-30 23:52:03 EDT", "ConditionTimestampMonotonic": "62079890", "ConfigurationDirectoryMode": "0755", "Conflicts": "ip6tables.service ebtables.service iptables.service shutdown.target ipset.service nftables.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": "10736", "ExecMainStartTimestamp": "Mon 2021-08-30 23:52:03 EDT", "ExecMainStartTimestampMonotonic": "62081425", "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=[Mon 2021-08-30 23:52:03 EDT] ; stop_time=[n/a] ; pid=10736 ; 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": "Mon 2021-08-30 23:52:03 EDT", "InactiveExitTimestampMonotonic": "62081474", "InvocationID": "2629fadb59b4461a80384d74c4b075e6", "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": "6997", "LimitNPROCSoft": "6997", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6997", "LimitSIGPENDINGSoft": "6997", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "10736", "MemoryAccounting": "yes", "MemoryCurrent": "25595904", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "sysinit.target system.slice dbus.socket", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Mon 2021-08-30 23:52:03 EDT", "StateChangeTimestampMonotonic": "62318949", "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": "11196", "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": "Mon 2021-08-30 23:52:03 EDT", "WatchdogTimestampMonotonic": "62318947", "WatchdogUSec": "0"}} TASK [fedora.linux_system_roles.firewall : Configure firewall] ***************** task path: /tmp/tmpb1nxq5zt/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 ok: [/cache/rhel-8.qcow2] => (item={'zone': 'internal', 'state': 'enabled'}) => {"ansible_loop_var": "item", "changed": false, "item": {"state": "enabled", "zone": "internal"}} ok: [/cache/rhel-8.qcow2] => (item={'zone': 'external', 'state': 'enabled'}) => {"ansible_loop_var": "item", "changed": false, "item": {"state": "enabled", "zone": "external"}} ok: [/cache/rhel-8.qcow2] => (item={'zone': 'trusted', 'state': 'enabled'}) => {"ansible_loop_var": "item", "changed": false, "item": {"state": "enabled", "zone": "trusted"}} TASK [Fail on missing zones] *************************************************** task path: /tmp/tmpvzhugzks/tests/firewall/tests_zone.yml:23 skipping: [/cache/rhel-8.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Setup firewalld] ********************************************************* task path: /tmp/tmpvzhugzks/tests/firewall/tests_zone.yml:29 statically imported: /tmp/tmpb1nxq5zt/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmpb1nxq5zt/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 ok: [/cache/rhel-8.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [fedora.linux_system_roles.firewall : Install python-firewall] ************ task path: /tmp/tmpb1nxq5zt/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 skipping: [/cache/rhel-8.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [fedora.linux_system_roles.firewall : Install python3-firewall] *********** task path: /tmp/tmpb1nxq5zt/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:13 ok: [/cache/rhel-8.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [fedora.linux_system_roles.firewall : Enable and start firewalld service] *** task path: /tmp/tmpb1nxq5zt/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 ok: [/cache/rhel-8.qcow2] => {"changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": {"ActiveEnterTimestamp": "Mon 2021-08-30 23:52:03 EDT", "ActiveEnterTimestampMonotonic": "62318949", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "polkit.service dbus.socket basic.target dbus.service sysinit.target system.slice", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Mon 2021-08-30 23:52:03 EDT", "AssertTimestampMonotonic": "62079891", "Before": "shutdown.target network-pre.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Mon 2021-08-30 23:52:03 EDT", "ConditionTimestampMonotonic": "62079890", "ConfigurationDirectoryMode": "0755", "Conflicts": "ip6tables.service ebtables.service iptables.service shutdown.target ipset.service nftables.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": "10736", "ExecMainStartTimestamp": "Mon 2021-08-30 23:52:03 EDT", "ExecMainStartTimestampMonotonic": "62081425", "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=[Mon 2021-08-30 23:52:03 EDT] ; stop_time=[n/a] ; pid=10736 ; 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": "Mon 2021-08-30 23:52:03 EDT", "InactiveExitTimestampMonotonic": "62081474", "InvocationID": "2629fadb59b4461a80384d74c4b075e6", "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": "6997", "LimitNPROCSoft": "6997", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6997", "LimitSIGPENDINGSoft": "6997", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "10736", "MemoryAccounting": "yes", "MemoryCurrent": "26906624", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "sysinit.target system.slice dbus.socket", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Mon 2021-08-30 23:52:03 EDT", "StateChangeTimestampMonotonic": "62318949", "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": "11196", "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": "Mon 2021-08-30 23:52:03 EDT", "WatchdogTimestampMonotonic": "62318947", "WatchdogUSec": "0"}} TASK [fedora.linux_system_roles.firewall : Configure firewall] ***************** task path: /tmp/tmpb1nxq5zt/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 changed: [/cache/rhel-8.qcow2] => (item={'zone': 'internal', 'service': ['tftp', 'ftp'], 'port': ['443/tcp', '443/udp'], 'forward_port': ['447/tcp;;1.2.3.4', '448/tcp;;1.2.3.5'], 'state': 'enabled'}) => {"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/tmpvzhugzks/tests/firewall/tests_zone.yml:37 skipping: [/cache/rhel-8.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Setup firewalld again] *************************************************** task path: /tmp/tmpvzhugzks/tests/firewall/tests_zone.yml:43 TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmpb1nxq5zt/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 ok: [/cache/rhel-8.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [fedora.linux_system_roles.firewall : Install python-firewall] ************ task path: /tmp/tmpb1nxq5zt/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 skipping: [/cache/rhel-8.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [fedora.linux_system_roles.firewall : Install python3-firewall] *********** task path: /tmp/tmpb1nxq5zt/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:13 ok: [/cache/rhel-8.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [fedora.linux_system_roles.firewall : Enable and start firewalld service] *** task path: /tmp/tmpb1nxq5zt/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 ok: [/cache/rhel-8.qcow2] => {"changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": {"ActiveEnterTimestamp": "Mon 2021-08-30 23:52:03 EDT", "ActiveEnterTimestampMonotonic": "62318949", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "polkit.service dbus.socket basic.target dbus.service sysinit.target system.slice", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Mon 2021-08-30 23:52:03 EDT", "AssertTimestampMonotonic": "62079891", "Before": "shutdown.target network-pre.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Mon 2021-08-30 23:52:03 EDT", "ConditionTimestampMonotonic": "62079890", "ConfigurationDirectoryMode": "0755", "Conflicts": "ip6tables.service ebtables.service iptables.service shutdown.target ipset.service nftables.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": "10736", "ExecMainStartTimestamp": "Mon 2021-08-30 23:52:03 EDT", "ExecMainStartTimestampMonotonic": "62081425", "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=[Mon 2021-08-30 23:52:03 EDT] ; stop_time=[n/a] ; pid=10736 ; 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": "Mon 2021-08-30 23:52:03 EDT", "InactiveExitTimestampMonotonic": "62081474", "InvocationID": "2629fadb59b4461a80384d74c4b075e6", "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": "6997", "LimitNPROCSoft": "6997", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6997", "LimitSIGPENDINGSoft": "6997", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "10736", "MemoryAccounting": "yes", "MemoryCurrent": "26923008", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "sysinit.target system.slice dbus.socket", "Restart": "no", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Mon 2021-08-30 23:52:03 EDT", "StateChangeTimestampMonotonic": "62318949", "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": "11196", "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": "Mon 2021-08-30 23:52:03 EDT", "WatchdogTimestampMonotonic": "62318947", "WatchdogUSec": "0"}} TASK [fedora.linux_system_roles.firewall : Configure firewall] ***************** task path: /tmp/tmpb1nxq5zt/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 ok: [/cache/rhel-8.qcow2] => (item={'zone': 'internal', 'service': ['tftp', 'ftp'], 'port': ['443/tcp', '443/udp'], 'forward_port': ['447/tcp;;1.2.3.4', '448/tcp;;1.2.3.5'], 'state': 'enabled'}) => {"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/tmpvzhugzks/tests/firewall/tests_zone.yml:51 skipping: [/cache/rhel-8.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify firewalld zone internal services] ********************************* task path: /tmp/tmpvzhugzks/tests/firewall/tests_zone.yml:57 changed: [/cache/rhel-8.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--zone=internal", "--list-services"], "delta": "0:00:00.255063", "end": "2021-08-30 23:52:16.167955", "failed_when_result": false, "rc": 0, "start": "2021-08-30 23:52:15.912892", "stderr": "", "stderr_lines": [], "stdout": "cockpit dhcpv6-client ftp mdns samba-client ssh tftp", "stdout_lines": ["cockpit dhcpv6-client ftp mdns samba-client ssh tftp"]} TASK [Verify firewalld zone internal ports] ************************************ task path: /tmp/tmpvzhugzks/tests/firewall/tests_zone.yml:62 changed: [/cache/rhel-8.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--zone=internal", "--list-ports"], "delta": "0:00:00.232925", "end": "2021-08-30 23:52:16.774419", "failed_when_result": false, "rc": 0, "start": "2021-08-30 23:52:16.541494", "stderr": "", "stderr_lines": [], "stdout": "443/tcp 443/udp", "stdout_lines": ["443/tcp 443/udp"]} TASK [Verify firewalld zone internal forward ports] **************************** task path: /tmp/tmpvzhugzks/tests/firewall/tests_zone.yml:67 changed: [/cache/rhel-8.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--zone=internal", "--list-forward-ports"], "delta": "0:00:00.245530", "end": "2021-08-30 23:52:17.379117", "failed_when_result": false, "rc": 0, "start": "2021-08-30 23:52:17.133587", "stderr": "", "stderr_lines": [], "stdout": "port=447:proto=tcp:toport=:toaddr=1.2.3.4\nport=448:proto=tcp:toport=:toaddr=1.2.3.5", "stdout_lines": ["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/tmpvzhugzks/tests/firewall/tests_zone.yml:76 changed: [/cache/rhel-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.381807", "end": "2021-08-30 23:52:19.112533", "rc": 0, "start": "2021-08-30 23:52:17.730726", "stderr": "", "stderr_lines": [], "stdout": "success\nsuccess\nsuccess\nsuccess", "stdout_lines": ["success", "success", "success", "success"]} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-8.qcow2 : ok=22 changed=8 unreachable=0 failed=0 skipped=9 rescued=0 ignored=0