ansible-playbook 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Aug 13 2020, 02:51:10) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] Using /etc/ansible/ansible.cfg as config file [ERROR]: GNU xorriso 1.4.8 : RockRidge filesystem manipulator, libburnia project. xorriso : NOTE : Local character set is now assumed as: 'utf-8' 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: rhel-x_setup.yml ***************************************************** 1 plays in /cache/rhel-x_setup.yml PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /cache/rhel-x_setup.yml:6 Tuesday 12 April 2022 23:06:19 +0000 (0:00:00.022) 0:00:00.022 ********* changed: [/cache/rhel-x.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-x.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-x.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-x.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-x.qcow2 : ok=1 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Tuesday 12 April 2022 23:06:20 +0000 (0:00:01.326) 0:00:01.348 ********* =============================================================================== set up internal repositories -------------------------------------------- 1.33s /cache/rhel-x_setup.yml:6 ----------------------------------------------------- PLAYBOOK: tests_ansible.yml **************************************************** 1 plays in /tmp/tmpznojwlki/tests/tests_ansible.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:1 Tuesday 12 April 2022 23:06:20 +0000 (0:00:00.131) 0:00:01.480 ********* ok: [/cache/rhel-x.qcow2] META: ran handlers TASK [linux-system-roles.firewall : include_tasks] ***************************** task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/main.yml:1 Tuesday 12 April 2022 23:06:21 +0000 (0:00:01.085) 0:00:02.566 ********* included: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml for /cache/rhel-x.qcow2 TASK [linux-system-roles.firewall : Ensure ansible_facts used by role] ********* task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Tuesday 12 April 2022 23:06:21 +0000 (0:00:00.036) 0:00:02.603 ********* skipping: [/cache/rhel-x.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 Tuesday 12 April 2022 23:06:21 +0000 (0:00:00.042) 0:00:02.645 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true, "rc": 0, "results": [ "Installed: python3-nftables-1:0.9.8-12.el9.x86_64", "Installed: libcap-ng-python3-0.8.2-7.el9.x86_64", "Installed: ipset-7.11-6.el9.x86_64", "Installed: python3-firewall-1.0.0-4.el9.noarch", "Installed: ipset-libs-7.11-6.el9.x86_64", "Installed: nftables-1:0.9.8-12.el9.x86_64", "Installed: libnftnl-1.1.9-4.el9.x86_64", "Installed: iptables-nft-1.8.7-28.el9.x86_64", "Installed: firewalld-1.0.0-4.el9.noarch", "Installed: firewalld-filesystem-1.0.0-4.el9.noarch" ] } TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Tuesday 12 April 2022 23:06:26 +0000 (0:00:04.600) 0:00:07.245 ********* skipping: [/cache/rhel-x.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Tuesday 12 April 2022 23:06:26 +0000 (0:00:00.049) 0:00:07.295 ********* ok: [/cache/rhel-x.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Tuesday 12 April 2022 23:06:27 +0000 (0:00:00.978) 0:00:08.274 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "sysinit.target basic.target dbus.socket system.slice dbus-broker.service polkit.service", "AllowIsolate": "no", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target multi-user.target network-pre.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "ip6tables.service shutdown.target ebtables.service ipset.service nftables.service iptables.service", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "\"man:firewalld(1)\"", "DynamicUser": "no", "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 }", "ExecReloadEx": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; flags= ; 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 }", "ExecStartEx": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExitType": "main", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "6844", "LimitNPROCSoft": "6844", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6844", "LimitSIGPENDINGSoft": "6844", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "firewalld.service dbus-org.fedoraproject.FirewallD1.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice sysinit.target dbus.socket", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "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": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "10951", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "1min 30s", "TimeoutStopFailureMode": "terminate", "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", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "infinity" } } TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/main.yml:9 Tuesday 12 April 2022 23:06:28 +0000 (0:00:00.989) 0:00:09.263 ********* TASK [Remove custom zone] ****************************************************** task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:14 Tuesday 12 April 2022 23:06:28 +0000 (0:00:00.040) 0:00:09.304 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--delete-zone=custom" ], "delta": "0:00:00.248107", "end": "2022-04-12 19:06:28.939130", "failed_when_result": false, "rc": 112, "start": "2022-04-12 19:06:28.691023" } STDERR: Error: INVALID_ZONE: custom MSG: non-zero return code TASK [Reset internal zone to defaults] ***************************************** task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:19 Tuesday 12 April 2022 23:06:29 +0000 (0:00:00.766) 0:00:10.070 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=internal" ], "delta": "0:00:00.225601", "end": "2022-04-12 19:06:29.552588", "failed_when_result": false, "rc": 22, "start": "2022-04-12 19:06:29.326987" } STDERR: Error: NO_DEFAULTS: internal MSG: non-zero return code TASK [Reset trusted zone to defaults] ****************************************** task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:24 Tuesday 12 April 2022 23:06:29 +0000 (0:00:00.616) 0:00:10.687 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=trusted" ], "delta": "0:00:00.221731", "end": "2022-04-12 19:06:30.185761", "failed_when_result": false, "rc": 22, "start": "2022-04-12 19:06:29.964030" } STDERR: Error: NO_DEFAULTS: trusted MSG: non-zero return code TASK [Reset dmz zone to defaults] ********************************************** task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:29 Tuesday 12 April 2022 23:06:30 +0000 (0:00:00.631) 0:00:11.318 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=dmz" ], "delta": "0:00:00.231878", "end": "2022-04-12 19:06:30.803711", "failed_when_result": false, "rc": 22, "start": "2022-04-12 19:06:30.571833" } STDERR: Error: NO_DEFAULTS: dmz MSG: non-zero return code TASK [Reset drop zone to defaults] ********************************************* task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:34 Tuesday 12 April 2022 23:06:31 +0000 (0:00:00.621) 0:00:11.940 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=drop" ], "delta": "0:00:00.208792", "end": "2022-04-12 19:06:31.394172", "failed_when_result": false, "rc": 22, "start": "2022-04-12 19:06:31.185380" } STDERR: Error: NO_DEFAULTS: drop MSG: non-zero return code TASK [Reset public zone to defaults] ******************************************* task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:39 Tuesday 12 April 2022 23:06:31 +0000 (0:00:00.583) 0:00:12.523 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=public" ], "delta": "0:00:00.218974", "end": "2022-04-12 19:06:31.987669", "failed_when_result": false, "rc": 22, "start": "2022-04-12 19:06:31.768695" } STDERR: Error: NO_DEFAULTS: public MSG: non-zero return code TASK [Reset default zone to defaults] ****************************************** task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:44 Tuesday 12 April 2022 23:06:32 +0000 (0:00:00.598) 0:00:13.122 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true, "cmd": "zone=$(firewall-cmd --get-default-zone)\nfirewall-cmd --permanent --load-zone-defaults=$zone\n", "delta": "0:00:00.510488", "end": "2022-04-12 19:06:32.882415", "failed_when_result": false, "rc": 22, "start": "2022-04-12 19:06:32.371927" } STDERR: Error: NO_DEFAULTS: public MSG: non-zero return code TASK [Create custom zone] ****************************************************** task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:52 Tuesday 12 April 2022 23:06:33 +0000 (0:00:00.890) 0:00:14.013 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--new-zone=custom" ], "delta": "0:00:00.209950", "end": "2022-04-12 19:06:33.472878", "failed_when_result": false, "rc": 0, "start": "2022-04-12 19:06:33.262928" } STDOUT: success TASK [Reload firewalld] ******************************************************** task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:57 Tuesday 12 April 2022 23:06:33 +0000 (0:00:00.590) 0:00:14.604 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--reload" ], "delta": "0:00:00.351460", "end": "2022-04-12 19:06:34.198994", "failed_when_result": false, "rc": 0, "start": "2022-04-12 19:06:33.847534" } STDOUT: success TASK [Permit traffic in default zone for https service] ************************ task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:64 Tuesday 12 April 2022 23:06:34 +0000 (0:00:00.726) 0:00:15.330 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true, "failed_when_result": false } TASK [Permit traffic in default zone for https service, again] ***************** task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:72 Tuesday 12 April 2022 23:06:35 +0000 (0:00:00.609) 0:00:15.939 ********* ok: [/cache/rhel-x.qcow2] => { "changed": false, "failed_when_result": false } TASK [Permit traffic in default zone on port 8081/tcp] ************************* task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:80 Tuesday 12 April 2022 23:06:35 +0000 (0:00:00.489) 0:00:16.429 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true, "failed_when_result": false } TASK [Permit traffic in default zone on port 8081/tcp, again] ****************** task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:88 Tuesday 12 April 2022 23:06:36 +0000 (0:00:00.499) 0:00:16.928 ********* ok: [/cache/rhel-x.qcow2] => { "changed": false, "failed_when_result": false } TASK [Allow port 161-162/udp in permanent default zone] ************************ task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:96 Tuesday 12 April 2022 23:06:36 +0000 (0:00:00.493) 0:00:17.422 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true, "failed_when_result": false } TASK [Allow port 161-162/udp in permanent default zone, again] ***************** task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:104 Tuesday 12 April 2022 23:06:37 +0000 (0:00:00.480) 0:00:17.903 ********* ok: [/cache/rhel-x.qcow2] => { "changed": false, "failed_when_result": false } TASK [Do not permit traffic in default zone on port 8081/tcp] ****************** task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:112 Tuesday 12 April 2022 23:06:37 +0000 (0:00:00.490) 0:00:18.394 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true, "failed_when_result": false } TASK [Do not permit traffic in default zone on port 8081/tcp, again] *********** task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:120 Tuesday 12 April 2022 23:06:38 +0000 (0:00:00.486) 0:00:18.881 ********* ok: [/cache/rhel-x.qcow2] => { "changed": false, "failed_when_result": false } TASK [Allow service http in permanent dmz zone] ******************************** task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:128 Tuesday 12 April 2022 23:06:38 +0000 (0:00:00.484) 0:00:19.365 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true, "failed_when_result": false } TASK [Allow service http in permanent dmz zone, again] ************************* task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:137 Tuesday 12 April 2022 23:06:39 +0000 (0:00:00.491) 0:00:19.856 ********* ok: [/cache/rhel-x.qcow2] => { "changed": false, "failed_when_result": false } TASK [Allow service ftp with limitation using rich rule in permanent default zone] *** task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:146 Tuesday 12 April 2022 23:06:39 +0000 (0:00:00.494) 0:00:20.351 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true, "failed_when_result": false } TASK [Allow service ftp with limitation using rich rule in permanent default zone, again] *** task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:155 Tuesday 12 April 2022 23:06:40 +0000 (0:00:00.508) 0:00:20.859 ********* ok: [/cache/rhel-x.qcow2] => { "changed": false, "failed_when_result": false } TASK [Allow source 192.0.2.0/24 in internal zone] ****************************** task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:164 Tuesday 12 April 2022 23:06:40 +0000 (0:00:00.492) 0:00:21.351 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true, "failed_when_result": false } TASK [Allow source 192.0.2.0/24 in internal zone, again] *********************** task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:173 Tuesday 12 April 2022 23:06:41 +0000 (0:00:00.497) 0:00:21.849 ********* ok: [/cache/rhel-x.qcow2] => { "changed": false, "failed_when_result": false } TASK [Allow interface eth2 in permanent trusted zone] ************************** task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:182 Tuesday 12 April 2022 23:06:41 +0000 (0:00:00.481) 0:00:22.330 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true, "failed_when_result": false } TASK [Allow interface eth2 in permanent trusted zone, again] ******************* task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:191 Tuesday 12 April 2022 23:06:42 +0000 (0:00:00.476) 0:00:22.807 ********* ok: [/cache/rhel-x.qcow2] => { "changed": false, "failed_when_result": false } TASK [Allow masquerading in permament dmz zone] ******************************** task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:200 Tuesday 12 April 2022 23:06:42 +0000 (0:00:00.510) 0:00:23.318 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true, "failed_when_result": false } TASK [Allow masquerading in permament dmz zone, again] ************************* task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:209 Tuesday 12 April 2022 23:06:43 +0000 (0:00:00.495) 0:00:23.814 ********* ok: [/cache/rhel-x.qcow2] => { "changed": false, "failed_when_result": false } TASK [Ensure permanent custom zone exists (no change)] ************************* task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:218 Tuesday 12 April 2022 23:06:43 +0000 (0:00:00.525) 0:00:24.339 ********* ok: [/cache/rhel-x.qcow2] => { "changed": false, "failed_when_result": false } TASK [Ensure ICMP block inversion in permanent drop zone] ********************** task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:226 Tuesday 12 April 2022 23:06:44 +0000 (0:00:00.498) 0:00:24.838 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true, "failed_when_result": false } TASK [Ensure ICMP block inversion in permanent drop zone, again] *************** task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:235 Tuesday 12 April 2022 23:06:44 +0000 (0:00:00.532) 0:00:25.370 ********* ok: [/cache/rhel-x.qcow2] => { "changed": false, "failed_when_result": false } TASK [Block ICMP echo-request in permanent drop zone] ************************** task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:244 Tuesday 12 April 2022 23:06:45 +0000 (0:00:00.513) 0:00:25.883 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true, "failed_when_result": false } TASK [Block ICMP echo-request in permanent drop zone, again] ******************* task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:253 Tuesday 12 April 2022 23:06:45 +0000 (0:00:00.492) 0:00:26.376 ********* ok: [/cache/rhel-x.qcow2] => { "changed": false, "failed_when_result": false } TASK [Ensure default target in permanent internal zone (no change)] ************ task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:262 Tuesday 12 April 2022 23:06:46 +0000 (0:00:00.531) 0:00:26.907 ********* ok: [/cache/rhel-x.qcow2] => { "changed": false, "failed_when_result": false } TASK [Ensure target ACCEPT in permanent internal zone] ************************* task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:271 Tuesday 12 April 2022 23:06:46 +0000 (0:00:00.502) 0:00:27.410 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true, "failed_when_result": false } TASK [Ensure target ACCEPT in permanent internal zone, again] ****************** task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:280 Tuesday 12 April 2022 23:06:47 +0000 (0:00:00.844) 0:00:28.255 ********* ok: [/cache/rhel-x.qcow2] => { "changed": false, "failed_when_result": false } TASK [Ensure default target in permanent internal zone] ************************ task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:289 Tuesday 12 April 2022 23:06:48 +0000 (0:00:00.522) 0:00:28.777 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true, "failed_when_result": false } TASK [Ensure default target in permanent internal zone, again] ***************** task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:298 Tuesday 12 April 2022 23:06:48 +0000 (0:00:00.663) 0:00:29.441 ********* ok: [/cache/rhel-x.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/tmpznojwlki/tests/tests_ansible.yml:307 Tuesday 12 April 2022 23:06:49 +0000 (0:00:00.504) 0:00:29.946 ********* [DEPRECATION WARNING]: Alias 'immediate' is deprecated. See the module docs for more information. This feature will be removed in a future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. changed: [/cache/rhel-x.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/tmpznojwlki/tests/tests_ansible.yml:319 Tuesday 12 April 2022 23:06:49 +0000 (0:00:00.542) 0:00:30.488 ********* ok: [/cache/rhel-x.qcow2] => { "changed": false, "failed_when_result": false } TASK [Firewalld custom zone] *************************************************** task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:331 Tuesday 12 April 2022 23:06:50 +0000 (0:00:00.515) 0:00:31.004 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true } TASK [assert firewalld custom zone] ******************************************** task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:339 Tuesday 12 April 2022 23:06:50 +0000 (0:00:00.616) 0:00:31.620 ********* ok: [/cache/rhel-x.qcow2] => { "changed": false } MSG: All assertions passed TASK [Add masquerade to custom zone] ******************************************* task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:344 Tuesday 12 April 2022 23:06:50 +0000 (0:00:00.045) 0:00:31.666 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true, "failed_when_result": false } TASK [Add masquerade to custom zone, again] ************************************ task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:354 Tuesday 12 April 2022 23:06:51 +0000 (0:00:00.508) 0:00:32.174 ********* ok: [/cache/rhel-x.qcow2] => { "changed": false, "failed_when_result": false } TASK [set default zone] ******************************************************** task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:364 Tuesday 12 April 2022 23:06:51 +0000 (0:00:00.499) 0:00:32.673 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true, "failed_when_result": false } TASK [set default zone, again] ************************************************* task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:371 Tuesday 12 April 2022 23:06:52 +0000 (0:00:00.548) 0:00:33.222 ********* ok: [/cache/rhel-x.qcow2] => { "changed": false, "failed_when_result": false } TASK [Remove custom zone] ****************************************************** task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:383 Tuesday 12 April 2022 23:06:52 +0000 (0:00:00.501) 0:00:33.723 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--delete-zone=custom" ], "delta": "0:00:00.225135", "end": "2022-04-12 19:06:53.194398", "failed_when_result": false, "rc": 0, "start": "2022-04-12 19:06:52.969263" } STDOUT: success TASK [Reset internal zone to defaults] ***************************************** task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:388 Tuesday 12 April 2022 23:06:53 +0000 (0:00:00.602) 0:00:34.326 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=internal" ], "delta": "0:00:00.224083", "end": "2022-04-12 19:06:53.789015", "failed_when_result": false, "rc": 0, "start": "2022-04-12 19:06:53.564932" } STDOUT: success TASK [Reset trusted zone to defaults] ****************************************** task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:393 Tuesday 12 April 2022 23:06:54 +0000 (0:00:00.595) 0:00:34.921 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=trusted" ], "delta": "0:00:00.212121", "end": "2022-04-12 19:06:54.370927", "failed_when_result": false, "rc": 0, "start": "2022-04-12 19:06:54.158806" } STDOUT: success TASK [Reset dmz zone to defaults] ********************************************** task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:398 Tuesday 12 April 2022 23:06:54 +0000 (0:00:00.580) 0:00:35.501 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=dmz" ], "delta": "0:00:00.217512", "end": "2022-04-12 19:06:54.944510", "failed_when_result": false, "rc": 0, "start": "2022-04-12 19:06:54.726998" } STDOUT: success TASK [Reset drop zone to defaults] ********************************************* task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:403 Tuesday 12 April 2022 23:06:55 +0000 (0:00:00.577) 0:00:36.079 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=drop" ], "delta": "0:00:00.232783", "end": "2022-04-12 19:06:55.559512", "failed_when_result": false, "rc": 0, "start": "2022-04-12 19:06:55.326729" } STDOUT: success TASK [Reset public zone to defaults] ******************************************* task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:408 Tuesday 12 April 2022 23:06:55 +0000 (0:00:00.630) 0:00:36.709 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=public" ], "delta": "0:00:00.222661", "end": "2022-04-12 19:06:56.188458", "failed_when_result": false, "rc": 0, "start": "2022-04-12 19:06:55.965797" } STDOUT: success TASK [Reset default zone to defaults] ****************************************** task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:413 Tuesday 12 April 2022 23:06:56 +0000 (0:00:00.616) 0:00:37.326 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true, "cmd": "firewall-cmd --permanent --load-zone-defaults=public\n", "delta": "0:00:00.236725", "end": "2022-04-12 19:06:56.828321", "failed_when_result": false, "rc": 22, "start": "2022-04-12 19:06:56.591596" } STDERR: Error: NO_DEFAULTS: public MSG: non-zero return code TASK [Reload firewalld] ******************************************************** task path: /tmp/tmpznojwlki/tests/tests_ansible.yml:420 Tuesday 12 April 2022 23:06:57 +0000 (0:00:00.636) 0:00:37.962 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--reload" ], "delta": "0:00:00.346212", "end": "2022-04-12 19:06:57.557865", "failed_when_result": false, "rc": 0, "start": "2022-04-12 19:06:57.211653" } STDOUT: success META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-x.qcow2 : ok=59 changed=37 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Tuesday 12 April 2022 23:06:57 +0000 (0:00:00.730) 0:00:38.693 ********* =============================================================================== linux-system-roles.firewall : Install firewalld ------------------------- 4.60s /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 set up internal repositories -------------------------------------------- 1.33s /cache/rhel-x_setup.yml:6 ----------------------------------------------------- Gathering Facts --------------------------------------------------------- 1.09s /tmp/tmpznojwlki/tests/tests_ansible.yml:1 ------------------------------------ linux-system-roles.firewall : Enable and start firewalld service -------- 0.99s /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 ----- linux-system-roles.firewall : Install python3-firewall ------------------ 0.98s /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Reset default zone to defaults ------------------------------------------ 0.89s /tmp/tmpznojwlki/tests/tests_ansible.yml:44 ----------------------------------- Ensure target ACCEPT in permanent internal zone ------------------------- 0.84s /tmp/tmpznojwlki/tests/tests_ansible.yml:271 ---------------------------------- Remove custom zone ------------------------------------------------------ 0.77s /tmp/tmpznojwlki/tests/tests_ansible.yml:14 ----------------------------------- Reload firewalld -------------------------------------------------------- 0.73s /tmp/tmpznojwlki/tests/tests_ansible.yml:420 ---------------------------------- Reload firewalld -------------------------------------------------------- 0.73s /tmp/tmpznojwlki/tests/tests_ansible.yml:57 ----------------------------------- Ensure default target in permanent internal zone ------------------------ 0.66s /tmp/tmpznojwlki/tests/tests_ansible.yml:289 ---------------------------------- Reset default zone to defaults ------------------------------------------ 0.64s /tmp/tmpznojwlki/tests/tests_ansible.yml:413 ---------------------------------- Reset trusted zone to defaults ------------------------------------------ 0.63s /tmp/tmpznojwlki/tests/tests_ansible.yml:24 ----------------------------------- Reset drop zone to defaults --------------------------------------------- 0.63s /tmp/tmpznojwlki/tests/tests_ansible.yml:403 ---------------------------------- Reset dmz zone to defaults ---------------------------------------------- 0.62s /tmp/tmpznojwlki/tests/tests_ansible.yml:29 ----------------------------------- Reset public zone to defaults ------------------------------------------- 0.62s /tmp/tmpznojwlki/tests/tests_ansible.yml:408 ---------------------------------- Firewalld custom zone --------------------------------------------------- 0.62s /tmp/tmpznojwlki/tests/tests_ansible.yml:331 ---------------------------------- Reset internal zone to defaults ----------------------------------------- 0.62s /tmp/tmpznojwlki/tests/tests_ansible.yml:19 ----------------------------------- Permit traffic in default zone for https service ------------------------ 0.61s /tmp/tmpznojwlki/tests/tests_ansible.yml:64 ----------------------------------- Remove custom zone ------------------------------------------------------ 0.60s /tmp/tmpznojwlki/tests/tests_ansible.yml:383 ---------------------------------- ansible-playbook 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Aug 13 2020, 02:51:10) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] Using /etc/ansible/ansible.cfg as config file [ERROR]: GNU xorriso 1.4.8 : RockRidge filesystem manipulator, libburnia project. xorriso : NOTE : Local character set is now assumed as: 'utf-8' 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: rhel-x_setup.yml ***************************************************** 1 plays in /cache/rhel-x_setup.yml PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /cache/rhel-x_setup.yml:6 Tuesday 12 April 2022 23:07:10 +0000 (0:00:00.021) 0:00:00.021 ********* changed: [/cache/rhel-x.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-x.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-x.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-x.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-x.qcow2 : ok=1 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Tuesday 12 April 2022 23:07:11 +0000 (0:00:01.253) 0:00:01.275 ********* =============================================================================== set up internal repositories -------------------------------------------- 1.25s /cache/rhel-x_setup.yml:6 ----------------------------------------------------- PLAYBOOK: tests_default.yml **************************************************** 1 plays in /tmp/tmpznojwlki/tests/tests_default.yml PLAY [Ensure that the roles runs with default parameters] ********************** META: ran handlers TASK [linux-system-roles.firewall : include_tasks] ***************************** task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/main.yml:1 Tuesday 12 April 2022 23:07:11 +0000 (0:00:00.101) 0:00:01.376 ********* included: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml for /cache/rhel-x.qcow2 TASK [linux-system-roles.firewall : Ensure ansible_facts used by role] ********* task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Tuesday 12 April 2022 23:07:11 +0000 (0:00:00.026) 0:00:01.402 ********* ok: [/cache/rhel-x.qcow2] TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 Tuesday 12 April 2022 23:07:12 +0000 (0:00:00.982) 0:00:02.385 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true, "rc": 0, "results": [ "Installed: python3-nftables-1:0.9.8-12.el9.x86_64", "Installed: libcap-ng-python3-0.8.2-7.el9.x86_64", "Installed: ipset-7.11-6.el9.x86_64", "Installed: python3-firewall-1.0.0-4.el9.noarch", "Installed: ipset-libs-7.11-6.el9.x86_64", "Installed: nftables-1:0.9.8-12.el9.x86_64", "Installed: libnftnl-1.1.9-4.el9.x86_64", "Installed: iptables-nft-1.8.7-28.el9.x86_64", "Installed: firewalld-1.0.0-4.el9.noarch", "Installed: firewalld-filesystem-1.0.0-4.el9.noarch" ] } TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Tuesday 12 April 2022 23:07:17 +0000 (0:00:04.738) 0:00:07.124 ********* skipping: [/cache/rhel-x.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Tuesday 12 April 2022 23:07:17 +0000 (0:00:00.044) 0:00:07.168 ********* ok: [/cache/rhel-x.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Tuesday 12 April 2022 23:07:18 +0000 (0:00:00.971) 0:00:08.139 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "sysinit.target dbus.socket system.slice basic.target polkit.service dbus-broker.service", "AllowIsolate": "no", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "network-pre.target multi-user.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "ip6tables.service ebtables.service ipset.service shutdown.target nftables.service iptables.service", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "\"man:firewalld(1)\"", "DynamicUser": "no", "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 }", "ExecReloadEx": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; flags= ; 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 }", "ExecStartEx": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExitType": "main", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "6844", "LimitNPROCSoft": "6844", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6844", "LimitSIGPENDINGSoft": "6844", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "firewalld.service dbus-org.fedoraproject.FirewallD1.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket system.slice sysinit.target", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "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": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "10951", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "1min 30s", "TimeoutStopFailureMode": "terminate", "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", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "infinity" } } TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/main.yml:9 Tuesday 12 April 2022 23:07:19 +0000 (0:00:00.945) 0:00:09.084 ********* META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-x.qcow2 : ok=6 changed=3 unreachable=0 failed=0 skipped=2 rescued=0 ignored=0 Tuesday 12 April 2022 23:07:19 +0000 (0:00:00.034) 0:00:09.119 ********* =============================================================================== linux-system-roles.firewall : Install firewalld ------------------------- 4.74s /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 set up internal repositories -------------------------------------------- 1.25s /cache/rhel-x_setup.yml:6 ----------------------------------------------------- linux-system-roles.firewall : Ensure ansible_facts used by role --------- 0.98s /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 linux-system-roles.firewall : Install python3-firewall ------------------ 0.97s /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 linux-system-roles.firewall : Enable and start firewalld service -------- 0.95s /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 ----- linux-system-roles.firewall : Install python-firewall ------------------- 0.04s /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 linux-system-roles.firewall : Configure firewall ------------------------ 0.03s /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/main.yml:9 ----- linux-system-roles.firewall : include_tasks ----------------------------- 0.03s /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/main.yml:1 ----- ansible-playbook 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Aug 13 2020, 02:51:10) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] Using /etc/ansible/ansible.cfg as config file [ERROR]: GNU xorriso 1.4.8 : RockRidge filesystem manipulator, libburnia project. xorriso : NOTE : Local character set is now assumed as: 'utf-8' 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: rhel-x_setup.yml ***************************************************** 1 plays in /cache/rhel-x_setup.yml PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /cache/rhel-x_setup.yml:6 Tuesday 12 April 2022 23:07:30 +0000 (0:00:00.023) 0:00:00.023 ********* changed: [/cache/rhel-x.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-x.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-x.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-x.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-x.qcow2 : ok=1 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Tuesday 12 April 2022 23:07:32 +0000 (0:00:01.285) 0:00:01.308 ********* =============================================================================== set up internal repositories -------------------------------------------- 1.29s /cache/rhel-x_setup.yml:6 ----------------------------------------------------- PLAYBOOK: tests_target.yml ***************************************************** 1 plays in /tmp/tmpznojwlki/tests/tests_target.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpznojwlki/tests/tests_target.yml:1 Tuesday 12 April 2022 23:07:32 +0000 (0:00:00.010) 0:00:01.318 ********* ok: [/cache/rhel-x.qcow2] META: ran handlers TASK [Call role to change target settings] ************************************* task path: /tmp/tmpznojwlki/tests/tests_target.yml:3 Tuesday 12 April 2022 23:07:33 +0000 (0:00:00.977) 0:00:02.296 ********* TASK [linux-system-roles.firewall : include_tasks] ***************************** task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/main.yml:1 Tuesday 12 April 2022 23:07:33 +0000 (0:00:00.121) 0:00:02.417 ********* included: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml for /cache/rhel-x.qcow2 TASK [linux-system-roles.firewall : Ensure ansible_facts used by role] ********* task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Tuesday 12 April 2022 23:07:33 +0000 (0:00:00.036) 0:00:02.454 ********* skipping: [/cache/rhel-x.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 Tuesday 12 April 2022 23:07:33 +0000 (0:00:00.041) 0:00:02.496 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true, "rc": 0, "results": [ "Installed: python3-nftables-1:0.9.8-12.el9.x86_64", "Installed: libcap-ng-python3-0.8.2-7.el9.x86_64", "Installed: ipset-7.11-6.el9.x86_64", "Installed: python3-firewall-1.0.0-4.el9.noarch", "Installed: ipset-libs-7.11-6.el9.x86_64", "Installed: nftables-1:0.9.8-12.el9.x86_64", "Installed: libnftnl-1.1.9-4.el9.x86_64", "Installed: iptables-nft-1.8.7-28.el9.x86_64", "Installed: firewalld-1.0.0-4.el9.noarch", "Installed: firewalld-filesystem-1.0.0-4.el9.noarch" ] } TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Tuesday 12 April 2022 23:07:38 +0000 (0:00:04.966) 0:00:07.462 ********* skipping: [/cache/rhel-x.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Tuesday 12 April 2022 23:07:38 +0000 (0:00:00.042) 0:00:07.505 ********* ok: [/cache/rhel-x.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Tuesday 12 April 2022 23:07:39 +0000 (0:00:00.991) 0:00:08.497 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "sysinit.target basic.target dbus.socket polkit.service system.slice dbus-broker.service", "AllowIsolate": "no", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "multi-user.target shutdown.target network-pre.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "ip6tables.service ipset.service iptables.service nftables.service shutdown.target ebtables.service", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "\"man:firewalld(1)\"", "DynamicUser": "no", "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 }", "ExecReloadEx": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; flags= ; 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 }", "ExecStartEx": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExitType": "main", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "6844", "LimitNPROCSoft": "6844", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6844", "LimitSIGPENDINGSoft": "6844", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "firewalld.service dbus-org.fedoraproject.FirewallD1.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket system.slice sysinit.target", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "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": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "10951", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "1min 30s", "TimeoutStopFailureMode": "terminate", "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", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "infinity" } } TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/main.yml:9 Tuesday 12 April 2022 23:07:40 +0000 (0:00:00.993) 0:00:09.490 ********* ok: [/cache/rhel-x.qcow2] => (item={u'state': u'enabled', u'permanent': True, u'set_default_zone': u'public'}) => { "ansible_loop_var": "item", "changed": false, "item": { "permanent": true, "set_default_zone": "public", "state": "enabled" } } changed: [/cache/rhel-x.qcow2] => (item={u'state': u'enabled', u'permanent': True, u'target': u'DROP'}) => { "ansible_loop_var": "item", "changed": true, "item": { "permanent": true, "state": "enabled", "target": "DROP" } } TASK [Get target setting] ****************************************************** task path: /tmp/tmpznojwlki/tests/tests_target.yml:15 Tuesday 12 April 2022 23:07:41 +0000 (0:00:01.308) 0:00:10.799 ********* ok: [/cache/rhel-x.qcow2] => { "changed": false, "cmd": [ "firewall-cmd", "--info-zone=public" ], "delta": "0:00:00.210274", "end": "2022-04-12 19:07:41.038020", "rc": 0, "start": "2022-04-12 19:07:40.827746" } STDOUT: public (active) target: DROP icmp-block-inversion: no interfaces: eth0 sources: services: cockpit dhcpv6-client ssh ports: protocols: forward: yes masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: TASK [Verify target setting] *************************************************** task path: /tmp/tmpznojwlki/tests/tests_target.yml:20 Tuesday 12 April 2022 23:07:42 +0000 (0:00:00.689) 0:00:11.489 ********* ok: [/cache/rhel-x.qcow2] => { "changed": false } MSG: All assertions passed TASK [Call role to reset target settings] ************************************** task path: /tmp/tmpznojwlki/tests/tests_target.yml:26 Tuesday 12 April 2022 23:07:42 +0000 (0:00:00.042) 0:00:11.532 ********* TASK [linux-system-roles.firewall : include_tasks] ***************************** task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/main.yml:1 Tuesday 12 April 2022 23:07:42 +0000 (0:00:00.032) 0:00:11.564 ********* included: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml for /cache/rhel-x.qcow2 TASK [linux-system-roles.firewall : Ensure ansible_facts used by role] ********* task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Tuesday 12 April 2022 23:07:42 +0000 (0:00:00.026) 0:00:11.590 ********* skipping: [/cache/rhel-x.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 Tuesday 12 April 2022 23:07:42 +0000 (0:00:00.042) 0:00:11.633 ********* ok: [/cache/rhel-x.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Tuesday 12 April 2022 23:07:43 +0000 (0:00:00.988) 0:00:12.622 ********* skipping: [/cache/rhel-x.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Tuesday 12 April 2022 23:07:43 +0000 (0:00:00.039) 0:00:12.661 ********* ok: [/cache/rhel-x.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Tuesday 12 April 2022 23:07:44 +0000 (0:00:00.947) 0:00:13.609 ********* ok: [/cache/rhel-x.qcow2] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2022-04-12 19:07:39 EDT", "ActiveEnterTimestampMonotonic": "17931086", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "sysinit.target basic.target dbus.socket polkit.service system.slice dbus-broker.service", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-04-12 19:07:38 EDT", "AssertTimestampMonotonic": "17783053", "Before": "multi-user.target shutdown.target network-pre.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "704874000", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2022-04-12 19:07:38 EDT", "ConditionTimestampMonotonic": "17783050", "ConfigurationDirectoryMode": "0755", "Conflicts": "ip6tables.service ipset.service iptables.service nftables.service shutdown.target ebtables.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "\"man:firewalld(1)\"", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "10438", "ExecMainStartTimestamp": "Tue 2022-04-12 19:07:38 EDT", "ExecMainStartTimestampMonotonic": "17784944", "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 }", "ExecReloadEx": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; ignore_errors=no ; start_time=[Tue 2022-04-12 19:07:38 EDT] ; stop_time=[n/a] ; pid=10438 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; flags= ; start_time=[Tue 2022-04-12 19:07:38 EDT] ; stop_time=[n/a] ; pid=10438 ; code=(null) ; status=0/0 }", "ExitType": "main", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Tue 2022-04-12 19:07:38 EDT", "InactiveExitTimestampMonotonic": "17785252", "InvocationID": "155162c8ce474f4fbd637ad3d4a8bb15", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "6844", "LimitNPROCSoft": "6844", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6844", "LimitSIGPENDINGSoft": "6844", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "10438", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "28651520", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "firewalld.service dbus-org.fedoraproject.FirewallD1.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket system.slice sysinit.target", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Tue 2022-04-12 19:07:39 EDT", "StateChangeTimestampMonotonic": "17931086", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "5", "TasksMax": "10951", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "1min 30s", "TimeoutStopFailureMode": "terminate", "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", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/main.yml:9 Tuesday 12 April 2022 23:07:45 +0000 (0:00:00.513) 0:00:14.122 ********* changed: [/cache/rhel-x.qcow2] => (item={u'state': u'absent', u'permanent': True, u'target': u'DROP'}) => { "ansible_loop_var": "item", "changed": true, "item": { "permanent": true, "state": "absent", "target": "DROP" } } TASK [Get target setting] ****************************************************** task path: /tmp/tmpznojwlki/tests/tests_target.yml:35 Tuesday 12 April 2022 23:07:45 +0000 (0:00:00.660) 0:00:14.783 ********* ok: [/cache/rhel-x.qcow2] => { "changed": false, "cmd": [ "firewall-cmd", "--info-zone=public" ], "delta": "0:00:00.211656", "end": "2022-04-12 19:07:44.913027", "rc": 0, "start": "2022-04-12 19:07:44.701371" } STDOUT: public (active) target: default icmp-block-inversion: no interfaces: eth0 sources: services: cockpit dhcpv6-client ssh ports: protocols: forward: yes masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: TASK [Verify target setting was reset] ***************************************** task path: /tmp/tmpznojwlki/tests/tests_target.yml:40 Tuesday 12 April 2022 23:07:46 +0000 (0:00:00.582) 0:00:15.365 ********* ok: [/cache/rhel-x.qcow2] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-x.qcow2 : ok=16 changed=5 unreachable=0 failed=0 skipped=4 rescued=0 ignored=0 Tuesday 12 April 2022 23:07:46 +0000 (0:00:00.038) 0:00:15.404 ********* =============================================================================== linux-system-roles.firewall : Install firewalld ------------------------- 4.97s /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 linux-system-roles.firewall : Configure firewall ------------------------ 1.31s /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/main.yml:9 ----- set up internal repositories -------------------------------------------- 1.29s /cache/rhel-x_setup.yml:6 ----------------------------------------------------- linux-system-roles.firewall : Enable and start firewalld service -------- 0.99s /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 ----- linux-system-roles.firewall : Install python3-firewall ------------------ 0.99s /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 linux-system-roles.firewall : Install firewalld ------------------------- 0.99s /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 Gathering Facts --------------------------------------------------------- 0.98s /tmp/tmpznojwlki/tests/tests_target.yml:1 ------------------------------------- linux-system-roles.firewall : Install python3-firewall ------------------ 0.95s /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Get target setting ------------------------------------------------------ 0.69s /tmp/tmpznojwlki/tests/tests_target.yml:15 ------------------------------------ linux-system-roles.firewall : Configure firewall ------------------------ 0.66s /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/main.yml:9 ----- Get target setting ------------------------------------------------------ 0.58s /tmp/tmpznojwlki/tests/tests_target.yml:35 ------------------------------------ linux-system-roles.firewall : Enable and start firewalld service -------- 0.51s /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 ----- Call role to change target settings ------------------------------------- 0.12s /tmp/tmpznojwlki/tests/tests_target.yml:3 ------------------------------------- Verify target setting --------------------------------------------------- 0.04s /tmp/tmpznojwlki/tests/tests_target.yml:20 ------------------------------------ linux-system-roles.firewall : Install python-firewall ------------------- 0.04s /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 linux-system-roles.firewall : Ensure ansible_facts used by role --------- 0.04s /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 linux-system-roles.firewall : Ensure ansible_facts used by role --------- 0.04s /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 linux-system-roles.firewall : Install python-firewall ------------------- 0.04s /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Verify target setting was reset ----------------------------------------- 0.04s /tmp/tmpznojwlki/tests/tests_target.yml:40 ------------------------------------ linux-system-roles.firewall : include_tasks ----------------------------- 0.04s /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/main.yml:1 ----- ansible-playbook 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Aug 13 2020, 02:51:10) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] Using /etc/ansible/ansible.cfg as config file [ERROR]: GNU xorriso 1.4.8 : RockRidge filesystem manipulator, libburnia project. xorriso : NOTE : Local character set is now assumed as: 'utf-8' 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: rhel-x_setup.yml ***************************************************** 1 plays in /cache/rhel-x_setup.yml PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /cache/rhel-x_setup.yml:6 Tuesday 12 April 2022 23:07:56 +0000 (0:00:00.023) 0:00:00.023 ********* changed: [/cache/rhel-x.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-x.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-x.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-x.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-x.qcow2 : ok=1 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Tuesday 12 April 2022 23:07:58 +0000 (0:00:01.248) 0:00:01.271 ********* =============================================================================== set up internal repositories -------------------------------------------- 1.25s /cache/rhel-x_setup.yml:6 ----------------------------------------------------- PLAYBOOK: tests_zone.yml ******************************************************* 1 plays in /tmp/tmpznojwlki/tests/tests_zone.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpznojwlki/tests/tests_zone.yml:1 Tuesday 12 April 2022 23:07:58 +0000 (0:00:00.017) 0:00:01.289 ********* ok: [/cache/rhel-x.qcow2] META: ran handlers TASK [include_role : linux-system-roles.firewall] ****************************** task path: /tmp/tmpznojwlki/tests/tests_zone.yml:6 Tuesday 12 April 2022 23:07:59 +0000 (0:00:00.966) 0:00:02.255 ********* TASK [linux-system-roles.firewall : include_tasks] ***************************** task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/main.yml:1 Tuesday 12 April 2022 23:07:59 +0000 (0:00:00.119) 0:00:02.375 ********* included: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml for /cache/rhel-x.qcow2 TASK [linux-system-roles.firewall : Ensure ansible_facts used by role] ********* task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Tuesday 12 April 2022 23:07:59 +0000 (0:00:00.037) 0:00:02.413 ********* skipping: [/cache/rhel-x.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 Tuesday 12 April 2022 23:07:59 +0000 (0:00:00.040) 0:00:02.454 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true, "rc": 0, "results": [ "Installed: python3-nftables-1:0.9.8-12.el9.x86_64", "Installed: libcap-ng-python3-0.8.2-7.el9.x86_64", "Installed: ipset-7.11-6.el9.x86_64", "Installed: python3-firewall-1.0.0-4.el9.noarch", "Installed: ipset-libs-7.11-6.el9.x86_64", "Installed: nftables-1:0.9.8-12.el9.x86_64", "Installed: libnftnl-1.1.9-4.el9.x86_64", "Installed: iptables-nft-1.8.7-28.el9.x86_64", "Installed: firewalld-1.0.0-4.el9.noarch", "Installed: firewalld-filesystem-1.0.0-4.el9.noarch" ] } TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Tuesday 12 April 2022 23:08:04 +0000 (0:00:04.859) 0:00:07.313 ********* skipping: [/cache/rhel-x.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Tuesday 12 April 2022 23:08:04 +0000 (0:00:00.045) 0:00:07.359 ********* ok: [/cache/rhel-x.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Tuesday 12 April 2022 23:08:05 +0000 (0:00:00.958) 0:00:08.318 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "polkit.service dbus.socket basic.target system.slice sysinit.target dbus-broker.service", "AllowIsolate": "no", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "multi-user.target network-pre.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "iptables.service shutdown.target nftables.service ip6tables.service ebtables.service ipset.service", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "\"man:firewalld(1)\"", "DynamicUser": "no", "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 }", "ExecReloadEx": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; flags= ; 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 }", "ExecStartEx": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExitType": "main", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "6844", "LimitNPROCSoft": "6844", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6844", "LimitSIGPENDINGSoft": "6844", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "firewalld.service dbus-org.fedoraproject.FirewallD1.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "sysinit.target dbus.socket system.slice", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "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": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "10951", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "1min 30s", "TimeoutStopFailureMode": "terminate", "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", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "infinity" } } TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/main.yml:9 Tuesday 12 April 2022 23:08:06 +0000 (0:00:00.929) 0:00:09.248 ********* TASK [Verify used firewalld zones] ********************************************* task path: /tmp/tmpznojwlki/tests/tests_zone.yml:14 Tuesday 12 April 2022 23:08:06 +0000 (0:00:00.042) 0:00:09.290 ********* TASK [linux-system-roles.firewall : include_tasks] ***************************** task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/main.yml:1 Tuesday 12 April 2022 23:08:06 +0000 (0:00:00.061) 0:00:09.352 ********* included: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml for /cache/rhel-x.qcow2 TASK [linux-system-roles.firewall : Ensure ansible_facts used by role] ********* task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Tuesday 12 April 2022 23:08:06 +0000 (0:00:00.053) 0:00:09.406 ********* skipping: [/cache/rhel-x.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 Tuesday 12 April 2022 23:08:06 +0000 (0:00:00.046) 0:00:09.452 ********* ok: [/cache/rhel-x.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Tuesday 12 April 2022 23:08:07 +0000 (0:00:00.959) 0:00:10.412 ********* skipping: [/cache/rhel-x.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Tuesday 12 April 2022 23:08:07 +0000 (0:00:00.041) 0:00:10.454 ********* ok: [/cache/rhel-x.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Tuesday 12 April 2022 23:08:08 +0000 (0:00:00.961) 0:00:11.415 ********* ok: [/cache/rhel-x.qcow2] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2022-04-12 19:08:04 EDT", "ActiveEnterTimestampMonotonic": "16466985", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "polkit.service dbus.socket basic.target system.slice sysinit.target dbus-broker.service", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-04-12 19:08:04 EDT", "AssertTimestampMonotonic": "16328371", "Before": "multi-user.target network-pre.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "313850000", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2022-04-12 19:08:04 EDT", "ConditionTimestampMonotonic": "16328369", "ConfigurationDirectoryMode": "0755", "Conflicts": "iptables.service shutdown.target nftables.service ip6tables.service ebtables.service ipset.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "\"man:firewalld(1)\"", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "10399", "ExecMainStartTimestamp": "Tue 2022-04-12 19:08:04 EDT", "ExecMainStartTimestampMonotonic": "16329892", "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 }", "ExecReloadEx": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; ignore_errors=no ; start_time=[Tue 2022-04-12 19:08:04 EDT] ; stop_time=[n/a] ; pid=10399 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; flags= ; start_time=[Tue 2022-04-12 19:08:04 EDT] ; stop_time=[n/a] ; pid=10399 ; code=(null) ; status=0/0 }", "ExitType": "main", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Tue 2022-04-12 19:08:04 EDT", "InactiveExitTimestampMonotonic": "16330225", "InvocationID": "aac7fca069b447f28dc13526e144ab05", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "6844", "LimitNPROCSoft": "6844", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6844", "LimitSIGPENDINGSoft": "6844", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "10399", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "23580672", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "firewalld.service dbus-org.fedoraproject.FirewallD1.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "sysinit.target dbus.socket system.slice", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Tue 2022-04-12 19:08:04 EDT", "StateChangeTimestampMonotonic": "16466985", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "2", "TasksMax": "10951", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "1min 30s", "TimeoutStopFailureMode": "terminate", "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", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/main.yml:9 Tuesday 12 April 2022 23:08:08 +0000 (0:00:00.521) 0:00:11.937 ********* ok: [/cache/rhel-x.qcow2] => (item={u'state': u'enabled', u'zone': u'internal'}) => { "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "internal" } } ok: [/cache/rhel-x.qcow2] => (item={u'state': u'enabled', u'zone': u'external'}) => { "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "external" } } ok: [/cache/rhel-x.qcow2] => (item={u'state': u'enabled', u'zone': u'trusted'}) => { "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "trusted" } } TASK [Fail on missing zones] *************************************************** task path: /tmp/tmpznojwlki/tests/tests_zone.yml:26 Tuesday 12 April 2022 23:08:10 +0000 (0:00:01.657) 0:00:13.595 ********* skipping: [/cache/rhel-x.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Setup firewalld] ********************************************************* task path: /tmp/tmpznojwlki/tests/tests_zone.yml:32 Tuesday 12 April 2022 23:08:10 +0000 (0:00:00.043) 0:00:13.639 ********* TASK [linux-system-roles.firewall : include_tasks] ***************************** task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/main.yml:1 Tuesday 12 April 2022 23:08:10 +0000 (0:00:00.060) 0:00:13.699 ********* included: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml for /cache/rhel-x.qcow2 TASK [linux-system-roles.firewall : Ensure ansible_facts used by role] ********* task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Tuesday 12 April 2022 23:08:10 +0000 (0:00:00.051) 0:00:13.751 ********* skipping: [/cache/rhel-x.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 Tuesday 12 April 2022 23:08:10 +0000 (0:00:00.045) 0:00:13.797 ********* ok: [/cache/rhel-x.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Tuesday 12 April 2022 23:08:11 +0000 (0:00:00.988) 0:00:14.785 ********* skipping: [/cache/rhel-x.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Tuesday 12 April 2022 23:08:11 +0000 (0:00:00.041) 0:00:14.827 ********* ok: [/cache/rhel-x.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Tuesday 12 April 2022 23:08:12 +0000 (0:00:00.942) 0:00:15.769 ********* ok: [/cache/rhel-x.qcow2] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2022-04-12 19:08:04 EDT", "ActiveEnterTimestampMonotonic": "16466985", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "polkit.service dbus.socket basic.target system.slice sysinit.target dbus-broker.service", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-04-12 19:08:04 EDT", "AssertTimestampMonotonic": "16328371", "Before": "multi-user.target network-pre.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "545941000", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2022-04-12 19:08:04 EDT", "ConditionTimestampMonotonic": "16328369", "ConfigurationDirectoryMode": "0755", "Conflicts": "iptables.service shutdown.target nftables.service ip6tables.service ebtables.service ipset.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "\"man:firewalld(1)\"", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "10399", "ExecMainStartTimestamp": "Tue 2022-04-12 19:08:04 EDT", "ExecMainStartTimestampMonotonic": "16329892", "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 }", "ExecReloadEx": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; ignore_errors=no ; start_time=[Tue 2022-04-12 19:08:04 EDT] ; stop_time=[n/a] ; pid=10399 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; flags= ; start_time=[Tue 2022-04-12 19:08:04 EDT] ; stop_time=[n/a] ; pid=10399 ; code=(null) ; status=0/0 }", "ExitType": "main", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Tue 2022-04-12 19:08:04 EDT", "InactiveExitTimestampMonotonic": "16330225", "InvocationID": "aac7fca069b447f28dc13526e144ab05", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "6844", "LimitNPROCSoft": "6844", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6844", "LimitSIGPENDINGSoft": "6844", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "10399", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "24993792", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "firewalld.service dbus-org.fedoraproject.FirewallD1.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "sysinit.target dbus.socket system.slice", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Tue 2022-04-12 19:08:04 EDT", "StateChangeTimestampMonotonic": "16466985", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "2", "TasksMax": "10951", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "1min 30s", "TimeoutStopFailureMode": "terminate", "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", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/main.yml:9 Tuesday 12 April 2022 23:08:13 +0000 (0:00:00.524) 0:00:16.294 ********* changed: [/cache/rhel-x.qcow2] => (item={u'state': u'enabled', u'zone': u'internal', u'port': [u'443/tcp', u'443/udp'], u'service': [u'tftp', u'ftp'], u'forward_port': [u'447/tcp;;1.2.3.4', u'448/tcp;;1.2.3.5']}) => { "ansible_loop_var": "item", "changed": true, "item": { "forward_port": [ "447/tcp;;1.2.3.4", "448/tcp;;1.2.3.5" ], "port": [ "443/tcp", "443/udp" ], "service": [ "tftp", "ftp" ], "state": "enabled", "zone": "internal" } } ok: [/cache/rhel-x.qcow2] => (item={u'state': u'enabled', u'zone': u'internal', u'port': [u'443/tcp', u'443/udp'], u'service': [u'tftp', u'ftp'], u'forward_port': [u'447/tcp;;1.2.3.4', u'448/tcp;;1.2.3.5']}) => { "ansible_loop_var": "item", "changed": false, "item": { "forward_port": [ "447/tcp;;1.2.3.4", "448/tcp;;1.2.3.5" ], "port": [ "443/tcp", "443/udp" ], "service": [ "tftp", "ftp" ], "state": "enabled", "zone": "internal" } } changed: [/cache/rhel-x.qcow2] => (item={u'state': u'present', u'permanent': True, u'zone': u'customzone'}) => { "ansible_loop_var": "item", "changed": true, "item": { "permanent": true, "state": "present", "zone": "customzone" } } changed: [/cache/rhel-x.qcow2] => (item={u'masquerade': True, u'state': u'enabled', u'permanent': True, u'zone': u'customzone'}) => { "ansible_loop_var": "item", "changed": true, "item": { "masquerade": true, "permanent": true, "state": "enabled", "zone": "customzone" } } changed: [/cache/rhel-x.qcow2] => (item={u'state': u'enabled', u'set_default_zone': u'dmz'}) => { "ansible_loop_var": "item", "changed": true, "item": { "set_default_zone": "dmz", "state": "enabled" } } changed: [/cache/rhel-x.qcow2] => (item={u'state': u'enabled', u'service': u'http'}) => { "ansible_loop_var": "item", "changed": true, "item": { "service": "http", "state": "enabled" } } TASK [Fail if no changes are done] ********************************************* task path: /tmp/tmpznojwlki/tests/tests_zone.yml:62 Tuesday 12 April 2022 23:08:16 +0000 (0:00:03.033) 0:00:19.328 ********* skipping: [/cache/rhel-x.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Setup firewalld again] *************************************************** task path: /tmp/tmpznojwlki/tests/tests_zone.yml:68 Tuesday 12 April 2022 23:08:16 +0000 (0:00:00.044) 0:00:19.372 ********* TASK [linux-system-roles.firewall : include_tasks] ***************************** task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/main.yml:1 Tuesday 12 April 2022 23:08:16 +0000 (0:00:00.057) 0:00:19.430 ********* included: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml for /cache/rhel-x.qcow2 TASK [linux-system-roles.firewall : Ensure ansible_facts used by role] ********* task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Tuesday 12 April 2022 23:08:16 +0000 (0:00:00.050) 0:00:19.480 ********* skipping: [/cache/rhel-x.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 Tuesday 12 April 2022 23:08:16 +0000 (0:00:00.044) 0:00:19.524 ********* ok: [/cache/rhel-x.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Tuesday 12 April 2022 23:08:17 +0000 (0:00:00.955) 0:00:20.480 ********* skipping: [/cache/rhel-x.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Tuesday 12 April 2022 23:08:17 +0000 (0:00:00.044) 0:00:20.524 ********* ok: [/cache/rhel-x.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Tuesday 12 April 2022 23:08:18 +0000 (0:00:00.941) 0:00:21.466 ********* ok: [/cache/rhel-x.qcow2] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2022-04-12 19:08:04 EDT", "ActiveEnterTimestampMonotonic": "16466985", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "polkit.service dbus.socket basic.target system.slice sysinit.target dbus-broker.service", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-04-12 19:08:04 EDT", "AssertTimestampMonotonic": "16328371", "Before": "multi-user.target network-pre.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "1156265000", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Tue 2022-04-12 19:08:04 EDT", "ConditionTimestampMonotonic": "16328369", "ConfigurationDirectoryMode": "0755", "Conflicts": "iptables.service shutdown.target nftables.service ip6tables.service ebtables.service ipset.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "\"man:firewalld(1)\"", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "10399", "ExecMainStartTimestamp": "Tue 2022-04-12 19:08:04 EDT", "ExecMainStartTimestampMonotonic": "16329892", "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 }", "ExecReloadEx": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; ignore_errors=no ; start_time=[Tue 2022-04-12 19:08:04 EDT] ; stop_time=[n/a] ; pid=10399 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; flags= ; start_time=[Tue 2022-04-12 19:08:04 EDT] ; stop_time=[n/a] ; pid=10399 ; code=(null) ; status=0/0 }", "ExitType": "main", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Tue 2022-04-12 19:08:04 EDT", "InactiveExitTimestampMonotonic": "16330225", "InvocationID": "aac7fca069b447f28dc13526e144ab05", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "6844", "LimitNPROCSoft": "6844", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "6844", "LimitSIGPENDINGSoft": "6844", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "10399", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "26755072", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "firewalld.service dbus-org.fedoraproject.FirewallD1.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "sysinit.target dbus.socket system.slice", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Tue 2022-04-12 19:08:04 EDT", "StateChangeTimestampMonotonic": "16466985", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "5", "TasksMax": "10951", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "1min 30s", "TimeoutStopFailureMode": "terminate", "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", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/main.yml:9 Tuesday 12 April 2022 23:08:18 +0000 (0:00:00.501) 0:00:21.968 ********* ok: [/cache/rhel-x.qcow2] => (item={u'state': u'enabled', u'zone': u'internal', u'port': [u'443/tcp', u'443/udp'], u'service': [u'tftp', u'ftp'], u'forward_port': [u'447/tcp;;1.2.3.4', u'448/tcp;;1.2.3.5']}) => { "ansible_loop_var": "item", "changed": false, "item": { "forward_port": [ "447/tcp;;1.2.3.4", "448/tcp;;1.2.3.5" ], "port": [ "443/tcp", "443/udp" ], "service": [ "tftp", "ftp" ], "state": "enabled", "zone": "internal" } } ok: [/cache/rhel-x.qcow2] => (item={u'state': u'enabled', u'zone': u'internal', u'port': [u'443/tcp', u'443/udp'], u'service': [u'tftp', u'ftp'], u'forward_port': [u'447/tcp;;1.2.3.4', u'448/tcp;;1.2.3.5']}) => { "ansible_loop_var": "item", "changed": false, "item": { "forward_port": [ "447/tcp;;1.2.3.4", "448/tcp;;1.2.3.5" ], "port": [ "443/tcp", "443/udp" ], "service": [ "tftp", "ftp" ], "state": "enabled", "zone": "internal" } } ok: [/cache/rhel-x.qcow2] => (item={u'state': u'present', u'permanent': True, u'zone': u'customzone'}) => { "ansible_loop_var": "item", "changed": false, "item": { "permanent": true, "state": "present", "zone": "customzone" } } ok: [/cache/rhel-x.qcow2] => (item={u'masquerade': True, u'state': u'enabled', u'permanent': True, u'zone': u'customzone'}) => { "ansible_loop_var": "item", "changed": false, "item": { "masquerade": true, "permanent": true, "state": "enabled", "zone": "customzone" } } ok: [/cache/rhel-x.qcow2] => (item={u'state': u'enabled', u'set_default_zone': u'dmz'}) => { "ansible_loop_var": "item", "changed": false, "item": { "set_default_zone": "dmz", "state": "enabled" } } ok: [/cache/rhel-x.qcow2] => (item={u'state': u'enabled', u'service': u'http'}) => { "ansible_loop_var": "item", "changed": false, "item": { "service": "http", "state": "enabled" } } TASK [Fail on newly changes] *************************************************** task path: /tmp/tmpznojwlki/tests/tests_zone.yml:98 Tuesday 12 April 2022 23:08:21 +0000 (0:00:02.923) 0:00:24.891 ********* skipping: [/cache/rhel-x.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify firewalld zone internal services] ********************************* task path: /tmp/tmpznojwlki/tests/tests_zone.yml:104 Tuesday 12 April 2022 23:08:21 +0000 (0:00:00.042) 0:00:24.934 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-services" ], "delta": "0:00:00.212342", "end": "2022-04-12 19:08:20.956969", "failed_when_result": false, "rc": 0, "start": "2022-04-12 19:08:20.744627" } STDOUT: cockpit dhcpv6-client ftp mdns samba-client ssh tftp TASK [Verify firewalld zone internal ports] ************************************ task path: /tmp/tmpznojwlki/tests/tests_zone.yml:111 Tuesday 12 April 2022 23:08:22 +0000 (0:00:00.709) 0:00:25.643 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-ports" ], "delta": "0:00:00.243683", "end": "2022-04-12 19:08:21.582559", "failed_when_result": false, "rc": 0, "start": "2022-04-12 19:08:21.338876" } STDOUT: 443/tcp 443/udp TASK [Verify firewalld zone internal forward ports] **************************** task path: /tmp/tmpznojwlki/tests/tests_zone.yml:118 Tuesday 12 April 2022 23:08:23 +0000 (0:00:00.627) 0:00:26.271 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-forward-ports" ], "delta": "0:00:00.211044", "end": "2022-04-12 19:08:22.181279", "failed_when_result": false, "rc": 0, "start": "2022-04-12 19:08:21.970235" } STDOUT: port=447:proto=tcp:toport=:toaddr=1.2.3.4 port=448:proto=tcp:toport=:toaddr=1.2.3.5 TASK [Verify custom zone has masquerade added to it] *************************** task path: /tmp/tmpznojwlki/tests/tests_zone.yml:127 Tuesday 12 April 2022 23:08:23 +0000 (0:00:00.595) 0:00:26.866 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=customzone", "--query-masquerade" ], "delta": "0:00:00.212676", "end": "2022-04-12 19:08:22.763749", "failed_when_result": false, "rc": 0, "start": "2022-04-12 19:08:22.551073" } STDOUT: yes TASK [Verify custom zone has masquerade added to it] *************************** task path: /tmp/tmpznojwlki/tests/tests_zone.yml:133 Tuesday 12 April 2022 23:08:24 +0000 (0:00:00.581) 0:00:27.448 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--get-default-zone" ], "delta": "0:00:00.214796", "end": "2022-04-12 19:08:23.334083", "failed_when_result": false, "rc": 0, "start": "2022-04-12 19:08:23.119287" } STDOUT: dmz TASK [Verify that service http has been added to the default zone dmz] ********* task path: /tmp/tmpznojwlki/tests/tests_zone.yml:139 Tuesday 12 April 2022 23:08:24 +0000 (0:00:00.572) 0:00:28.020 ********* changed: [/cache/rhel-x.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--zone=dmz", "--query-service=http" ], "delta": "0:00:00.206172", "end": "2022-04-12 19:08:23.920928", "failed_when_result": false, "rc": 0, "start": "2022-04-12 19:08:23.714756" } STDOUT: yes TASK [Reset to zone defaults] ************************************************** task path: /tmp/tmpznojwlki/tests/tests_zone.yml:148 Tuesday 12 April 2022 23:08:25 +0000 (0:00:00.586) 0:00:28.607 ********* changed: [/cache/rhel-x.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:00.971257", "end": "2022-04-12 19:08:25.274964", "rc": 0, "start": "2022-04-12 19:08:24.303707" } STDOUT: success success STDERR: Error: NO_DEFAULTS: external Error: NO_DEFAULTS: trusted META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-x.qcow2 : ok=28 changed=11 unreachable=0 failed=0 skipped=12 rescued=0 ignored=0 Tuesday 12 April 2022 23:08:26 +0000 (0:00:01.345) 0:00:29.953 ********* =============================================================================== linux-system-roles.firewall : Install firewalld ------------------------- 4.86s /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 linux-system-roles.firewall : Configure firewall ------------------------ 2.92s /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/main.yml:9 ----- linux-system-roles.firewall : Configure firewall ------------------------ 1.66s /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/main.yml:9 ----- Reset to zone defaults -------------------------------------------------- 1.35s /tmp/tmpznojwlki/tests/tests_zone.yml:148 ------------------------------------- set up internal repositories -------------------------------------------- 1.25s /cache/rhel-x_setup.yml:6 ----------------------------------------------------- linux-system-roles.firewall : Install firewalld ------------------------- 0.99s /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 Gathering Facts --------------------------------------------------------- 0.97s /tmp/tmpznojwlki/tests/tests_zone.yml:1 --------------------------------------- linux-system-roles.firewall : Install python3-firewall ------------------ 0.96s /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 linux-system-roles.firewall : Install firewalld ------------------------- 0.96s /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 linux-system-roles.firewall : Install python3-firewall ------------------ 0.96s /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 linux-system-roles.firewall : Install firewalld ------------------------- 0.96s /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 linux-system-roles.firewall : Install python3-firewall ------------------ 0.94s /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 linux-system-roles.firewall : Install python3-firewall ------------------ 0.94s /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 linux-system-roles.firewall : Enable and start firewalld service -------- 0.93s /tmp/tmpznojwlki/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 ----- Verify firewalld zone internal services --------------------------------- 0.71s /tmp/tmpznojwlki/tests/tests_zone.yml:104 ------------------------------------- Verify firewalld zone internal ports ------------------------------------ 0.63s /tmp/tmpznojwlki/tests/tests_zone.yml:111 ------------------------------------- Verify firewalld zone internal forward ports ---------------------------- 0.60s /tmp/tmpznojwlki/tests/tests_zone.yml:118 ------------------------------------- Verify that service http has been added to the default zone dmz --------- 0.59s /tmp/tmpznojwlki/tests/tests_zone.yml:139 ------------------------------------- Verify custom zone has masquerade added to it --------------------------- 0.58s /tmp/tmpznojwlki/tests/tests_zone.yml:127 ------------------------------------- Verify custom zone has masquerade added to it --------------------------- 0.57s /tmp/tmpznojwlki/tests/tests_zone.yml:133 -------------------------------------