+ cd /tmp/tmpswr4cpvs/tests; TEST_SUBJECTS=/cache/fedora-34.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_firewall-70-e3071ca-fedora-34-defuazh6/artifacts ANSIBLE_COLLECTIONS_PATHS=/tmp/tmpc4lcl3ua:~/.ansible/collections:/usr/share/ansible/collections ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 --skip-tags=tests::nvme /tmp/tmpswr4cpvs/_setup.yml /tmp/tmpswr4cpvs/tests/tests_ansible.yml ansible-playbook [core 2.12.2.post0] config file = None configured module search path = ['/home/runner/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.8/site-packages/ansible ansible collection location = /tmp/tmpc4lcl3ua:/home/runner/.ansible/collections:/usr/share/ansible/collections executable location = /usr/local/bin/ansible-playbook python version = 3.8.12 (default, Sep 21 2021, 00:10:52) [GCC 8.5.0 20210514 (Red Hat 8.5.0-3)] jinja version = 2.10.3 libyaml = True No config file found; using defaults Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmpswr4cpvs/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpswr4cpvs/_setup.yml:5 Tuesday 22 February 2022 19:58:51 +0000 (0:00:00.013) 0:00:00.013 ****** ok: [/cache/fedora-34.qcow2] => { "groups": { "all": [ "/cache/fedora-34.qcow2" ], "localhost": [ "/cache/fedora-34.qcow2" ], "subjects": [ "/cache/fedora-34.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpswr4cpvs/_setup.yml:6 Tuesday 22 February 2022 19:58:51 +0000 (0:00:00.018) 0:00:00.031 ****** skipping: [/cache/fedora-34.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-34.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 Tuesday 22 February 2022 19:58:51 +0000 (0:00:00.018) 0:00:00.049 ****** =============================================================================== debug ------------------------------------------------------------------- 0.02s /tmp/tmpswr4cpvs/_setup.yml:5 ------------------------------------------------- fail -------------------------------------------------------------------- 0.02s /tmp/tmpswr4cpvs/_setup.yml:6 ------------------------------------------------- [DEPRECATION WARNING]: "include" is deprecated, use include_tasks/import_tasks instead. This feature will be removed in version 2.16. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. statically imported: /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml PLAYBOOK: tests_ansible.yml **************************************************** 1 plays in /tmp/tmpswr4cpvs/tests/tests_ansible.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:1 Tuesday 22 February 2022 19:58:51 +0000 (0:00:00.036) 0:00:00.086 ****** ok: [/cache/fedora-34.qcow2] META: ran handlers TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Tuesday 22 February 2022 19:58:52 +0000 (0:00:01.095) 0:00:01.181 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "rc": 0, "results": [ "Installed: python3-decorator-4.4.2-4.fc34.noarch", "Installed: iptables-nft-1.8.7-8.fc34.x86_64", "Installed: libnftnl-1.1.9-2.fc34.x86_64", "Installed: nftables-1:0.9.8-3.fc34.x86_64", "Installed: gobject-introspection-1.68.0-4.fc34.x86_64", "Installed: ipset-7.11-1.fc34.x86_64", "Installed: python3-nftables-1:0.9.8-3.fc34.x86_64", "Installed: python3-gobject-base-3.40.1-1.fc34.x86_64", "Installed: python3-firewall-0.9.4-1.fc34.noarch", "Installed: ipset-libs-7.11-1.fc34.x86_64", "Installed: firewalld-0.9.4-1.fc34.noarch", "Installed: firewalld-filesystem-0.9.4-1.fc34.noarch", "Installed: python3-slip-0.6.4-22.fc34.noarch", "Installed: python3-slip-dbus-0.6.4-22.fc34.noarch" ] } TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:7 Tuesday 22 February 2022 19:59:49 +0000 (0:00:56.714) 0:00:57.896 ****** skipping: [/cache/fedora-34.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Tuesday 22 February 2022 19:59:49 +0000 (0:00:00.024) 0:00:57.920 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Tuesday 22 February 2022 19:59:51 +0000 (0:00:02.389) 0:01:00.310 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "sysinit.target dbus-broker.service polkit.service dbus.socket system.slice basic.target", "AllowIsolate": "no", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target network-pre.target multi-user.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 nftables.service iptables.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 }", "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": "0", "IOSchedulingPriority": "0", "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": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7726", "LimitNPROCSoft": "7726", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7726", "LimitSIGPENDINGSoft": "7726", "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", "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", "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", "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": "2317", "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/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Tuesday 22 February 2022 19:59:52 +0000 (0:00:01.095) 0:01:01.405 ****** META: role_complete for /cache/fedora-34.qcow2 TASK [Remove custom zone] ****************************************************** task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:14 Tuesday 22 February 2022 19:59:52 +0000 (0:00:00.022) 0:01:01.428 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--delete-zone=custom" ], "delta": "0:00:00.265524", "end": "2022-02-22 19:59:53.071172", "failed_when_result": false, "rc": 112, "start": "2022-02-22 19:59:52.805648" } STDERR: Error: INVALID_ZONE: custom MSG: non-zero return code TASK [Reset internal zone to defaults] ***************************************** task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:19 Tuesday 22 February 2022 19:59:53 +0000 (0:00:00.793) 0:01:02.221 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=internal" ], "delta": "0:00:00.252718", "end": "2022-02-22 19:59:53.716208", "failed_when_result": false, "rc": 22, "start": "2022-02-22 19:59:53.463490" } STDERR: Error: NO_DEFAULTS: internal MSG: non-zero return code TASK [Reset trusted zone to defaults] ****************************************** task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:24 Tuesday 22 February 2022 19:59:54 +0000 (0:00:00.639) 0:01:02.861 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=trusted" ], "delta": "0:00:00.249974", "end": "2022-02-22 19:59:54.341549", "failed_when_result": false, "rc": 22, "start": "2022-02-22 19:59:54.091575" } STDERR: Error: NO_DEFAULTS: trusted MSG: non-zero return code TASK [Reset dmz zone to defaults] ********************************************** task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:29 Tuesday 22 February 2022 19:59:55 +0000 (0:00:00.627) 0:01:03.488 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=dmz" ], "delta": "0:00:00.251655", "end": "2022-02-22 19:59:54.974846", "failed_when_result": false, "rc": 22, "start": "2022-02-22 19:59:54.723191" } STDERR: Error: NO_DEFAULTS: dmz MSG: non-zero return code TASK [Reset drop zone to defaults] ********************************************* task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:34 Tuesday 22 February 2022 19:59:55 +0000 (0:00:00.630) 0:01:04.119 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=drop" ], "delta": "0:00:00.252539", "end": "2022-02-22 19:59:55.598706", "failed_when_result": false, "rc": 22, "start": "2022-02-22 19:59:55.346167" } STDERR: Error: NO_DEFAULTS: drop MSG: non-zero return code TASK [Reset public zone to defaults] ******************************************* task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:39 Tuesday 22 February 2022 19:59:56 +0000 (0:00:00.621) 0:01:04.740 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=public" ], "delta": "0:00:00.268554", "end": "2022-02-22 19:59:56.258130", "failed_when_result": false, "rc": 22, "start": "2022-02-22 19:59:55.989576" } STDERR: Error: NO_DEFAULTS: public MSG: non-zero return code TASK [Reset default zone to defaults] ****************************************** task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:44 Tuesday 22 February 2022 19:59:56 +0000 (0:00:00.662) 0:01:05.403 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": "zone=$(firewall-cmd --get-default-zone)\nfirewall-cmd --permanent --load-zone-defaults=$zone\n", "delta": "0:00:00.512040", "end": "2022-02-22 19:59:57.144998", "failed_when_result": false, "rc": 22, "start": "2022-02-22 19:59:56.632958" } STDERR: Error: NO_DEFAULTS: public MSG: non-zero return code TASK [Create custom zone] ****************************************************** task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:52 Tuesday 22 February 2022 19:59:57 +0000 (0:00:00.887) 0:01:06.290 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--new-zone=custom" ], "delta": "0:00:00.271655", "end": "2022-02-22 19:59:57.789626", "failed_when_result": false, "rc": 0, "start": "2022-02-22 19:59:57.517971" } STDOUT: success TASK [Reload firewalld] ******************************************************** task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:57 Tuesday 22 February 2022 19:59:58 +0000 (0:00:00.646) 0:01:06.936 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--reload" ], "delta": "0:00:00.388590", "end": "2022-02-22 19:59:58.560034", "failed_when_result": false, "rc": 0, "start": "2022-02-22 19:59:58.171444" } STDOUT: success TASK [Permit traffic in default zone for https service] ************************ task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:64 Tuesday 22 February 2022 19:59:59 +0000 (0:00:00.771) 0:01:07.707 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [Permit traffic in default zone for https service, again] ***************** task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:72 Tuesday 22 February 2022 19:59:59 +0000 (0:00:00.675) 0:01:08.382 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Permit traffic in default zone on port 8081/tcp] ************************* task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:80 Tuesday 22 February 2022 20:00:00 +0000 (0:00:00.528) 0:01:08.911 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [Permit traffic in default zone on port 8081/tcp, again] ****************** task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:88 Tuesday 22 February 2022 20:00:01 +0000 (0:00:00.563) 0:01:09.474 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Allow port 161-162/udp in permanent default zone] ************************ task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:96 Tuesday 22 February 2022 20:00:01 +0000 (0:00:00.577) 0:01:10.052 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [Allow port 161-162/udp in permanent default zone, again] ***************** task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:104 Tuesday 22 February 2022 20:00:02 +0000 (0:00:00.543) 0:01:10.595 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Do not permit traffic in default zone on port 8081/tcp] ****************** task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:112 Tuesday 22 February 2022 20:00:02 +0000 (0:00:00.533) 0:01:11.129 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [Do not permit traffic in default zone on port 8081/tcp, again] *********** task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:120 Tuesday 22 February 2022 20:00:03 +0000 (0:00:00.548) 0:01:11.677 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Allow service http in permanent dmz zone] ******************************** task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:128 Tuesday 22 February 2022 20:00:03 +0000 (0:00:00.535) 0:01:12.213 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [Allow service http in permanent dmz zone, again] ************************* task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:137 Tuesday 22 February 2022 20:00:04 +0000 (0:00:00.548) 0:01:12.761 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Allow service ftp with limitation using rich rule in permanent default zone] *** task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:146 Tuesday 22 February 2022 20:00:04 +0000 (0:00:00.524) 0:01:13.285 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [Allow service ftp with limitation using rich rule in permanent default zone, again] *** task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:155 Tuesday 22 February 2022 20:00:05 +0000 (0:00:00.547) 0:01:13.833 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Allow source 192.0.2.0/24 in internal zone] ****************************** task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:164 Tuesday 22 February 2022 20:00:05 +0000 (0:00:00.536) 0:01:14.369 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [Allow source 192.0.2.0/24 in internal zone, again] *********************** task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:173 Tuesday 22 February 2022 20:00:06 +0000 (0:00:00.565) 0:01:14.934 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Allow interface eth2 in permanent trusted zone] ************************** task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:182 Tuesday 22 February 2022 20:00:07 +0000 (0:00:00.562) 0:01:15.497 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [Allow interface eth2 in permanent trusted zone, again] ******************* task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:191 Tuesday 22 February 2022 20:00:07 +0000 (0:00:00.551) 0:01:16.048 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Allow masquerading in permament dmz zone] ******************************** task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:200 Tuesday 22 February 2022 20:00:08 +0000 (0:00:00.613) 0:01:16.662 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [Allow masquerading in permament dmz zone, again] ************************* task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:209 Tuesday 22 February 2022 20:00:08 +0000 (0:00:00.534) 0:01:17.196 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Ensure permanent custom zone exists (no change)] ************************* task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:218 Tuesday 22 February 2022 20:00:09 +0000 (0:00:00.537) 0:01:17.734 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Ensure ICMP block inversion in permanent drop zone] ********************** task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:226 Tuesday 22 February 2022 20:00:09 +0000 (0:00:00.525) 0:01:18.260 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [Ensure ICMP block inversion in permanent drop zone, again] *************** task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:235 Tuesday 22 February 2022 20:00:10 +0000 (0:00:00.540) 0:01:18.801 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Block ICMP echo-request in permanent drop zone] ************************** task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:244 Tuesday 22 February 2022 20:00:10 +0000 (0:00:00.552) 0:01:19.353 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [Block ICMP echo-request in permanent drop zone, again] ******************* task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:253 Tuesday 22 February 2022 20:00:11 +0000 (0:00:00.541) 0:01:19.895 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Ensure default target in permanent internal zone (no change)] ************ task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:262 Tuesday 22 February 2022 20:00:11 +0000 (0:00:00.551) 0:01:20.446 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Ensure target ACCEPT in permanent internal zone] ************************* task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:271 Tuesday 22 February 2022 20:00:12 +0000 (0:00:00.531) 0:01:20.977 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [Ensure target ACCEPT in permanent internal zone, again] ****************** task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:280 Tuesday 22 February 2022 20:00:13 +0000 (0:00:00.869) 0:01:21.847 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Ensure default target in permanent internal zone] ************************ task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:289 Tuesday 22 February 2022 20:00:13 +0000 (0:00:00.529) 0:01:22.377 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [Ensure default target in permanent internal zone, again] ***************** task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:298 Tuesday 22 February 2022 20:00:14 +0000 (0:00:00.695) 0:01:23.072 ****** ok: [/cache/fedora-34.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/tmpswr4cpvs/tests/tests_ansible.yml:307 Tuesday 22 February 2022 20:00:15 +0000 (0:00:00.536) 0:01:23.609 ****** [DEPRECATION WARNING]: Alias 'immediate' is deprecated. See the module docs for more information. This feature will be removed from ansible.posix in a release after 2021-09-23. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. changed: [/cache/fedora-34.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/tmpswr4cpvs/tests/tests_ansible.yml:319 Tuesday 22 February 2022 20:00:15 +0000 (0:00:00.562) 0:01:24.171 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Firewalld custom zone] *************************************************** task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:331 Tuesday 22 February 2022 20:00:16 +0000 (0:00:00.528) 0:01:24.700 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true } TASK [assert firewalld custom zone] ******************************************** task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:339 Tuesday 22 February 2022 20:00:16 +0000 (0:00:00.730) 0:01:25.431 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false } MSG: All assertions passed TASK [Add masquerade to custom zone] ******************************************* task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:344 Tuesday 22 February 2022 20:00:16 +0000 (0:00:00.026) 0:01:25.457 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [Add masquerade to custom zone, again] ************************************ task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:354 Tuesday 22 February 2022 20:00:17 +0000 (0:00:00.556) 0:01:26.014 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [set default zone] ******************************************************** task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:364 Tuesday 22 February 2022 20:00:18 +0000 (0:00:00.541) 0:01:26.556 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [set default zone, again] ************************************************* task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:371 Tuesday 22 February 2022 20:00:18 +0000 (0:00:00.590) 0:01:27.146 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Remove custom zone] ****************************************************** task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:383 Tuesday 22 February 2022 20:00:19 +0000 (0:00:00.547) 0:01:27.694 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--delete-zone=custom" ], "delta": "0:00:00.249795", "end": "2022-02-22 20:00:19.170555", "failed_when_result": false, "rc": 0, "start": "2022-02-22 20:00:18.920760" } STDOUT: success TASK [Reset internal zone to defaults] ***************************************** task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:388 Tuesday 22 February 2022 20:00:19 +0000 (0:00:00.622) 0:01:28.316 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=internal" ], "delta": "0:00:00.262006", "end": "2022-02-22 20:00:19.804681", "failed_when_result": false, "rc": 0, "start": "2022-02-22 20:00:19.542675" } STDOUT: success TASK [Reset trusted zone to defaults] ****************************************** task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:393 Tuesday 22 February 2022 20:00:20 +0000 (0:00:00.636) 0:01:28.952 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=trusted" ], "delta": "0:00:00.269662", "end": "2022-02-22 20:00:20.461962", "failed_when_result": false, "rc": 0, "start": "2022-02-22 20:00:20.192300" } STDOUT: success TASK [Reset dmz zone to defaults] ********************************************** task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:398 Tuesday 22 February 2022 20:00:21 +0000 (0:00:00.657) 0:01:29.610 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=dmz" ], "delta": "0:00:00.263971", "end": "2022-02-22 20:00:21.109867", "failed_when_result": false, "rc": 0, "start": "2022-02-22 20:00:20.845896" } STDOUT: success TASK [Reset drop zone to defaults] ********************************************* task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:403 Tuesday 22 February 2022 20:00:21 +0000 (0:00:00.646) 0:01:30.256 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=drop" ], "delta": "0:00:00.248335", "end": "2022-02-22 20:00:21.741764", "failed_when_result": false, "rc": 0, "start": "2022-02-22 20:00:21.493429" } STDOUT: success TASK [Reset public zone to defaults] ******************************************* task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:408 Tuesday 22 February 2022 20:00:22 +0000 (0:00:00.632) 0:01:30.889 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=public" ], "delta": "0:00:00.269947", "end": "2022-02-22 20:00:22.382328", "failed_when_result": false, "rc": 0, "start": "2022-02-22 20:00:22.112381" } STDOUT: success TASK [Reset default zone to defaults] ****************************************** task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:413 Tuesday 22 February 2022 20:00:23 +0000 (0:00:00.641) 0:01:31.531 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": "firewall-cmd --permanent --load-zone-defaults=public\n", "delta": "0:00:00.255840", "end": "2022-02-22 20:00:23.020723", "failed_when_result": false, "rc": 22, "start": "2022-02-22 20:00:22.764883" } STDERR: Error: NO_DEFAULTS: public MSG: non-zero return code TASK [Reload firewalld] ******************************************************** task path: /tmp/tmpswr4cpvs/tests/tests_ansible.yml:420 Tuesday 22 February 2022 20:00:23 +0000 (0:00:00.633) 0:01:32.164 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--reload" ], "delta": "0:00:00.387401", "end": "2022-02-22 20:00:23.796664", "failed_when_result": false, "rc": 0, "start": "2022-02-22 20:00:23.409263" } STDOUT: success META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-34.qcow2 : ok=58 changed=36 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Tuesday 22 February 2022 20:00:24 +0000 (0:00:00.781) 0:01:32.945 ****** =============================================================================== linux-system-roles.firewall : Install firewalld ------------------------ 56.71s /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 linux-system-roles.firewall : Install python3-firewall ------------------ 2.39s /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Gathering Facts --------------------------------------------------------- 1.10s /tmp/tmpswr4cpvs/tests/tests_ansible.yml:1 ------------------------------------ linux-system-roles.firewall : Enable and start firewalld service -------- 1.10s /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Reset default zone to defaults ------------------------------------------ 0.89s /tmp/tmpswr4cpvs/tests/tests_ansible.yml:44 ----------------------------------- Ensure target ACCEPT in permanent internal zone ------------------------- 0.87s /tmp/tmpswr4cpvs/tests/tests_ansible.yml:271 ---------------------------------- Remove custom zone ------------------------------------------------------ 0.79s /tmp/tmpswr4cpvs/tests/tests_ansible.yml:14 ----------------------------------- Reload firewalld -------------------------------------------------------- 0.78s /tmp/tmpswr4cpvs/tests/tests_ansible.yml:420 ---------------------------------- Reload firewalld -------------------------------------------------------- 0.77s /tmp/tmpswr4cpvs/tests/tests_ansible.yml:57 ----------------------------------- Firewalld custom zone --------------------------------------------------- 0.73s /tmp/tmpswr4cpvs/tests/tests_ansible.yml:331 ---------------------------------- Ensure default target in permanent internal zone ------------------------ 0.70s /tmp/tmpswr4cpvs/tests/tests_ansible.yml:289 ---------------------------------- Permit traffic in default zone for https service ------------------------ 0.68s /tmp/tmpswr4cpvs/tests/tests_ansible.yml:64 ----------------------------------- Reset public zone to defaults ------------------------------------------- 0.66s /tmp/tmpswr4cpvs/tests/tests_ansible.yml:39 ----------------------------------- Reset trusted zone to defaults ------------------------------------------ 0.66s /tmp/tmpswr4cpvs/tests/tests_ansible.yml:393 ---------------------------------- Create custom zone ------------------------------------------------------ 0.65s /tmp/tmpswr4cpvs/tests/tests_ansible.yml:52 ----------------------------------- Reset dmz zone to defaults ---------------------------------------------- 0.65s /tmp/tmpswr4cpvs/tests/tests_ansible.yml:398 ---------------------------------- Reset public zone to defaults ------------------------------------------- 0.64s /tmp/tmpswr4cpvs/tests/tests_ansible.yml:408 ---------------------------------- Reset internal zone to defaults ----------------------------------------- 0.64s /tmp/tmpswr4cpvs/tests/tests_ansible.yml:19 ----------------------------------- Reset internal zone to defaults ----------------------------------------- 0.64s /tmp/tmpswr4cpvs/tests/tests_ansible.yml:388 ---------------------------------- Reset default zone to defaults ------------------------------------------ 0.63s /tmp/tmpswr4cpvs/tests/tests_ansible.yml:413 ---------------------------------- + cd /tmp/tmpswr4cpvs/tests; TEST_SUBJECTS=/cache/fedora-34.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_firewall-70-e3071ca-fedora-34-defuazh6/artifacts ANSIBLE_COLLECTIONS_PATHS=/tmp/tmpc4lcl3ua:~/.ansible/collections:/usr/share/ansible/collections ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 --skip-tags=tests::nvme /tmp/tmpswr4cpvs/_setup.yml /tmp/tmpswr4cpvs/tests/tests_default.yml ansible-playbook [core 2.12.2.post0] config file = None configured module search path = ['/home/runner/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.8/site-packages/ansible ansible collection location = /tmp/tmpc4lcl3ua:/home/runner/.ansible/collections:/usr/share/ansible/collections executable location = /usr/local/bin/ansible-playbook python version = 3.8.12 (default, Sep 21 2021, 00:10:52) [GCC 8.5.0 20210514 (Red Hat 8.5.0-3)] jinja version = 2.10.3 libyaml = True No config file found; using defaults Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmpswr4cpvs/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpswr4cpvs/_setup.yml:5 Tuesday 22 February 2022 20:00:38 +0000 (0:00:00.011) 0:00:00.011 ****** ok: [/cache/fedora-34.qcow2] => { "groups": { "all": [ "/cache/fedora-34.qcow2" ], "localhost": [ "/cache/fedora-34.qcow2" ], "subjects": [ "/cache/fedora-34.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpswr4cpvs/_setup.yml:6 Tuesday 22 February 2022 20:00:38 +0000 (0:00:00.018) 0:00:00.029 ****** skipping: [/cache/fedora-34.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-34.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 Tuesday 22 February 2022 20:00:38 +0000 (0:00:00.021) 0:00:00.051 ****** =============================================================================== fail -------------------------------------------------------------------- 0.02s /tmp/tmpswr4cpvs/_setup.yml:6 ------------------------------------------------- debug ------------------------------------------------------------------- 0.02s /tmp/tmpswr4cpvs/_setup.yml:5 ------------------------------------------------- [DEPRECATION WARNING]: "include" is deprecated, use include_tasks/import_tasks instead. This feature will be removed in version 2.16. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. statically imported: /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml PLAYBOOK: tests_default.yml **************************************************** 1 plays in /tmp/tmpswr4cpvs/tests/tests_default.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpswr4cpvs/tests/tests_default.yml:1 Tuesday 22 February 2022 20:00:38 +0000 (0:00:00.013) 0:00:00.064 ****** ok: [/cache/fedora-34.qcow2] META: ran handlers TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Tuesday 22 February 2022 20:00:39 +0000 (0:00:01.056) 0:00:01.121 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "rc": 0, "results": [ "Installed: python3-decorator-4.4.2-4.fc34.noarch", "Installed: iptables-nft-1.8.7-8.fc34.x86_64", "Installed: nftables-1:0.9.8-3.fc34.x86_64", "Installed: libnftnl-1.1.9-2.fc34.x86_64", "Installed: python3-nftables-1:0.9.8-3.fc34.x86_64", "Installed: gobject-introspection-1.68.0-4.fc34.x86_64", "Installed: ipset-7.11-1.fc34.x86_64", "Installed: python3-firewall-0.9.4-1.fc34.noarch", "Installed: python3-gobject-base-3.40.1-1.fc34.x86_64", "Installed: ipset-libs-7.11-1.fc34.x86_64", "Installed: firewalld-0.9.4-1.fc34.noarch", "Installed: firewalld-filesystem-0.9.4-1.fc34.noarch", "Installed: python3-slip-0.6.4-22.fc34.noarch", "Installed: python3-slip-dbus-0.6.4-22.fc34.noarch" ] } TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:7 Tuesday 22 February 2022 20:01:39 +0000 (0:01:00.308) 0:01:01.429 ****** skipping: [/cache/fedora-34.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Tuesday 22 February 2022 20:01:39 +0000 (0:00:00.021) 0:01:01.450 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Tuesday 22 February 2022 20:01:41 +0000 (0:00:02.089) 0:01:03.539 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "sysinit.target dbus-broker.service basic.target dbus.socket system.slice polkit.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": "shutdown.target nftables.service ip6tables.service ebtables.service ipset.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 }", "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": "0", "IOSchedulingPriority": "0", "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": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7726", "LimitNPROCSoft": "7726", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7726", "LimitSIGPENDINGSoft": "7726", "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", "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", "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 system.slice dbus.socket", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "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": "2317", "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/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Tuesday 22 February 2022 20:01:42 +0000 (0:00:01.113) 0:01:04.653 ****** META: role_complete for /cache/fedora-34.qcow2 META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-34.qcow2 : ok=5 changed=2 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Tuesday 22 February 2022 20:01:42 +0000 (0:00:00.031) 0:01:04.685 ****** =============================================================================== linux-system-roles.firewall : Install firewalld ------------------------ 60.31s /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 linux-system-roles.firewall : Install python3-firewall ------------------ 2.09s /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 linux-system-roles.firewall : Enable and start firewalld service -------- 1.11s /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Gathering Facts --------------------------------------------------------- 1.06s /tmp/tmpswr4cpvs/tests/tests_default.yml:1 ------------------------------------ linux-system-roles.firewall : Configure firewall ------------------------ 0.03s /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 ----- fail -------------------------------------------------------------------- 0.02s /tmp/tmpswr4cpvs/_setup.yml:6 ------------------------------------------------- linux-system-roles.firewall : Install python-firewall ------------------- 0.02s /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:7 debug ------------------------------------------------------------------- 0.02s /tmp/tmpswr4cpvs/_setup.yml:5 ------------------------------------------------- + cd /tmp/tmpswr4cpvs/tests; TEST_SUBJECTS=/cache/fedora-34.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_firewall-70-e3071ca-fedora-34-defuazh6/artifacts ANSIBLE_COLLECTIONS_PATHS=/tmp/tmpc4lcl3ua:~/.ansible/collections:/usr/share/ansible/collections ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 --skip-tags=tests::nvme /tmp/tmpswr4cpvs/_setup.yml /tmp/tmpswr4cpvs/tests/tests_target.yml ansible-playbook [core 2.12.2.post0] config file = None configured module search path = ['/home/runner/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.8/site-packages/ansible ansible collection location = /tmp/tmpc4lcl3ua:/home/runner/.ansible/collections:/usr/share/ansible/collections executable location = /usr/local/bin/ansible-playbook python version = 3.8.12 (default, Sep 21 2021, 00:10:52) [GCC 8.5.0 20210514 (Red Hat 8.5.0-3)] jinja version = 2.10.3 libyaml = True No config file found; using defaults Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmpswr4cpvs/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpswr4cpvs/_setup.yml:5 Tuesday 22 February 2022 20:01:57 +0000 (0:00:00.011) 0:00:00.011 ****** ok: [/cache/fedora-34.qcow2] => { "groups": { "all": [ "/cache/fedora-34.qcow2" ], "localhost": [ "/cache/fedora-34.qcow2" ], "subjects": [ "/cache/fedora-34.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpswr4cpvs/_setup.yml:6 Tuesday 22 February 2022 20:01:57 +0000 (0:00:00.018) 0:00:00.029 ****** skipping: [/cache/fedora-34.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-34.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 Tuesday 22 February 2022 20:01:57 +0000 (0:00:00.021) 0:00:00.050 ****** =============================================================================== fail -------------------------------------------------------------------- 0.02s /tmp/tmpswr4cpvs/_setup.yml:6 ------------------------------------------------- debug ------------------------------------------------------------------- 0.02s /tmp/tmpswr4cpvs/_setup.yml:5 ------------------------------------------------- PLAYBOOK: tests_target.yml ***************************************************** 1 plays in /tmp/tmpswr4cpvs/tests/tests_target.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpswr4cpvs/tests/tests_target.yml:1 Tuesday 22 February 2022 20:01:57 +0000 (0:00:00.007) 0:00:00.058 ****** ok: [/cache/fedora-34.qcow2] META: ran handlers TASK [Call role to change target settings] ************************************* task path: /tmp/tmpswr4cpvs/tests/tests_target.yml:3 Tuesday 22 February 2022 20:01:58 +0000 (0:00:01.069) 0:00:01.128 ****** [DEPRECATION WARNING]: "include" is deprecated, use include_tasks/import_tasks instead. This feature will be removed in version 2.16. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. statically imported: /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Tuesday 22 February 2022 20:01:58 +0000 (0:00:00.028) 0:00:01.157 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "rc": 0, "results": [ "Installed: python3-decorator-4.4.2-4.fc34.noarch", "Installed: iptables-nft-1.8.7-8.fc34.x86_64", "Installed: nftables-1:0.9.8-3.fc34.x86_64", "Installed: libnftnl-1.1.9-2.fc34.x86_64", "Installed: python3-nftables-1:0.9.8-3.fc34.x86_64", "Installed: gobject-introspection-1.68.0-4.fc34.x86_64", "Installed: ipset-7.11-1.fc34.x86_64", "Installed: python3-firewall-0.9.4-1.fc34.noarch", "Installed: python3-gobject-base-3.40.1-1.fc34.x86_64", "Installed: ipset-libs-7.11-1.fc34.x86_64", "Installed: firewalld-0.9.4-1.fc34.noarch", "Installed: firewalld-filesystem-0.9.4-1.fc34.noarch", "Installed: python3-slip-0.6.4-22.fc34.noarch", "Installed: python3-slip-dbus-0.6.4-22.fc34.noarch" ] } TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:7 Tuesday 22 February 2022 20:02:47 +0000 (0:00:48.682) 0:00:49.839 ****** skipping: [/cache/fedora-34.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Tuesday 22 February 2022 20:02:47 +0000 (0:00:00.027) 0:00:49.866 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Tuesday 22 February 2022 20:02:49 +0000 (0:00:01.992) 0:00:51.859 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "dbus.socket sysinit.target dbus-broker.service polkit.service system.slice basic.target", "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": "shutdown.target ip6tables.service nftables.service ipset.service ebtables.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 }", "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": "0", "IOSchedulingPriority": "0", "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": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7726", "LimitNPROCSoft": "7726", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7726", "LimitSIGPENDINGSoft": "7726", "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", "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", "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", "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": "2317", "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/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Tuesday 22 February 2022 20:02:50 +0000 (0:00:01.048) 0:00:52.908 ****** ok: [/cache/fedora-34.qcow2] => (item={'set_default_zone': 'public', 'state': 'enabled', 'permanent': True}) => { "ansible_loop_var": "item", "changed": false, "item": { "permanent": true, "set_default_zone": "public", "state": "enabled" } } changed: [/cache/fedora-34.qcow2] => (item={'target': 'DROP', 'state': 'enabled', 'permanent': True}) => { "ansible_loop_var": "item", "changed": true, "item": { "permanent": true, "state": "enabled", "target": "DROP" } } META: role_complete for /cache/fedora-34.qcow2 TASK [Get target setting] ****************************************************** task path: /tmp/tmpswr4cpvs/tests/tests_target.yml:15 Tuesday 22 February 2022 20:02:51 +0000 (0:00:01.409) 0:00:54.317 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "cmd": [ "firewall-cmd", "--info-zone=public" ], "delta": "0:00:00.248967", "end": "2022-02-22 20:02:51.956198", "rc": 0, "start": "2022-02-22 20:02:51.707231" } STDOUT: public (active) target: DROP icmp-block-inversion: no interfaces: eth0 sources: services: dhcpv6-client mdns ssh ports: protocols: forward: no masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: TASK [Verify target setting] *************************************************** task path: /tmp/tmpswr4cpvs/tests/tests_target.yml:20 Tuesday 22 February 2022 20:02:52 +0000 (0:00:00.764) 0:00:55.081 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false } MSG: All assertions passed TASK [Call role to reset target settings] ************************************** task path: /tmp/tmpswr4cpvs/tests/tests_target.yml:26 Tuesday 22 February 2022 20:02:52 +0000 (0:00:00.022) 0:00:55.103 ****** statically imported: /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Tuesday 22 February 2022 20:02:52 +0000 (0:00:00.026) 0:00:55.130 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:7 Tuesday 22 February 2022 20:02:54 +0000 (0:00:02.002) 0:00:57.133 ****** skipping: [/cache/fedora-34.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Tuesday 22 February 2022 20:02:54 +0000 (0:00:00.021) 0:00:57.155 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Tuesday 22 February 2022 20:02:56 +0000 (0:00:01.928) 0:00:59.083 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2022-02-22 20:02:49 UTC", "ActiveEnterTimestampMonotonic": "63801786", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "dbus.socket sysinit.target dbus-broker.service polkit.service system.slice basic.target", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-02-22 20:02:49 UTC", "AssertTimestampMonotonic": "63549780", "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": "716408000", "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-02-22 20:02:49 UTC", "ConditionTimestampMonotonic": "63549778", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target ip6tables.service nftables.service ipset.service ebtables.service iptables.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": "7474", "ExecMainStartTimestamp": "Tue 2022-02-22 20:02:49 UTC", "ExecMainStartTimestampMonotonic": "63550929", "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-02-22 20:02:49 UTC] ; stop_time=[n/a] ; pid=7474 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; flags= ; start_time=[Tue 2022-02-22 20:02:49 UTC] ; stop_time=[n/a] ; pid=7474 ; code=(null) ; status=0/0 }", "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": "0", "IOSchedulingPriority": "0", "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-02-22 20:02:49 UTC", "InactiveExitTimestampMonotonic": "63551288", "InvocationID": "bcfe08f047c84d9cbe6e4b5a405a5c38", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7726", "LimitNPROCSoft": "7726", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7726", "LimitSIGPENDINGSoft": "7726", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "7474", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryCurrent": "28135424", "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", "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", "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-02-22 20:02:49 UTC", "StateChangeTimestampMonotonic": "63801786", "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": "2317", "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/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Tuesday 22 February 2022 20:02:56 +0000 (0:00:00.556) 0:00:59.640 ****** changed: [/cache/fedora-34.qcow2] => (item={'target': 'DROP', 'state': 'absent', 'permanent': True}) => { "ansible_loop_var": "item", "changed": true, "item": { "permanent": true, "state": "absent", "target": "DROP" } } META: role_complete for /cache/fedora-34.qcow2 TASK [Get target setting] ****************************************************** task path: /tmp/tmpswr4cpvs/tests/tests_target.yml:35 Tuesday 22 February 2022 20:02:57 +0000 (0:00:00.702) 0:01:00.342 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "cmd": [ "firewall-cmd", "--info-zone=public" ], "delta": "0:00:00.252523", "end": "2022-02-22 20:02:57.849826", "rc": 0, "start": "2022-02-22 20:02:57.597303" } STDOUT: public (active) target: default icmp-block-inversion: no interfaces: eth0 sources: services: dhcpv6-client mdns ssh ports: protocols: forward: no masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: TASK [Verify target setting was reset] ***************************************** task path: /tmp/tmpswr4cpvs/tests/tests_target.yml:40 Tuesday 22 February 2022 20:02:58 +0000 (0:00:00.633) 0:01:00.976 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-34.qcow2 : ok=14 changed=4 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Tuesday 22 February 2022 20:02:58 +0000 (0:00:00.027) 0:01:01.003 ****** =============================================================================== linux-system-roles.firewall : Install firewalld ------------------------ 48.68s /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 linux-system-roles.firewall : Install firewalld ------------------------- 2.00s /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 linux-system-roles.firewall : Install python3-firewall ------------------ 1.99s /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 linux-system-roles.firewall : Install python3-firewall ------------------ 1.93s /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 linux-system-roles.firewall : Configure firewall ------------------------ 1.41s /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 ----- Gathering Facts --------------------------------------------------------- 1.07s /tmp/tmpswr4cpvs/tests/tests_target.yml:1 ------------------------------------- linux-system-roles.firewall : Enable and start firewalld service -------- 1.05s /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Get target setting ------------------------------------------------------ 0.76s /tmp/tmpswr4cpvs/tests/tests_target.yml:15 ------------------------------------ linux-system-roles.firewall : Configure firewall ------------------------ 0.70s /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 ----- Get target setting ------------------------------------------------------ 0.63s /tmp/tmpswr4cpvs/tests/tests_target.yml:35 ------------------------------------ linux-system-roles.firewall : Enable and start firewalld service -------- 0.56s /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Call role to change target settings ------------------------------------- 0.03s /tmp/tmpswr4cpvs/tests/tests_target.yml:3 ------------------------------------- Verify target setting was reset ----------------------------------------- 0.03s /tmp/tmpswr4cpvs/tests/tests_target.yml:40 ------------------------------------ linux-system-roles.firewall : Install python-firewall ------------------- 0.03s /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:7 Call role to reset target settings -------------------------------------- 0.03s /tmp/tmpswr4cpvs/tests/tests_target.yml:26 ------------------------------------ Verify target setting --------------------------------------------------- 0.02s /tmp/tmpswr4cpvs/tests/tests_target.yml:20 ------------------------------------ linux-system-roles.firewall : Install python-firewall ------------------- 0.02s /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:7 fail -------------------------------------------------------------------- 0.02s /tmp/tmpswr4cpvs/_setup.yml:6 ------------------------------------------------- debug ------------------------------------------------------------------- 0.02s /tmp/tmpswr4cpvs/_setup.yml:5 ------------------------------------------------- + cd /tmp/tmpswr4cpvs/tests; TEST_SUBJECTS=/cache/fedora-34.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_firewall-70-e3071ca-fedora-34-defuazh6/artifacts ANSIBLE_COLLECTIONS_PATHS=/tmp/tmpc4lcl3ua:~/.ansible/collections:/usr/share/ansible/collections ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 --skip-tags=tests::nvme /tmp/tmpswr4cpvs/_setup.yml /tmp/tmpswr4cpvs/tests/tests_zone.yml ansible-playbook [core 2.12.2.post0] config file = None configured module search path = ['/home/runner/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.8/site-packages/ansible ansible collection location = /tmp/tmpc4lcl3ua:/home/runner/.ansible/collections:/usr/share/ansible/collections executable location = /usr/local/bin/ansible-playbook python version = 3.8.12 (default, Sep 21 2021, 00:10:52) [GCC 8.5.0 20210514 (Red Hat 8.5.0-3)] jinja version = 2.10.3 libyaml = True No config file found; using defaults Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmpswr4cpvs/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpswr4cpvs/_setup.yml:5 Tuesday 22 February 2022 20:03:12 +0000 (0:00:00.011) 0:00:00.011 ****** ok: [/cache/fedora-34.qcow2] => { "groups": { "all": [ "/cache/fedora-34.qcow2" ], "localhost": [ "/cache/fedora-34.qcow2" ], "subjects": [ "/cache/fedora-34.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpswr4cpvs/_setup.yml:6 Tuesday 22 February 2022 20:03:12 +0000 (0:00:00.016) 0:00:00.027 ****** skipping: [/cache/fedora-34.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-34.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 Tuesday 22 February 2022 20:03:12 +0000 (0:00:00.022) 0:00:00.050 ****** =============================================================================== fail -------------------------------------------------------------------- 0.02s /tmp/tmpswr4cpvs/_setup.yml:6 ------------------------------------------------- debug ------------------------------------------------------------------- 0.02s /tmp/tmpswr4cpvs/_setup.yml:5 ------------------------------------------------- PLAYBOOK: tests_zone.yml ******************************************************* 1 plays in /tmp/tmpswr4cpvs/tests/tests_zone.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpswr4cpvs/tests/tests_zone.yml:1 Tuesday 22 February 2022 20:03:12 +0000 (0:00:00.011) 0:00:00.061 ****** ok: [/cache/fedora-34.qcow2] META: ran handlers TASK [include_role : linux-system-roles.firewall] ****************************** task path: /tmp/tmpswr4cpvs/tests/tests_zone.yml:6 Tuesday 22 February 2022 20:03:13 +0000 (0:00:01.055) 0:00:01.116 ****** [DEPRECATION WARNING]: "include" is deprecated, use include_tasks/import_tasks instead. This feature will be removed in version 2.16. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. statically imported: /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Tuesday 22 February 2022 20:03:13 +0000 (0:00:00.028) 0:00:01.144 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "rc": 0, "results": [ "Installed: python3-decorator-4.4.2-4.fc34.noarch", "Installed: iptables-nft-1.8.7-8.fc34.x86_64", "Installed: libnftnl-1.1.9-2.fc34.x86_64", "Installed: nftables-1:0.9.8-3.fc34.x86_64", "Installed: gobject-introspection-1.68.0-4.fc34.x86_64", "Installed: ipset-7.11-1.fc34.x86_64", "Installed: python3-nftables-1:0.9.8-3.fc34.x86_64", "Installed: python3-gobject-base-3.40.1-1.fc34.x86_64", "Installed: python3-firewall-0.9.4-1.fc34.noarch", "Installed: ipset-libs-7.11-1.fc34.x86_64", "Installed: firewalld-0.9.4-1.fc34.noarch", "Installed: firewalld-filesystem-0.9.4-1.fc34.noarch", "Installed: python3-slip-0.6.4-22.fc34.noarch", "Installed: python3-slip-dbus-0.6.4-22.fc34.noarch" ] } TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:7 Tuesday 22 February 2022 20:03:53 +0000 (0:00:39.698) 0:00:40.843 ****** skipping: [/cache/fedora-34.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Tuesday 22 February 2022 20:03:53 +0000 (0:00:00.024) 0:00:40.867 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Tuesday 22 February 2022 20:03:56 +0000 (0:00:02.471) 0:00:43.339 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "polkit.service sysinit.target dbus-broker.service dbus.socket basic.target system.slice", "AllowIsolate": "no", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target network-pre.target multi-user.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": "ebtables.service ipset.service ip6tables.service nftables.service shutdown.target 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 }", "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": "0", "IOSchedulingPriority": "0", "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": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7726", "LimitNPROCSoft": "7726", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7726", "LimitSIGPENDINGSoft": "7726", "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", "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", "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", "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": "2317", "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/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Tuesday 22 February 2022 20:03:57 +0000 (0:00:01.097) 0:00:44.436 ****** META: role_complete for /cache/fedora-34.qcow2 TASK [Verify used firewalld zones] ********************************************* task path: /tmp/tmpswr4cpvs/tests/tests_zone.yml:14 Tuesday 22 February 2022 20:03:57 +0000 (0:00:00.020) 0:00:44.456 ****** statically imported: /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Tuesday 22 February 2022 20:03:57 +0000 (0:00:00.041) 0:00:44.497 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:7 Tuesday 22 February 2022 20:03:59 +0000 (0:00:02.373) 0:00:46.871 ****** skipping: [/cache/fedora-34.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Tuesday 22 February 2022 20:03:59 +0000 (0:00:00.037) 0:00:46.909 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Tuesday 22 February 2022 20:04:02 +0000 (0:00:02.278) 0:00:49.188 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2022-02-22 20:03:56 UTC", "ActiveEnterTimestampMonotonic": "55460327", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "polkit.service sysinit.target dbus-broker.service dbus.socket basic.target system.slice", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-02-22 20:03:56 UTC", "AssertTimestampMonotonic": "55204279", "Before": "shutdown.target network-pre.target multi-user.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": "442284000", "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-02-22 20:03:56 UTC", "ConditionTimestampMonotonic": "55204278", "ConfigurationDirectoryMode": "0755", "Conflicts": "ebtables.service ipset.service ip6tables.service nftables.service shutdown.target iptables.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": "7477", "ExecMainStartTimestamp": "Tue 2022-02-22 20:03:56 UTC", "ExecMainStartTimestampMonotonic": "55205625", "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-02-22 20:03:56 UTC] ; stop_time=[n/a] ; pid=7477 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; flags= ; start_time=[Tue 2022-02-22 20:03:56 UTC] ; stop_time=[n/a] ; pid=7477 ; code=(null) ; status=0/0 }", "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": "0", "IOSchedulingPriority": "0", "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-02-22 20:03:56 UTC", "InactiveExitTimestampMonotonic": "55206011", "InvocationID": "35c8c9f7d64343349059bea66e760fd5", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7726", "LimitNPROCSoft": "7726", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7726", "LimitSIGPENDINGSoft": "7726", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "7477", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryCurrent": "25354240", "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", "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", "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-02-22 20:03:56 UTC", "StateChangeTimestampMonotonic": "55460327", "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": "2317", "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/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Tuesday 22 February 2022 20:04:02 +0000 (0:00:00.511) 0:00:49.699 ****** ok: [/cache/fedora-34.qcow2] => (item={'zone': 'internal', 'state': 'enabled'}) => { "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "internal" } } ok: [/cache/fedora-34.qcow2] => (item={'zone': 'external', 'state': 'enabled'}) => { "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "external" } } ok: [/cache/fedora-34.qcow2] => (item={'zone': 'trusted', 'state': 'enabled'}) => { "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "trusted" } } META: role_complete for /cache/fedora-34.qcow2 TASK [Fail on missing zones] *************************************************** task path: /tmp/tmpswr4cpvs/tests/tests_zone.yml:26 Tuesday 22 February 2022 20:04:04 +0000 (0:00:01.816) 0:00:51.516 ****** skipping: [/cache/fedora-34.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Setup firewalld] ********************************************************* task path: /tmp/tmpswr4cpvs/tests/tests_zone.yml:32 Tuesday 22 February 2022 20:04:04 +0000 (0:00:00.035) 0:00:51.551 ****** statically imported: /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Tuesday 22 February 2022 20:04:04 +0000 (0:00:00.045) 0:00:51.597 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:7 Tuesday 22 February 2022 20:04:06 +0000 (0:00:02.233) 0:00:53.830 ****** skipping: [/cache/fedora-34.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Tuesday 22 February 2022 20:04:06 +0000 (0:00:00.037) 0:00:53.868 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Tuesday 22 February 2022 20:04:09 +0000 (0:00:02.295) 0:00:56.164 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2022-02-22 20:03:56 UTC", "ActiveEnterTimestampMonotonic": "55460327", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "polkit.service sysinit.target dbus-broker.service dbus.socket basic.target system.slice", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-02-22 20:03:56 UTC", "AssertTimestampMonotonic": "55204279", "Before": "shutdown.target network-pre.target multi-user.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": "587710000", "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-02-22 20:03:56 UTC", "ConditionTimestampMonotonic": "55204278", "ConfigurationDirectoryMode": "0755", "Conflicts": "ebtables.service ipset.service ip6tables.service nftables.service shutdown.target iptables.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": "7477", "ExecMainStartTimestamp": "Tue 2022-02-22 20:03:56 UTC", "ExecMainStartTimestampMonotonic": "55205625", "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-02-22 20:03:56 UTC] ; stop_time=[n/a] ; pid=7477 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; flags= ; start_time=[Tue 2022-02-22 20:03:56 UTC] ; stop_time=[n/a] ; pid=7477 ; code=(null) ; status=0/0 }", "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": "0", "IOSchedulingPriority": "0", "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-02-22 20:03:56 UTC", "InactiveExitTimestampMonotonic": "55206011", "InvocationID": "35c8c9f7d64343349059bea66e760fd5", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7726", "LimitNPROCSoft": "7726", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7726", "LimitSIGPENDINGSoft": "7726", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "7477", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryCurrent": "26619904", "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", "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", "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-02-22 20:03:56 UTC", "StateChangeTimestampMonotonic": "55460327", "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": "2317", "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/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Tuesday 22 February 2022 20:04:09 +0000 (0:00:00.549) 0:00:56.713 ****** changed: [/cache/fedora-34.qcow2] => (item={'zone': 'internal', 'service': ['tftp', 'ftp'], 'port': ['443/tcp', '443/udp'], 'forward_port': ['447/tcp;;1.2.3.4', '448/tcp;;1.2.3.5'], 'state': 'enabled'}) => { "ansible_loop_var": "item", "changed": true, "item": { "forward_port": [ "447/tcp;;1.2.3.4", "448/tcp;;1.2.3.5" ], "port": [ "443/tcp", "443/udp" ], "service": [ "tftp", "ftp" ], "state": "enabled", "zone": "internal" } } ok: [/cache/fedora-34.qcow2] => (item={'zone': 'internal', 'service': ['tftp', 'ftp'], 'port': ['443/tcp', '443/udp'], 'forward_port': ['447/tcp;;1.2.3.4', '448/tcp;;1.2.3.5'], 'state': 'enabled'}) => { "ansible_loop_var": "item", "changed": false, "item": { "forward_port": [ "447/tcp;;1.2.3.4", "448/tcp;;1.2.3.5" ], "port": [ "443/tcp", "443/udp" ], "service": [ "tftp", "ftp" ], "state": "enabled", "zone": "internal" } } changed: [/cache/fedora-34.qcow2] => (item={'zone': 'customzone', 'permanent': True, 'state': 'present'}) => { "ansible_loop_var": "item", "changed": true, "item": { "permanent": true, "state": "present", "zone": "customzone" } } changed: [/cache/fedora-34.qcow2] => (item={'zone': 'customzone', 'permanent': True, 'masquerade': True, 'state': 'enabled'}) => { "ansible_loop_var": "item", "changed": true, "item": { "masquerade": true, "permanent": true, "state": "enabled", "zone": "customzone" } } changed: [/cache/fedora-34.qcow2] => (item={'set_default_zone': 'dmz', 'state': 'enabled'}) => { "ansible_loop_var": "item", "changed": true, "item": { "set_default_zone": "dmz", "state": "enabled" } } changed: [/cache/fedora-34.qcow2] => (item={'service': 'http', 'state': 'enabled'}) => { "ansible_loop_var": "item", "changed": true, "item": { "service": "http", "state": "enabled" } } META: role_complete for /cache/fedora-34.qcow2 TASK [Fail if no changes are done] ********************************************* task path: /tmp/tmpswr4cpvs/tests/tests_zone.yml:62 Tuesday 22 February 2022 20:04:13 +0000 (0:00:03.498) 0:01:00.212 ****** skipping: [/cache/fedora-34.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Setup firewalld again] *************************************************** task path: /tmp/tmpswr4cpvs/tests/tests_zone.yml:68 Tuesday 22 February 2022 20:04:13 +0000 (0:00:00.042) 0:01:00.254 ****** TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Tuesday 22 February 2022 20:04:13 +0000 (0:00:00.060) 0:01:00.314 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:7 Tuesday 22 February 2022 20:04:15 +0000 (0:00:02.339) 0:01:02.654 ****** skipping: [/cache/fedora-34.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Tuesday 22 February 2022 20:04:15 +0000 (0:00:00.039) 0:01:02.693 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Tuesday 22 February 2022 20:04:17 +0000 (0:00:02.309) 0:01:05.003 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2022-02-22 20:03:56 UTC", "ActiveEnterTimestampMonotonic": "55460327", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "polkit.service sysinit.target dbus-broker.service dbus.socket basic.target system.slice", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-02-22 20:03:56 UTC", "AssertTimestampMonotonic": "55204279", "Before": "shutdown.target network-pre.target multi-user.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": "1037547000", "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-02-22 20:03:56 UTC", "ConditionTimestampMonotonic": "55204278", "ConfigurationDirectoryMode": "0755", "Conflicts": "ebtables.service ipset.service ip6tables.service nftables.service shutdown.target iptables.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": "7477", "ExecMainStartTimestamp": "Tue 2022-02-22 20:03:56 UTC", "ExecMainStartTimestampMonotonic": "55205625", "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-02-22 20:03:56 UTC] ; stop_time=[n/a] ; pid=7477 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; flags= ; start_time=[Tue 2022-02-22 20:03:56 UTC] ; stop_time=[n/a] ; pid=7477 ; code=(null) ; status=0/0 }", "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": "0", "IOSchedulingPriority": "0", "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-02-22 20:03:56 UTC", "InactiveExitTimestampMonotonic": "55206011", "InvocationID": "35c8c9f7d64343349059bea66e760fd5", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7726", "LimitNPROCSoft": "7726", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7726", "LimitSIGPENDINGSoft": "7726", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "7477", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryCurrent": "28160000", "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", "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", "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-02-22 20:03:56 UTC", "StateChangeTimestampMonotonic": "55460327", "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": "2317", "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/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Tuesday 22 February 2022 20:04:18 +0000 (0:00:00.552) 0:01:05.556 ****** ok: [/cache/fedora-34.qcow2] => (item={'zone': 'internal', 'service': ['tftp', 'ftp'], 'port': ['443/tcp', '443/udp'], 'forward_port': ['447/tcp;;1.2.3.4', '448/tcp;;1.2.3.5'], 'state': 'enabled'}) => { "ansible_loop_var": "item", "changed": false, "item": { "forward_port": [ "447/tcp;;1.2.3.4", "448/tcp;;1.2.3.5" ], "port": [ "443/tcp", "443/udp" ], "service": [ "tftp", "ftp" ], "state": "enabled", "zone": "internal" } } ok: [/cache/fedora-34.qcow2] => (item={'zone': 'internal', 'service': ['tftp', 'ftp'], 'port': ['443/tcp', '443/udp'], 'forward_port': ['447/tcp;;1.2.3.4', '448/tcp;;1.2.3.5'], 'state': 'enabled'}) => { "ansible_loop_var": "item", "changed": false, "item": { "forward_port": [ "447/tcp;;1.2.3.4", "448/tcp;;1.2.3.5" ], "port": [ "443/tcp", "443/udp" ], "service": [ "tftp", "ftp" ], "state": "enabled", "zone": "internal" } } ok: [/cache/fedora-34.qcow2] => (item={'zone': 'customzone', 'permanent': True, 'state': 'present'}) => { "ansible_loop_var": "item", "changed": false, "item": { "permanent": true, "state": "present", "zone": "customzone" } } ok: [/cache/fedora-34.qcow2] => (item={'zone': 'customzone', 'permanent': True, 'masquerade': True, 'state': 'enabled'}) => { "ansible_loop_var": "item", "changed": false, "item": { "masquerade": true, "permanent": true, "state": "enabled", "zone": "customzone" } } ok: [/cache/fedora-34.qcow2] => (item={'set_default_zone': 'dmz', 'state': 'enabled'}) => { "ansible_loop_var": "item", "changed": false, "item": { "set_default_zone": "dmz", "state": "enabled" } } ok: [/cache/fedora-34.qcow2] => (item={'service': 'http', 'state': 'enabled'}) => { "ansible_loop_var": "item", "changed": false, "item": { "service": "http", "state": "enabled" } } META: role_complete for /cache/fedora-34.qcow2 TASK [Fail on newly changes] *************************************************** task path: /tmp/tmpswr4cpvs/tests/tests_zone.yml:98 Tuesday 22 February 2022 20:04:21 +0000 (0:00:03.394) 0:01:08.951 ****** skipping: [/cache/fedora-34.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify firewalld zone internal services] ********************************* task path: /tmp/tmpswr4cpvs/tests/tests_zone.yml:104 Tuesday 22 February 2022 20:04:21 +0000 (0:00:00.034) 0:01:08.985 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-services" ], "delta": "0:00:00.259417", "end": "2022-02-22 20:04:21.778954", "failed_when_result": false, "rc": 0, "start": "2022-02-22 20:04:21.519537" } STDOUT: dhcpv6-client ftp mdns samba-client ssh tftp TASK [Verify firewalld zone internal ports] ************************************ task path: /tmp/tmpswr4cpvs/tests/tests_zone.yml:111 Tuesday 22 February 2022 20:04:22 +0000 (0:00:00.775) 0:01:09.761 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-ports" ], "delta": "0:00:00.280892", "end": "2022-02-22 20:04:22.471633", "failed_when_result": false, "rc": 0, "start": "2022-02-22 20:04:22.190741" } STDOUT: 443/tcp 443/udp TASK [Verify firewalld zone internal forward ports] **************************** task path: /tmp/tmpswr4cpvs/tests/tests_zone.yml:118 Tuesday 22 February 2022 20:04:23 +0000 (0:00:00.694) 0:01:10.456 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-forward-ports" ], "delta": "0:00:00.260252", "end": "2022-02-22 20:04:23.149532", "failed_when_result": false, "rc": 0, "start": "2022-02-22 20:04:22.889280" } 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/tmpswr4cpvs/tests/tests_zone.yml:127 Tuesday 22 February 2022 20:04:23 +0000 (0:00:00.678) 0:01:11.134 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=customzone", "--query-masquerade" ], "delta": "0:00:00.276480", "end": "2022-02-22 20:04:23.836933", "failed_when_result": false, "rc": 0, "start": "2022-02-22 20:04:23.560453" } STDOUT: yes TASK [Verify custom zone has masquerade added to it] *************************** task path: /tmp/tmpswr4cpvs/tests/tests_zone.yml:133 Tuesday 22 February 2022 20:04:24 +0000 (0:00:00.685) 0:01:11.819 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--get-default-zone" ], "delta": "0:00:00.257057", "end": "2022-02-22 20:04:24.490831", "failed_when_result": false, "rc": 0, "start": "2022-02-22 20:04:24.233774" } STDOUT: dmz TASK [Verify that service http has been added to the default zone dmz] ********* task path: /tmp/tmpswr4cpvs/tests/tests_zone.yml:139 Tuesday 22 February 2022 20:04:25 +0000 (0:00:00.658) 0:01:12.478 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--zone=dmz", "--query-service=http" ], "delta": "0:00:00.253999", "end": "2022-02-22 20:04:25.153422", "failed_when_result": false, "rc": 0, "start": "2022-02-22 20:04:24.899423" } STDOUT: yes TASK [Reset to zone defaults] ************************************************** task path: /tmp/tmpswr4cpvs/tests/tests_zone.yml:148 Tuesday 22 February 2022 20:04:25 +0000 (0:00:00.661) 0:01:13.139 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": "firewall-cmd --permanent --load-zone-defaults=internal\nfirewall-cmd --permanent --load-zone-defaults=external\nfirewall-cmd --permanent --load-zone-defaults=trusted\nfirewall-cmd --reload\n", "delta": "0:00:01.190213", "end": "2022-02-22 20:04:26.750235", "rc": 0, "start": "2022-02-22 20:04:25.560022" } STDOUT: success success STDERR: Error: NO_DEFAULTS: external Error: NO_DEFAULTS: trusted META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-34.qcow2 : ok=24 changed=10 unreachable=0 failed=0 skipped=9 rescued=0 ignored=0 Tuesday 22 February 2022 20:04:27 +0000 (0:00:01.597) 0:01:14.736 ****** =============================================================================== linux-system-roles.firewall : Install firewalld ------------------------ 39.70s /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 linux-system-roles.firewall : Configure firewall ------------------------ 3.39s /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 ----- linux-system-roles.firewall : Install python3-firewall ------------------ 2.47s /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 linux-system-roles.firewall : Install firewalld ------------------------- 2.37s /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 linux-system-roles.firewall : Install firewalld ------------------------- 2.34s /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 linux-system-roles.firewall : Install python3-firewall ------------------ 2.31s /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 linux-system-roles.firewall : Install python3-firewall ------------------ 2.28s /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 linux-system-roles.firewall : Configure firewall ------------------------ 1.82s /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 ----- Reset to zone defaults -------------------------------------------------- 1.60s /tmp/tmpswr4cpvs/tests/tests_zone.yml:148 ------------------------------------- linux-system-roles.firewall : Enable and start firewalld service -------- 1.10s /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Gathering Facts --------------------------------------------------------- 1.06s /tmp/tmpswr4cpvs/tests/tests_zone.yml:1 --------------------------------------- Verify firewalld zone internal services --------------------------------- 0.78s /tmp/tmpswr4cpvs/tests/tests_zone.yml:104 ------------------------------------- Verify firewalld zone internal ports ------------------------------------ 0.69s /tmp/tmpswr4cpvs/tests/tests_zone.yml:111 ------------------------------------- Verify custom zone has masquerade added to it --------------------------- 0.69s /tmp/tmpswr4cpvs/tests/tests_zone.yml:127 ------------------------------------- Verify firewalld zone internal forward ports ---------------------------- 0.68s /tmp/tmpswr4cpvs/tests/tests_zone.yml:118 ------------------------------------- Verify that service http has been added to the default zone dmz --------- 0.66s /tmp/tmpswr4cpvs/tests/tests_zone.yml:139 ------------------------------------- Verify custom zone has masquerade added to it --------------------------- 0.66s /tmp/tmpswr4cpvs/tests/tests_zone.yml:133 ------------------------------------- linux-system-roles.firewall : Enable and start firewalld service -------- 0.55s /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 linux-system-roles.firewall : Enable and start firewalld service -------- 0.51s /tmp/tmpswr4cpvs/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Setup firewalld again --------------------------------------------------- 0.06s /tmp/tmpswr4cpvs/tests/tests_zone.yml:68 -------------------------------------- + cd /tmp/tmp670z923b/tests/firewall; TEST_SUBJECTS=/cache/fedora-34.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_firewall-70-e3071ca-fedora-34-defuazh6/artifacts ANSIBLE_COLLECTIONS_PATHS=/tmp/tmpc4lcl3ua:~/.ansible/collections:/usr/share/ansible/collections ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 --skip-tags=tests::nvme /tmp/tmpswr4cpvs/_setup.yml /tmp/tmp670z923b/tests/firewall/tests_ansible.yml ansible-playbook [core 2.12.2.post0] config file = None configured module search path = ['/home/runner/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.8/site-packages/ansible ansible collection location = /tmp/tmpc4lcl3ua:/home/runner/.ansible/collections:/usr/share/ansible/collections executable location = /usr/local/bin/ansible-playbook python version = 3.8.12 (default, Sep 21 2021, 00:10:52) [GCC 8.5.0 20210514 (Red Hat 8.5.0-3)] jinja version = 2.10.3 libyaml = True No config file found; using defaults Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmpswr4cpvs/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpswr4cpvs/_setup.yml:5 Tuesday 22 February 2022 20:04:44 +0000 (0:00:00.011) 0:00:00.011 ****** ok: [/cache/fedora-34.qcow2] => { "groups": { "all": [ "/cache/fedora-34.qcow2" ], "localhost": [ "/cache/fedora-34.qcow2" ], "subjects": [ "/cache/fedora-34.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpswr4cpvs/_setup.yml:6 Tuesday 22 February 2022 20:04:44 +0000 (0:00:00.016) 0:00:00.027 ****** skipping: [/cache/fedora-34.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-34.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 Tuesday 22 February 2022 20:04:44 +0000 (0:00:00.016) 0:00:00.044 ****** =============================================================================== debug ------------------------------------------------------------------- 0.02s /tmp/tmpswr4cpvs/_setup.yml:5 ------------------------------------------------- fail -------------------------------------------------------------------- 0.02s /tmp/tmpswr4cpvs/_setup.yml:6 ------------------------------------------------- [DEPRECATION WARNING]: "include" is deprecated, use include_tasks/import_tasks instead. This feature will be removed in version 2.16. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. statically imported: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml PLAYBOOK: tests_ansible.yml **************************************************** 1 plays in /tmp/tmp670z923b/tests/firewall/tests_ansible.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:1 Tuesday 22 February 2022 20:04:44 +0000 (0:00:00.047) 0:00:00.091 ****** ok: [/cache/fedora-34.qcow2] META: ran handlers TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Tuesday 22 February 2022 20:04:45 +0000 (0:00:01.048) 0:00:01.139 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "rc": 0, "results": [ "Installed: python3-decorator-4.4.2-4.fc34.noarch", "Installed: iptables-nft-1.8.7-8.fc34.x86_64", "Installed: libnftnl-1.1.9-2.fc34.x86_64", "Installed: nftables-1:0.9.8-3.fc34.x86_64", "Installed: gobject-introspection-1.68.0-4.fc34.x86_64", "Installed: ipset-7.11-1.fc34.x86_64", "Installed: python3-nftables-1:0.9.8-3.fc34.x86_64", "Installed: python3-gobject-base-3.40.1-1.fc34.x86_64", "Installed: python3-firewall-0.9.4-1.fc34.noarch", "Installed: ipset-libs-7.11-1.fc34.x86_64", "Installed: firewalld-0.9.4-1.fc34.noarch", "Installed: firewalld-filesystem-0.9.4-1.fc34.noarch", "Installed: python3-slip-0.6.4-22.fc34.noarch", "Installed: python3-slip-dbus-0.6.4-22.fc34.noarch" ] } TASK [fedora.linux_system_roles.firewall : Install python-firewall] ************ task path: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 Tuesday 22 February 2022 20:05:28 +0000 (0:00:42.337) 0:00:43.476 ****** skipping: [/cache/fedora-34.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Install python3-firewall] *********** task path: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:13 Tuesday 22 February 2022 20:05:28 +0000 (0:00:00.027) 0:00:43.504 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.firewall : Enable and start firewalld service] *** task path: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 Tuesday 22 February 2022 20:05:30 +0000 (0:00:02.506) 0:00:46.010 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "basic.target polkit.service sysinit.target system.slice dbus.socket dbus-broker.service", "AllowIsolate": "no", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target network-pre.target multi-user.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 iptables.service nftables.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 }", "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": "0", "IOSchedulingPriority": "0", "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": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7726", "LimitNPROCSoft": "7726", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7726", "LimitSIGPENDINGSoft": "7726", "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", "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", "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", "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": "2317", "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 [fedora.linux_system_roles.firewall : Configure firewall] ***************** task path: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Tuesday 22 February 2022 20:05:31 +0000 (0:00:01.081) 0:00:47.092 ****** META: role_complete for /cache/fedora-34.qcow2 TASK [Remove custom zone] ****************************************************** task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:14 Tuesday 22 February 2022 20:05:31 +0000 (0:00:00.023) 0:00:47.115 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--delete-zone=custom" ], "delta": "0:00:00.258683", "end": "2022-02-22 20:05:32.147839", "failed_when_result": false, "rc": 112, "start": "2022-02-22 20:05:31.889156" } STDERR: Error: INVALID_ZONE: custom MSG: non-zero return code TASK [Reset internal zone to defaults] ***************************************** task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:19 Tuesday 22 February 2022 20:05:32 +0000 (0:00:00.773) 0:00:47.889 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=internal" ], "delta": "0:00:00.253480", "end": "2022-02-22 20:05:32.769281", "failed_when_result": false, "rc": 22, "start": "2022-02-22 20:05:32.515801" } STDERR: Error: NO_DEFAULTS: internal MSG: non-zero return code TASK [Reset trusted zone to defaults] ****************************************** task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:24 Tuesday 22 February 2022 20:05:33 +0000 (0:00:00.624) 0:00:48.514 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=trusted" ], "delta": "0:00:00.249002", "end": "2022-02-22 20:05:33.385364", "failed_when_result": false, "rc": 22, "start": "2022-02-22 20:05:33.136362" } STDERR: Error: NO_DEFAULTS: trusted MSG: non-zero return code TASK [Reset dmz zone to defaults] ********************************************** task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:29 Tuesday 22 February 2022 20:05:33 +0000 (0:00:00.614) 0:00:49.128 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=dmz" ], "delta": "0:00:00.256532", "end": "2022-02-22 20:05:34.013577", "failed_when_result": false, "rc": 22, "start": "2022-02-22 20:05:33.757045" } STDERR: Error: NO_DEFAULTS: dmz MSG: non-zero return code TASK [Reset drop zone to defaults] ********************************************* task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:34 Tuesday 22 February 2022 20:05:34 +0000 (0:00:00.629) 0:00:49.758 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=drop" ], "delta": "0:00:00.265712", "end": "2022-02-22 20:05:34.653389", "failed_when_result": false, "rc": 22, "start": "2022-02-22 20:05:34.387677" } STDERR: Error: NO_DEFAULTS: drop MSG: non-zero return code TASK [Reset public zone to defaults] ******************************************* task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:39 Tuesday 22 February 2022 20:05:35 +0000 (0:00:00.640) 0:00:50.399 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=public" ], "delta": "0:00:00.247641", "end": "2022-02-22 20:05:35.269653", "failed_when_result": false, "rc": 22, "start": "2022-02-22 20:05:35.022012" } STDERR: Error: NO_DEFAULTS: public MSG: non-zero return code TASK [Reset default zone to defaults] ****************************************** task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:44 Tuesday 22 February 2022 20:05:35 +0000 (0:00:00.613) 0:00:51.012 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": "zone=$(firewall-cmd --get-default-zone)\nfirewall-cmd --permanent --load-zone-defaults=$zone\n", "delta": "0:00:00.507236", "end": "2022-02-22 20:05:36.150264", "failed_when_result": false, "rc": 22, "start": "2022-02-22 20:05:35.643028" } STDERR: Error: NO_DEFAULTS: public MSG: non-zero return code TASK [Create custom zone] ****************************************************** task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:52 Tuesday 22 February 2022 20:05:36 +0000 (0:00:00.883) 0:00:51.896 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--new-zone=custom" ], "delta": "0:00:00.246615", "end": "2022-02-22 20:05:36.786870", "failed_when_result": false, "rc": 0, "start": "2022-02-22 20:05:36.540255" } STDOUT: success TASK [Reload firewalld] ******************************************************** task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:57 Tuesday 22 February 2022 20:05:37 +0000 (0:00:00.635) 0:00:52.531 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--reload" ], "delta": "0:00:00.363162", "end": "2022-02-22 20:05:37.523144", "failed_when_result": false, "rc": 0, "start": "2022-02-22 20:05:37.159982" } STDOUT: success TASK [Permit traffic in default zone for https service] ************************ task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:64 Tuesday 22 February 2022 20:05:37 +0000 (0:00:00.738) 0:00:53.269 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [Permit traffic in default zone for https service, again] ***************** task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:72 Tuesday 22 February 2022 20:05:38 +0000 (0:00:00.678) 0:00:53.947 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Permit traffic in default zone on port 8081/tcp] ************************* task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:80 Tuesday 22 February 2022 20:05:39 +0000 (0:00:00.532) 0:00:54.480 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [Permit traffic in default zone on port 8081/tcp, again] ****************** task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:88 Tuesday 22 February 2022 20:05:39 +0000 (0:00:00.529) 0:00:55.009 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Allow port 161-162/udp in permanent default zone] ************************ task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:96 Tuesday 22 February 2022 20:05:40 +0000 (0:00:00.508) 0:00:55.518 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [Allow port 161-162/udp in permanent default zone, again] ***************** task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:104 Tuesday 22 February 2022 20:05:40 +0000 (0:00:00.516) 0:00:56.035 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Do not permit traffic in default zone on port 8081/tcp] ****************** task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:112 Tuesday 22 February 2022 20:05:41 +0000 (0:00:00.529) 0:00:56.565 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [Do not permit traffic in default zone on port 8081/tcp, again] *********** task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:120 Tuesday 22 February 2022 20:05:41 +0000 (0:00:00.553) 0:00:57.118 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Allow service http in permanent dmz zone] ******************************** task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:128 Tuesday 22 February 2022 20:05:42 +0000 (0:00:00.515) 0:00:57.634 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [Allow service http in permanent dmz zone, again] ************************* task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:137 Tuesday 22 February 2022 20:05:42 +0000 (0:00:00.525) 0:00:58.159 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Allow service ftp with limitation using rich rule in permanent default zone] *** task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:146 Tuesday 22 February 2022 20:05:43 +0000 (0:00:00.540) 0:00:58.700 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [Allow service ftp with limitation using rich rule in permanent default zone, again] *** task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:154 Tuesday 22 February 2022 20:05:43 +0000 (0:00:00.535) 0:00:59.235 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Allow source 192.0.2.0/24 in internal zone] ****************************** task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:162 Tuesday 22 February 2022 20:05:44 +0000 (0:00:00.537) 0:00:59.772 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [Allow source 192.0.2.0/24 in internal zone, again] *********************** task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:171 Tuesday 22 February 2022 20:05:45 +0000 (0:00:00.554) 0:01:00.327 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Allow interface eth2 in permanent trusted zone] ************************** task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:180 Tuesday 22 February 2022 20:05:45 +0000 (0:00:00.551) 0:01:00.878 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [Allow interface eth2 in permanent trusted zone, again] ******************* task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:189 Tuesday 22 February 2022 20:05:46 +0000 (0:00:00.578) 0:01:01.457 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Allow masquerading in permament dmz zone] ******************************** task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:198 Tuesday 22 February 2022 20:05:46 +0000 (0:00:00.592) 0:01:02.049 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [Allow masquerading in permament dmz zone, again] ************************* task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:207 Tuesday 22 February 2022 20:05:47 +0000 (0:00:00.528) 0:01:02.578 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Ensure permanent custom zone exists (no change)] ************************* task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:216 Tuesday 22 February 2022 20:05:47 +0000 (0:00:00.541) 0:01:03.119 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Ensure ICMP block inversion in permanent drop zone] ********************** task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:224 Tuesday 22 February 2022 20:05:48 +0000 (0:00:00.541) 0:01:03.660 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [Ensure ICMP block inversion in permanent drop zone, again] *************** task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:233 Tuesday 22 February 2022 20:05:48 +0000 (0:00:00.537) 0:01:04.198 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Block ICMP echo-request in permanent drop zone] ************************** task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:242 Tuesday 22 February 2022 20:05:49 +0000 (0:00:00.543) 0:01:04.742 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [Block ICMP echo-request in permanent drop zone, again] ******************* task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:251 Tuesday 22 February 2022 20:05:50 +0000 (0:00:00.557) 0:01:05.300 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Ensure default target in permanent internal zone (no change)] ************ task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:260 Tuesday 22 February 2022 20:05:50 +0000 (0:00:00.505) 0:01:05.805 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Ensure target ACCEPT in permanent internal zone] ************************* task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:269 Tuesday 22 February 2022 20:05:51 +0000 (0:00:00.534) 0:01:06.340 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [Ensure target ACCEPT in permanent internal zone, again] ****************** task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:278 Tuesday 22 February 2022 20:05:51 +0000 (0:00:00.898) 0:01:07.239 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Ensure default target in permanent internal zone] ************************ task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:287 Tuesday 22 February 2022 20:05:52 +0000 (0:00:00.599) 0:01:07.838 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [Ensure default target in permanent internal zone, again] ***************** task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:296 Tuesday 22 February 2022 20:05:53 +0000 (0:00:00.729) 0:01:08.568 ****** ok: [/cache/fedora-34.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/tmp670z923b/tests/firewall/tests_ansible.yml:305 Tuesday 22 February 2022 20:05:53 +0000 (0:00:00.510) 0:01:09.079 ****** [DEPRECATION WARNING]: Alias 'immediate' is deprecated. See the module docs for more information. This feature will be removed from ansible.posix in a release after 2021-09-23. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. changed: [/cache/fedora-34.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/tmp670z923b/tests/firewall/tests_ansible.yml:315 Tuesday 22 February 2022 20:05:54 +0000 (0:00:00.560) 0:01:09.639 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Firewalld custom zone] *************************************************** task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:325 Tuesday 22 February 2022 20:05:54 +0000 (0:00:00.535) 0:01:10.175 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true } TASK [assert firewalld custom zone] ******************************************** task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:333 Tuesday 22 February 2022 20:05:55 +0000 (0:00:00.662) 0:01:10.838 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false } MSG: All assertions passed TASK [Add masquerade to custom zone] ******************************************* task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:338 Tuesday 22 February 2022 20:05:55 +0000 (0:00:00.026) 0:01:10.864 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [Add masquerade to custom zone, again] ************************************ task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:348 Tuesday 22 February 2022 20:05:56 +0000 (0:00:00.551) 0:01:11.415 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [set default zone] ******************************************************** task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:358 Tuesday 22 February 2022 20:05:56 +0000 (0:00:00.560) 0:01:11.976 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [set default zone, again] ************************************************* task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:365 Tuesday 22 February 2022 20:05:57 +0000 (0:00:00.591) 0:01:12.567 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Remove custom zone] ****************************************************** task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:377 Tuesday 22 February 2022 20:05:57 +0000 (0:00:00.534) 0:01:13.102 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--delete-zone=custom" ], "delta": "0:00:00.249453", "end": "2022-02-22 20:05:57.975026", "failed_when_result": false, "rc": 0, "start": "2022-02-22 20:05:57.725573" } STDOUT: success TASK [Reset internal zone to defaults] ***************************************** task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:382 Tuesday 22 February 2022 20:05:58 +0000 (0:00:00.618) 0:01:13.720 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=internal" ], "delta": "0:00:00.247740", "end": "2022-02-22 20:05:58.597475", "failed_when_result": false, "rc": 0, "start": "2022-02-22 20:05:58.349735" } STDOUT: success TASK [Reset trusted zone to defaults] ****************************************** task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:387 Tuesday 22 February 2022 20:05:59 +0000 (0:00:00.620) 0:01:14.340 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=trusted" ], "delta": "0:00:00.257122", "end": "2022-02-22 20:05:59.227802", "failed_when_result": false, "rc": 0, "start": "2022-02-22 20:05:58.970680" } STDOUT: success TASK [Reset dmz zone to defaults] ********************************************** task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:392 Tuesday 22 February 2022 20:05:59 +0000 (0:00:00.634) 0:01:14.975 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=dmz" ], "delta": "0:00:00.248441", "end": "2022-02-22 20:05:59.859463", "failed_when_result": false, "rc": 0, "start": "2022-02-22 20:05:59.611022" } STDOUT: success TASK [Reset drop zone to defaults] ********************************************* task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:397 Tuesday 22 February 2022 20:06:00 +0000 (0:00:00.628) 0:01:15.603 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=drop" ], "delta": "0:00:00.251094", "end": "2022-02-22 20:06:00.496145", "failed_when_result": false, "rc": 0, "start": "2022-02-22 20:06:00.245051" } STDOUT: success TASK [Reset public zone to defaults] ******************************************* task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:402 Tuesday 22 February 2022 20:06:00 +0000 (0:00:00.635) 0:01:16.238 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=public" ], "delta": "0:00:00.250972", "end": "2022-02-22 20:06:01.119266", "failed_when_result": false, "rc": 0, "start": "2022-02-22 20:06:00.868294" } STDOUT: success TASK [Reset default zone to defaults] ****************************************** task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:407 Tuesday 22 February 2022 20:06:01 +0000 (0:00:00.627) 0:01:16.865 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": "firewall-cmd --permanent --load-zone-defaults=public\n", "delta": "0:00:00.260873", "end": "2022-02-22 20:06:01.767920", "failed_when_result": false, "rc": 22, "start": "2022-02-22 20:06:01.507047" } STDERR: Error: NO_DEFAULTS: public MSG: non-zero return code TASK [Reload firewalld] ******************************************************** task path: /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:414 Tuesday 22 February 2022 20:06:02 +0000 (0:00:00.649) 0:01:17.515 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--reload" ], "delta": "0:00:00.371373", "end": "2022-02-22 20:06:02.519938", "failed_when_result": false, "rc": 0, "start": "2022-02-22 20:06:02.148565" } STDOUT: success META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-34.qcow2 : ok=58 changed=36 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Tuesday 22 February 2022 20:06:03 +0000 (0:00:00.762) 0:01:18.278 ****** =============================================================================== fedora.linux_system_roles.firewall : Install firewalld ----------------- 42.34s /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 fedora.linux_system_roles.firewall : Install python3-firewall ----------- 2.51s /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:13 fedora.linux_system_roles.firewall : Enable and start firewalld service --- 1.08s /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 Gathering Facts --------------------------------------------------------- 1.05s /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:1 --------------------------- Ensure target ACCEPT in permanent internal zone ------------------------- 0.90s /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:269 ------------------------- Reset default zone to defaults ------------------------------------------ 0.88s /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:44 -------------------------- Remove custom zone ------------------------------------------------------ 0.77s /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:14 -------------------------- Reload firewalld -------------------------------------------------------- 0.76s /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:414 ------------------------- Reload firewalld -------------------------------------------------------- 0.74s /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:57 -------------------------- Ensure default target in permanent internal zone ------------------------ 0.73s /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:287 ------------------------- Permit traffic in default zone for https service ------------------------ 0.68s /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:64 -------------------------- Firewalld custom zone --------------------------------------------------- 0.66s /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:325 ------------------------- Reset default zone to defaults ------------------------------------------ 0.65s /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:407 ------------------------- Reset drop zone to defaults --------------------------------------------- 0.64s /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:34 -------------------------- Reset drop zone to defaults --------------------------------------------- 0.64s /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:397 ------------------------- Create custom zone ------------------------------------------------------ 0.64s /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:52 -------------------------- Reset trusted zone to defaults ------------------------------------------ 0.63s /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:387 ------------------------- Reset dmz zone to defaults ---------------------------------------------- 0.63s /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:29 -------------------------- Reset dmz zone to defaults ---------------------------------------------- 0.63s /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:392 ------------------------- Reset public zone to defaults ------------------------------------------- 0.63s /tmp/tmp670z923b/tests/firewall/tests_ansible.yml:402 ------------------------- + cd /tmp/tmp670z923b/tests/firewall; TEST_SUBJECTS=/cache/fedora-34.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_firewall-70-e3071ca-fedora-34-defuazh6/artifacts ANSIBLE_COLLECTIONS_PATHS=/tmp/tmpc4lcl3ua:~/.ansible/collections:/usr/share/ansible/collections ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 --skip-tags=tests::nvme /tmp/tmpswr4cpvs/_setup.yml /tmp/tmp670z923b/tests/firewall/tests_default.yml ansible-playbook [core 2.12.2.post0] config file = None configured module search path = ['/home/runner/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.8/site-packages/ansible ansible collection location = /tmp/tmpc4lcl3ua:/home/runner/.ansible/collections:/usr/share/ansible/collections executable location = /usr/local/bin/ansible-playbook python version = 3.8.12 (default, Sep 21 2021, 00:10:52) [GCC 8.5.0 20210514 (Red Hat 8.5.0-3)] jinja version = 2.10.3 libyaml = True No config file found; using defaults Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmpswr4cpvs/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpswr4cpvs/_setup.yml:5 Tuesday 22 February 2022 20:06:18 +0000 (0:00:00.011) 0:00:00.011 ****** ok: [/cache/fedora-34.qcow2] => { "groups": { "all": [ "/cache/fedora-34.qcow2" ], "localhost": [ "/cache/fedora-34.qcow2" ], "subjects": [ "/cache/fedora-34.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpswr4cpvs/_setup.yml:6 Tuesday 22 February 2022 20:06:18 +0000 (0:00:00.017) 0:00:00.029 ****** skipping: [/cache/fedora-34.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-34.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 Tuesday 22 February 2022 20:06:18 +0000 (0:00:00.016) 0:00:00.045 ****** =============================================================================== debug ------------------------------------------------------------------- 0.02s /tmp/tmpswr4cpvs/_setup.yml:5 ------------------------------------------------- fail -------------------------------------------------------------------- 0.02s /tmp/tmpswr4cpvs/_setup.yml:6 ------------------------------------------------- [DEPRECATION WARNING]: "include" is deprecated, use include_tasks/import_tasks instead. This feature will be removed in version 2.16. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. statically imported: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml PLAYBOOK: tests_default.yml **************************************************** 1 plays in /tmp/tmp670z923b/tests/firewall/tests_default.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp670z923b/tests/firewall/tests_default.yml:1 Tuesday 22 February 2022 20:06:18 +0000 (0:00:00.016) 0:00:00.061 ****** ok: [/cache/fedora-34.qcow2] META: ran handlers TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Tuesday 22 February 2022 20:06:19 +0000 (0:00:01.056) 0:00:01.118 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "rc": 0, "results": [ "Installed: python3-decorator-4.4.2-4.fc34.noarch", "Installed: iptables-nft-1.8.7-8.fc34.x86_64", "Installed: nftables-1:0.9.8-3.fc34.x86_64", "Installed: libnftnl-1.1.9-2.fc34.x86_64", "Installed: python3-nftables-1:0.9.8-3.fc34.x86_64", "Installed: gobject-introspection-1.68.0-4.fc34.x86_64", "Installed: ipset-7.11-1.fc34.x86_64", "Installed: python3-firewall-0.9.4-1.fc34.noarch", "Installed: python3-gobject-base-3.40.1-1.fc34.x86_64", "Installed: ipset-libs-7.11-1.fc34.x86_64", "Installed: firewalld-0.9.4-1.fc34.noarch", "Installed: firewalld-filesystem-0.9.4-1.fc34.noarch", "Installed: python3-slip-0.6.4-22.fc34.noarch", "Installed: python3-slip-dbus-0.6.4-22.fc34.noarch" ] } TASK [fedora.linux_system_roles.firewall : Install python-firewall] ************ task path: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 Tuesday 22 February 2022 20:07:01 +0000 (0:00:42.806) 0:00:43.924 ****** skipping: [/cache/fedora-34.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Install python3-firewall] *********** task path: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:13 Tuesday 22 February 2022 20:07:02 +0000 (0:00:00.026) 0:00:43.950 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.firewall : Enable and start firewalld service] *** task path: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 Tuesday 22 February 2022 20:07:03 +0000 (0:00:01.960) 0:00:45.911 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "sysinit.target dbus-broker.service basic.target dbus.socket polkit.service system.slice", "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": "nftables.service ip6tables.service iptables.service ebtables.service shutdown.target 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 }", "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": "0", "IOSchedulingPriority": "0", "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": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7726", "LimitNPROCSoft": "7726", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7726", "LimitSIGPENDINGSoft": "7726", "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", "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", "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", "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": "2317", "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 [fedora.linux_system_roles.firewall : Configure firewall] ***************** task path: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Tuesday 22 February 2022 20:07:05 +0000 (0:00:01.071) 0:00:46.982 ****** META: role_complete for /cache/fedora-34.qcow2 META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-34.qcow2 : ok=5 changed=2 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Tuesday 22 February 2022 20:07:05 +0000 (0:00:00.027) 0:00:47.010 ****** =============================================================================== fedora.linux_system_roles.firewall : Install firewalld ----------------- 42.81s /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 fedora.linux_system_roles.firewall : Install python3-firewall ----------- 1.96s /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:13 fedora.linux_system_roles.firewall : Enable and start firewalld service --- 1.07s /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 Gathering Facts --------------------------------------------------------- 1.06s /tmp/tmp670z923b/tests/firewall/tests_default.yml:1 --------------------------- fedora.linux_system_roles.firewall : Configure firewall ----------------- 0.03s /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 fedora.linux_system_roles.firewall : Install python-firewall ------------ 0.03s /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 debug ------------------------------------------------------------------- 0.02s /tmp/tmpswr4cpvs/_setup.yml:5 ------------------------------------------------- fail -------------------------------------------------------------------- 0.02s /tmp/tmpswr4cpvs/_setup.yml:6 ------------------------------------------------- + cd /tmp/tmp670z923b/tests/firewall; TEST_SUBJECTS=/cache/fedora-34.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_firewall-70-e3071ca-fedora-34-defuazh6/artifacts ANSIBLE_COLLECTIONS_PATHS=/tmp/tmpc4lcl3ua:~/.ansible/collections:/usr/share/ansible/collections ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 --skip-tags=tests::nvme /tmp/tmpswr4cpvs/_setup.yml /tmp/tmp670z923b/tests/firewall/tests_target.yml ansible-playbook [core 2.12.2.post0] config file = None configured module search path = ['/home/runner/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.8/site-packages/ansible ansible collection location = /tmp/tmpc4lcl3ua:/home/runner/.ansible/collections:/usr/share/ansible/collections executable location = /usr/local/bin/ansible-playbook python version = 3.8.12 (default, Sep 21 2021, 00:10:52) [GCC 8.5.0 20210514 (Red Hat 8.5.0-3)] jinja version = 2.10.3 libyaml = True No config file found; using defaults Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmpswr4cpvs/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpswr4cpvs/_setup.yml:5 Tuesday 22 February 2022 20:07:19 +0000 (0:00:00.010) 0:00:00.010 ****** ok: [/cache/fedora-34.qcow2] => { "groups": { "all": [ "/cache/fedora-34.qcow2" ], "localhost": [ "/cache/fedora-34.qcow2" ], "subjects": [ "/cache/fedora-34.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpswr4cpvs/_setup.yml:6 Tuesday 22 February 2022 20:07:19 +0000 (0:00:00.018) 0:00:00.029 ****** skipping: [/cache/fedora-34.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-34.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 Tuesday 22 February 2022 20:07:19 +0000 (0:00:00.018) 0:00:00.047 ****** =============================================================================== debug ------------------------------------------------------------------- 0.02s /tmp/tmpswr4cpvs/_setup.yml:5 ------------------------------------------------- fail -------------------------------------------------------------------- 0.02s /tmp/tmpswr4cpvs/_setup.yml:6 ------------------------------------------------- PLAYBOOK: tests_target.yml ***************************************************** 1 plays in /tmp/tmp670z923b/tests/firewall/tests_target.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp670z923b/tests/firewall/tests_target.yml:1 Tuesday 22 February 2022 20:07:19 +0000 (0:00:00.008) 0:00:00.055 ****** ok: [/cache/fedora-34.qcow2] META: ran handlers TASK [Call role to change target settings] ************************************* task path: /tmp/tmp670z923b/tests/firewall/tests_target.yml:3 Tuesday 22 February 2022 20:07:20 +0000 (0:00:01.066) 0:00:01.121 ****** [DEPRECATION WARNING]: "include" is deprecated, use include_tasks/import_tasks instead. This feature will be removed in version 2.16. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. statically imported: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Tuesday 22 February 2022 20:07:20 +0000 (0:00:00.028) 0:00:01.150 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "rc": 0, "results": [ "Installed: python3-decorator-4.4.2-4.fc34.noarch", "Installed: iptables-nft-1.8.7-8.fc34.x86_64", "Installed: nftables-1:0.9.8-3.fc34.x86_64", "Installed: libnftnl-1.1.9-2.fc34.x86_64", "Installed: python3-nftables-1:0.9.8-3.fc34.x86_64", "Installed: gobject-introspection-1.68.0-4.fc34.x86_64", "Installed: ipset-7.11-1.fc34.x86_64", "Installed: python3-firewall-0.9.4-1.fc34.noarch", "Installed: python3-gobject-base-3.40.1-1.fc34.x86_64", "Installed: ipset-libs-7.11-1.fc34.x86_64", "Installed: firewalld-0.9.4-1.fc34.noarch", "Installed: firewalld-filesystem-0.9.4-1.fc34.noarch", "Installed: python3-slip-0.6.4-22.fc34.noarch", "Installed: python3-slip-dbus-0.6.4-22.fc34.noarch" ] } TASK [fedora.linux_system_roles.firewall : Install python-firewall] ************ task path: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 Tuesday 22 February 2022 20:08:09 +0000 (0:00:48.877) 0:00:50.028 ****** skipping: [/cache/fedora-34.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Install python3-firewall] *********** task path: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:13 Tuesday 22 February 2022 20:08:09 +0000 (0:00:00.024) 0:00:50.053 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.firewall : Enable and start firewalld service] *** task path: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 Tuesday 22 February 2022 20:08:11 +0000 (0:00:01.989) 0:00:52.042 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "basic.target sysinit.target system.slice polkit.service dbus.socket dbus-broker.service", "AllowIsolate": "no", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "network-pre.target shutdown.target multi-user.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": "ipset.service shutdown.target nftables.service iptables.service ip6tables.service 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 }", "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": "0", "IOSchedulingPriority": "0", "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": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7726", "LimitNPROCSoft": "7726", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7726", "LimitSIGPENDINGSoft": "7726", "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", "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", "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", "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": "2317", "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 [fedora.linux_system_roles.firewall : Configure firewall] ***************** task path: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Tuesday 22 February 2022 20:08:12 +0000 (0:00:01.125) 0:00:53.168 ****** ok: [/cache/fedora-34.qcow2] => (item={'set_default_zone': 'public', 'state': 'enabled', 'permanent': True}) => { "ansible_loop_var": "item", "changed": false, "item": { "permanent": true, "set_default_zone": "public", "state": "enabled" } } changed: [/cache/fedora-34.qcow2] => (item={'target': 'DROP', 'state': 'enabled', 'permanent': True}) => { "ansible_loop_var": "item", "changed": true, "item": { "permanent": true, "state": "enabled", "target": "DROP" } } META: role_complete for /cache/fedora-34.qcow2 TASK [Get target setting] ****************************************************** task path: /tmp/tmp670z923b/tests/firewall/tests_target.yml:15 Tuesday 22 February 2022 20:08:14 +0000 (0:00:01.428) 0:00:54.596 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "cmd": [ "firewall-cmd", "--info-zone=public" ], "delta": "0:00:00.256504", "end": "2022-02-22 20:08:14.251966", "rc": 0, "start": "2022-02-22 20:08:13.995462" } STDOUT: public (active) target: DROP icmp-block-inversion: no interfaces: eth0 sources: services: dhcpv6-client mdns ssh ports: protocols: forward: no masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: TASK [Verify target setting] *************************************************** task path: /tmp/tmp670z923b/tests/firewall/tests_target.yml:20 Tuesday 22 February 2022 20:08:14 +0000 (0:00:00.774) 0:00:55.371 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false } MSG: All assertions passed TASK [Call role to reset target settings] ************************************** task path: /tmp/tmp670z923b/tests/firewall/tests_target.yml:26 Tuesday 22 February 2022 20:08:14 +0000 (0:00:00.021) 0:00:55.393 ****** statically imported: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Tuesday 22 February 2022 20:08:14 +0000 (0:00:00.029) 0:00:55.423 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.firewall : Install python-firewall] ************ task path: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 Tuesday 22 February 2022 20:08:16 +0000 (0:00:02.042) 0:00:57.466 ****** skipping: [/cache/fedora-34.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Install python3-firewall] *********** task path: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:13 Tuesday 22 February 2022 20:08:17 +0000 (0:00:00.023) 0:00:57.489 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.firewall : Enable and start firewalld service] *** task path: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 Tuesday 22 February 2022 20:08:18 +0000 (0:00:01.889) 0:00:59.379 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2022-02-22 20:08:12 UTC", "ActiveEnterTimestampMonotonic": "64064870", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "basic.target sysinit.target system.slice polkit.service dbus.socket dbus-broker.service", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-02-22 20:08:11 UTC", "AssertTimestampMonotonic": "63809669", "Before": "network-pre.target shutdown.target multi-user.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": "724346000", "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-02-22 20:08:11 UTC", "ConditionTimestampMonotonic": "63809667", "ConfigurationDirectoryMode": "0755", "Conflicts": "ipset.service shutdown.target nftables.service iptables.service ip6tables.service 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": "7644", "ExecMainStartTimestamp": "Tue 2022-02-22 20:08:11 UTC", "ExecMainStartTimestampMonotonic": "63811355", "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-02-22 20:08:11 UTC] ; stop_time=[n/a] ; pid=7644 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; flags= ; start_time=[Tue 2022-02-22 20:08:11 UTC] ; stop_time=[n/a] ; pid=7644 ; code=(null) ; status=0/0 }", "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": "0", "IOSchedulingPriority": "0", "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-02-22 20:08:11 UTC", "InactiveExitTimestampMonotonic": "63811639", "InvocationID": "afbda95481a746038dd5f7d58dbb8475", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7726", "LimitNPROCSoft": "7726", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7726", "LimitSIGPENDINGSoft": "7726", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "7644", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryCurrent": "28114944", "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", "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", "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-02-22 20:08:12 UTC", "StateChangeTimestampMonotonic": "64064870", "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": "2317", "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 [fedora.linux_system_roles.firewall : Configure firewall] ***************** task path: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Tuesday 22 February 2022 20:08:19 +0000 (0:00:00.509) 0:00:59.889 ****** changed: [/cache/fedora-34.qcow2] => (item={'target': 'DROP', 'state': 'absent', 'permanent': True}) => { "ansible_loop_var": "item", "changed": true, "item": { "permanent": true, "state": "absent", "target": "DROP" } } META: role_complete for /cache/fedora-34.qcow2 TASK [Get target setting] ****************************************************** task path: /tmp/tmp670z923b/tests/firewall/tests_target.yml:35 Tuesday 22 February 2022 20:08:20 +0000 (0:00:00.686) 0:01:00.575 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "cmd": [ "firewall-cmd", "--info-zone=public" ], "delta": "0:00:00.261841", "end": "2022-02-22 20:08:20.098329", "rc": 0, "start": "2022-02-22 20:08:19.836488" } STDOUT: public (active) target: default icmp-block-inversion: no interfaces: eth0 sources: services: dhcpv6-client mdns ssh ports: protocols: forward: no masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: TASK [Verify target setting was reset] ***************************************** task path: /tmp/tmp670z923b/tests/firewall/tests_target.yml:40 Tuesday 22 February 2022 20:08:20 +0000 (0:00:00.649) 0:01:01.225 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false } MSG: All assertions passed META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-34.qcow2 : ok=14 changed=4 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 Tuesday 22 February 2022 20:08:20 +0000 (0:00:00.026) 0:01:01.252 ****** =============================================================================== fedora.linux_system_roles.firewall : Install firewalld ----------------- 48.88s /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 fedora.linux_system_roles.firewall : Install firewalld ------------------ 2.04s /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 fedora.linux_system_roles.firewall : Install python3-firewall ----------- 1.99s /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:13 fedora.linux_system_roles.firewall : Install python3-firewall ----------- 1.89s /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:13 fedora.linux_system_roles.firewall : Configure firewall ----------------- 1.43s /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 fedora.linux_system_roles.firewall : Enable and start firewalld service --- 1.13s /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 Gathering Facts --------------------------------------------------------- 1.07s /tmp/tmp670z923b/tests/firewall/tests_target.yml:1 ---------------------------- Get target setting ------------------------------------------------------ 0.77s /tmp/tmp670z923b/tests/firewall/tests_target.yml:15 --------------------------- fedora.linux_system_roles.firewall : Configure firewall ----------------- 0.69s /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Get target setting ------------------------------------------------------ 0.65s /tmp/tmp670z923b/tests/firewall/tests_target.yml:35 --------------------------- fedora.linux_system_roles.firewall : Enable and start firewalld service --- 0.51s /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 Call role to reset target settings -------------------------------------- 0.03s /tmp/tmp670z923b/tests/firewall/tests_target.yml:26 --------------------------- Call role to change target settings ------------------------------------- 0.03s /tmp/tmp670z923b/tests/firewall/tests_target.yml:3 ---------------------------- Verify target setting was reset ----------------------------------------- 0.03s /tmp/tmp670z923b/tests/firewall/tests_target.yml:40 --------------------------- fedora.linux_system_roles.firewall : Install python-firewall ------------ 0.02s /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 fedora.linux_system_roles.firewall : Install python-firewall ------------ 0.02s /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 Verify target setting --------------------------------------------------- 0.02s /tmp/tmp670z923b/tests/firewall/tests_target.yml:20 --------------------------- debug ------------------------------------------------------------------- 0.02s /tmp/tmpswr4cpvs/_setup.yml:5 ------------------------------------------------- fail -------------------------------------------------------------------- 0.02s /tmp/tmpswr4cpvs/_setup.yml:6 ------------------------------------------------- + cd /tmp/tmp670z923b/tests/firewall; TEST_SUBJECTS=/cache/fedora-34.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_firewall-70-e3071ca-fedora-34-defuazh6/artifacts ANSIBLE_COLLECTIONS_PATHS=/tmp/tmpc4lcl3ua:~/.ansible/collections:/usr/share/ansible/collections ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 --skip-tags=tests::nvme /tmp/tmpswr4cpvs/_setup.yml /tmp/tmp670z923b/tests/firewall/tests_zone.yml ansible-playbook [core 2.12.2.post0] config file = None configured module search path = ['/home/runner/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.8/site-packages/ansible ansible collection location = /tmp/tmpc4lcl3ua:/home/runner/.ansible/collections:/usr/share/ansible/collections executable location = /usr/local/bin/ansible-playbook python version = 3.8.12 (default, Sep 21 2021, 00:10:52) [GCC 8.5.0 20210514 (Red Hat 8.5.0-3)] jinja version = 2.10.3 libyaml = True No config file found; using defaults Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmpswr4cpvs/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmpswr4cpvs/_setup.yml:5 Tuesday 22 February 2022 20:08:35 +0000 (0:00:00.012) 0:00:00.012 ****** ok: [/cache/fedora-34.qcow2] => { "groups": { "all": [ "/cache/fedora-34.qcow2" ], "localhost": [ "/cache/fedora-34.qcow2" ], "subjects": [ "/cache/fedora-34.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmpswr4cpvs/_setup.yml:6 Tuesday 22 February 2022 20:08:35 +0000 (0:00:00.017) 0:00:00.029 ****** skipping: [/cache/fedora-34.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-34.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 Tuesday 22 February 2022 20:08:35 +0000 (0:00:00.018) 0:00:00.047 ****** =============================================================================== fail -------------------------------------------------------------------- 0.02s /tmp/tmpswr4cpvs/_setup.yml:6 ------------------------------------------------- debug ------------------------------------------------------------------- 0.02s /tmp/tmpswr4cpvs/_setup.yml:5 ------------------------------------------------- PLAYBOOK: tests_zone.yml ******************************************************* 1 plays in /tmp/tmp670z923b/tests/firewall/tests_zone.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp670z923b/tests/firewall/tests_zone.yml:1 Tuesday 22 February 2022 20:08:35 +0000 (0:00:00.012) 0:00:00.060 ****** ok: [/cache/fedora-34.qcow2] META: ran handlers TASK [include_role : fedora.linux_system_roles.firewall] *********************** task path: /tmp/tmp670z923b/tests/firewall/tests_zone.yml:6 Tuesday 22 February 2022 20:08:36 +0000 (0:00:01.052) 0:00:01.113 ****** [DEPRECATION WARNING]: "include" is deprecated, use include_tasks/import_tasks instead. This feature will be removed in version 2.16. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. statically imported: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Tuesday 22 February 2022 20:08:36 +0000 (0:00:00.028) 0:00:01.141 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "rc": 0, "results": [ "Installed: python3-decorator-4.4.2-4.fc34.noarch", "Installed: iptables-nft-1.8.7-8.fc34.x86_64", "Installed: nftables-1:0.9.8-3.fc34.x86_64", "Installed: libnftnl-1.1.9-2.fc34.x86_64", "Installed: python3-nftables-1:0.9.8-3.fc34.x86_64", "Installed: gobject-introspection-1.68.0-4.fc34.x86_64", "Installed: ipset-7.11-1.fc34.x86_64", "Installed: python3-firewall-0.9.4-1.fc34.noarch", "Installed: python3-gobject-base-3.40.1-1.fc34.x86_64", "Installed: ipset-libs-7.11-1.fc34.x86_64", "Installed: firewalld-0.9.4-1.fc34.noarch", "Installed: firewalld-filesystem-0.9.4-1.fc34.noarch", "Installed: python3-slip-0.6.4-22.fc34.noarch", "Installed: python3-slip-dbus-0.6.4-22.fc34.noarch" ] } TASK [fedora.linux_system_roles.firewall : Install python-firewall] ************ task path: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 Tuesday 22 February 2022 20:09:16 +0000 (0:00:39.913) 0:00:41.055 ****** skipping: [/cache/fedora-34.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Install python3-firewall] *********** task path: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:13 Tuesday 22 February 2022 20:09:16 +0000 (0:00:00.024) 0:00:41.079 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.firewall : Enable and start firewalld service] *** task path: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 Tuesday 22 February 2022 20:09:18 +0000 (0:00:02.033) 0:00:43.112 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "system.slice sysinit.target polkit.service dbus-broker.service dbus.socket basic.target", "AllowIsolate": "no", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "network-pre.target shutdown.target multi-user.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": "shutdown.target nftables.service ebtables.service ipset.service ip6tables.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 }", "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": "0", "IOSchedulingPriority": "0", "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": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7726", "LimitNPROCSoft": "7726", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7726", "LimitSIGPENDINGSoft": "7726", "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", "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", "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", "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": "2317", "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 [fedora.linux_system_roles.firewall : Configure firewall] ***************** task path: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Tuesday 22 February 2022 20:09:19 +0000 (0:00:01.069) 0:00:44.182 ****** META: role_complete for /cache/fedora-34.qcow2 TASK [Verify used firewalld zones] ********************************************* task path: /tmp/tmp670z923b/tests/firewall/tests_zone.yml:14 Tuesday 22 February 2022 20:09:19 +0000 (0:00:00.019) 0:00:44.202 ****** statically imported: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Tuesday 22 February 2022 20:09:19 +0000 (0:00:00.047) 0:00:44.249 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.firewall : Install python-firewall] ************ task path: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 Tuesday 22 February 2022 20:09:21 +0000 (0:00:01.996) 0:00:46.246 ****** skipping: [/cache/fedora-34.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Install python3-firewall] *********** task path: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:13 Tuesday 22 February 2022 20:09:21 +0000 (0:00:00.036) 0:00:46.283 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.firewall : Enable and start firewalld service] *** task path: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 Tuesday 22 February 2022 20:09:23 +0000 (0:00:01.884) 0:00:48.167 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2022-02-22 20:09:19 UTC", "ActiveEnterTimestampMonotonic": "55065469", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "system.slice sysinit.target polkit.service dbus-broker.service dbus.socket basic.target", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-02-22 20:09:18 UTC", "AssertTimestampMonotonic": "54809561", "Before": "network-pre.target shutdown.target multi-user.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": "437969000", "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-02-22 20:09:18 UTC", "ConditionTimestampMonotonic": "54809559", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target nftables.service ebtables.service ipset.service ip6tables.service iptables.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": "7476", "ExecMainStartTimestamp": "Tue 2022-02-22 20:09:18 UTC", "ExecMainStartTimestampMonotonic": "54810840", "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-02-22 20:09:18 UTC] ; stop_time=[n/a] ; pid=7476 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; flags= ; start_time=[Tue 2022-02-22 20:09:18 UTC] ; stop_time=[n/a] ; pid=7476 ; code=(null) ; status=0/0 }", "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": "0", "IOSchedulingPriority": "0", "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-02-22 20:09:18 UTC", "InactiveExitTimestampMonotonic": "54811126", "InvocationID": "05c5cd3a6b5a4971bb80cb60f280b057", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7726", "LimitNPROCSoft": "7726", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7726", "LimitSIGPENDINGSoft": "7726", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "7476", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryCurrent": "25358336", "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", "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", "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-02-22 20:09:19 UTC", "StateChangeTimestampMonotonic": "55065469", "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": "2317", "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 [fedora.linux_system_roles.firewall : Configure firewall] ***************** task path: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Tuesday 22 February 2022 20:09:23 +0000 (0:00:00.537) 0:00:48.705 ****** ok: [/cache/fedora-34.qcow2] => (item={'zone': 'internal', 'state': 'enabled'}) => { "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "internal" } } ok: [/cache/fedora-34.qcow2] => (item={'zone': 'external', 'state': 'enabled'}) => { "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "external" } } ok: [/cache/fedora-34.qcow2] => (item={'zone': 'trusted', 'state': 'enabled'}) => { "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "trusted" } } META: role_complete for /cache/fedora-34.qcow2 TASK [Fail on missing zones] *************************************************** task path: /tmp/tmp670z923b/tests/firewall/tests_zone.yml:26 Tuesday 22 February 2022 20:09:25 +0000 (0:00:01.713) 0:00:50.419 ****** skipping: [/cache/fedora-34.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Setup firewalld] ********************************************************* task path: /tmp/tmp670z923b/tests/firewall/tests_zone.yml:32 Tuesday 22 February 2022 20:09:25 +0000 (0:00:00.030) 0:00:50.450 ****** statically imported: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Tuesday 22 February 2022 20:09:25 +0000 (0:00:00.050) 0:00:50.500 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.firewall : Install python-firewall] ************ task path: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 Tuesday 22 February 2022 20:09:27 +0000 (0:00:01.858) 0:00:52.359 ****** skipping: [/cache/fedora-34.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Install python3-firewall] *********** task path: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:13 Tuesday 22 February 2022 20:09:27 +0000 (0:00:00.033) 0:00:52.392 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.firewall : Enable and start firewalld service] *** task path: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 Tuesday 22 February 2022 20:09:29 +0000 (0:00:01.872) 0:00:54.265 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2022-02-22 20:09:19 UTC", "ActiveEnterTimestampMonotonic": "55065469", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "system.slice sysinit.target polkit.service dbus-broker.service dbus.socket basic.target", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-02-22 20:09:18 UTC", "AssertTimestampMonotonic": "54809561", "Before": "network-pre.target shutdown.target multi-user.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": "578172000", "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-02-22 20:09:18 UTC", "ConditionTimestampMonotonic": "54809559", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target nftables.service ebtables.service ipset.service ip6tables.service iptables.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": "7476", "ExecMainStartTimestamp": "Tue 2022-02-22 20:09:18 UTC", "ExecMainStartTimestampMonotonic": "54810840", "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-02-22 20:09:18 UTC] ; stop_time=[n/a] ; pid=7476 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; flags= ; start_time=[Tue 2022-02-22 20:09:18 UTC] ; stop_time=[n/a] ; pid=7476 ; code=(null) ; status=0/0 }", "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": "0", "IOSchedulingPriority": "0", "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-02-22 20:09:18 UTC", "InactiveExitTimestampMonotonic": "54811126", "InvocationID": "05c5cd3a6b5a4971bb80cb60f280b057", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7726", "LimitNPROCSoft": "7726", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7726", "LimitSIGPENDINGSoft": "7726", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "7476", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryCurrent": "26619904", "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", "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", "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-02-22 20:09:19 UTC", "StateChangeTimestampMonotonic": "55065469", "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": "2317", "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 [fedora.linux_system_roles.firewall : Configure firewall] ***************** task path: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Tuesday 22 February 2022 20:09:30 +0000 (0:00:00.532) 0:00:54.797 ****** changed: [/cache/fedora-34.qcow2] => (item={'zone': 'internal', 'service': ['tftp', 'ftp'], 'port': ['443/tcp', '443/udp'], 'forward_port': ['447/tcp;;1.2.3.4', '448/tcp;;1.2.3.5'], 'state': 'enabled'}) => { "ansible_loop_var": "item", "changed": true, "item": { "forward_port": [ "447/tcp;;1.2.3.4", "448/tcp;;1.2.3.5" ], "port": [ "443/tcp", "443/udp" ], "service": [ "tftp", "ftp" ], "state": "enabled", "zone": "internal" } } ok: [/cache/fedora-34.qcow2] => (item={'zone': 'internal', 'service': ['tftp', 'ftp'], 'port': ['443/tcp', '443/udp'], 'forward_port': ['447/tcp;;1.2.3.4', '448/tcp;;1.2.3.5'], 'state': 'enabled'}) => { "ansible_loop_var": "item", "changed": false, "item": { "forward_port": [ "447/tcp;;1.2.3.4", "448/tcp;;1.2.3.5" ], "port": [ "443/tcp", "443/udp" ], "service": [ "tftp", "ftp" ], "state": "enabled", "zone": "internal" } } changed: [/cache/fedora-34.qcow2] => (item={'zone': 'customzone', 'permanent': True, 'state': 'present'}) => { "ansible_loop_var": "item", "changed": true, "item": { "permanent": true, "state": "present", "zone": "customzone" } } changed: [/cache/fedora-34.qcow2] => (item={'zone': 'customzone', 'permanent': True, 'masquerade': True, 'state': 'enabled'}) => { "ansible_loop_var": "item", "changed": true, "item": { "masquerade": true, "permanent": true, "state": "enabled", "zone": "customzone" } } changed: [/cache/fedora-34.qcow2] => (item={'set_default_zone': 'dmz', 'state': 'enabled'}) => { "ansible_loop_var": "item", "changed": true, "item": { "set_default_zone": "dmz", "state": "enabled" } } changed: [/cache/fedora-34.qcow2] => (item={'service': 'http', 'state': 'enabled'}) => { "ansible_loop_var": "item", "changed": true, "item": { "service": "http", "state": "enabled" } } META: role_complete for /cache/fedora-34.qcow2 TASK [Fail if no changes are done] ********************************************* task path: /tmp/tmp670z923b/tests/firewall/tests_zone.yml:60 Tuesday 22 February 2022 20:09:33 +0000 (0:00:03.367) 0:00:58.165 ****** skipping: [/cache/fedora-34.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Setup firewalld again] *************************************************** task path: /tmp/tmp670z923b/tests/firewall/tests_zone.yml:66 Tuesday 22 February 2022 20:09:33 +0000 (0:00:00.033) 0:00:58.198 ****** TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Tuesday 22 February 2022 20:09:33 +0000 (0:00:00.045) 0:00:58.244 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.firewall : Install python-firewall] ************ task path: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 Tuesday 22 February 2022 20:09:35 +0000 (0:00:01.867) 0:01:00.111 ****** skipping: [/cache/fedora-34.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Install python3-firewall] *********** task path: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:13 Tuesday 22 February 2022 20:09:35 +0000 (0:00:00.040) 0:01:00.152 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [fedora.linux_system_roles.firewall : Enable and start firewalld service] *** task path: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 Tuesday 22 February 2022 20:09:37 +0000 (0:00:01.866) 0:01:02.019 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2022-02-22 20:09:19 UTC", "ActiveEnterTimestampMonotonic": "55065469", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "system.slice sysinit.target polkit.service dbus-broker.service dbus.socket basic.target", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-02-22 20:09:18 UTC", "AssertTimestampMonotonic": "54809561", "Before": "network-pre.target shutdown.target multi-user.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": "1017949000", "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-02-22 20:09:18 UTC", "ConditionTimestampMonotonic": "54809559", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target nftables.service ebtables.service ipset.service ip6tables.service iptables.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": "7476", "ExecMainStartTimestamp": "Tue 2022-02-22 20:09:18 UTC", "ExecMainStartTimestampMonotonic": "54810840", "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-02-22 20:09:18 UTC] ; stop_time=[n/a] ; pid=7476 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; flags= ; start_time=[Tue 2022-02-22 20:09:18 UTC] ; stop_time=[n/a] ; pid=7476 ; code=(null) ; status=0/0 }", "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": "0", "IOSchedulingPriority": "0", "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-02-22 20:09:18 UTC", "InactiveExitTimestampMonotonic": "54811126", "InvocationID": "05c5cd3a6b5a4971bb80cb60f280b057", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7726", "LimitNPROCSoft": "7726", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7726", "LimitSIGPENDINGSoft": "7726", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "7476", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryCurrent": "28348416", "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", "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", "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-02-22 20:09:19 UTC", "StateChangeTimestampMonotonic": "55065469", "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": "2317", "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 [fedora.linux_system_roles.firewall : Configure firewall] ***************** task path: /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Tuesday 22 February 2022 20:09:37 +0000 (0:00:00.522) 0:01:02.541 ****** ok: [/cache/fedora-34.qcow2] => (item={'zone': 'internal', 'service': ['tftp', 'ftp'], 'port': ['443/tcp', '443/udp'], 'forward_port': ['447/tcp;;1.2.3.4', '448/tcp;;1.2.3.5'], 'state': 'enabled'}) => { "ansible_loop_var": "item", "changed": false, "item": { "forward_port": [ "447/tcp;;1.2.3.4", "448/tcp;;1.2.3.5" ], "port": [ "443/tcp", "443/udp" ], "service": [ "tftp", "ftp" ], "state": "enabled", "zone": "internal" } } ok: [/cache/fedora-34.qcow2] => (item={'zone': 'internal', 'service': ['tftp', 'ftp'], 'port': ['443/tcp', '443/udp'], 'forward_port': ['447/tcp;;1.2.3.4', '448/tcp;;1.2.3.5'], 'state': 'enabled'}) => { "ansible_loop_var": "item", "changed": false, "item": { "forward_port": [ "447/tcp;;1.2.3.4", "448/tcp;;1.2.3.5" ], "port": [ "443/tcp", "443/udp" ], "service": [ "tftp", "ftp" ], "state": "enabled", "zone": "internal" } } ok: [/cache/fedora-34.qcow2] => (item={'zone': 'customzone', 'permanent': True, 'state': 'present'}) => { "ansible_loop_var": "item", "changed": false, "item": { "permanent": true, "state": "present", "zone": "customzone" } } ok: [/cache/fedora-34.qcow2] => (item={'zone': 'customzone', 'permanent': True, 'masquerade': True, 'state': 'enabled'}) => { "ansible_loop_var": "item", "changed": false, "item": { "masquerade": true, "permanent": true, "state": "enabled", "zone": "customzone" } } ok: [/cache/fedora-34.qcow2] => (item={'set_default_zone': 'dmz', 'state': 'enabled'}) => { "ansible_loop_var": "item", "changed": false, "item": { "set_default_zone": "dmz", "state": "enabled" } } ok: [/cache/fedora-34.qcow2] => (item={'service': 'http', 'state': 'enabled'}) => { "ansible_loop_var": "item", "changed": false, "item": { "service": "http", "state": "enabled" } } META: role_complete for /cache/fedora-34.qcow2 TASK [Fail on newly changes] *************************************************** task path: /tmp/tmp670z923b/tests/firewall/tests_zone.yml:94 Tuesday 22 February 2022 20:09:40 +0000 (0:00:03.186) 0:01:05.727 ****** skipping: [/cache/fedora-34.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify firewalld zone internal services] ********************************* task path: /tmp/tmp670z923b/tests/firewall/tests_zone.yml:100 Tuesday 22 February 2022 20:09:40 +0000 (0:00:00.032) 0:01:05.760 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-services" ], "delta": "0:00:00.257732", "end": "2022-02-22 20:09:41.404551", "failed_when_result": false, "rc": 0, "start": "2022-02-22 20:09:41.146819" } STDOUT: dhcpv6-client ftp mdns samba-client ssh tftp TASK [Verify firewalld zone internal ports] ************************************ task path: /tmp/tmp670z923b/tests/firewall/tests_zone.yml:105 Tuesday 22 February 2022 20:09:41 +0000 (0:00:00.781) 0:01:06.542 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-ports" ], "delta": "0:00:00.253176", "end": "2022-02-22 20:09:42.052833", "failed_when_result": false, "rc": 0, "start": "2022-02-22 20:09:41.799657" } STDOUT: 443/tcp 443/udp TASK [Verify firewalld zone internal forward ports] **************************** task path: /tmp/tmp670z923b/tests/firewall/tests_zone.yml:110 Tuesday 22 February 2022 20:09:42 +0000 (0:00:00.650) 0:01:07.192 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-forward-ports" ], "delta": "0:00:00.275316", "end": "2022-02-22 20:09:42.722791", "failed_when_result": false, "rc": 0, "start": "2022-02-22 20:09:42.447475" } 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/tmp670z923b/tests/firewall/tests_zone.yml:115 Tuesday 22 February 2022 20:09:43 +0000 (0:00:00.674) 0:01:07.866 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=customzone", "--query-masquerade" ], "delta": "0:00:00.278255", "end": "2022-02-22 20:09:43.412600", "failed_when_result": false, "rc": 0, "start": "2022-02-22 20:09:43.134345" } STDOUT: yes TASK [Verify custom zone has masquerade added to it] *************************** task path: /tmp/tmp670z923b/tests/firewall/tests_zone.yml:120 Tuesday 22 February 2022 20:09:43 +0000 (0:00:00.686) 0:01:08.553 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--get-default-zone" ], "delta": "0:00:00.242743", "end": "2022-02-22 20:09:44.051677", "failed_when_result": false, "rc": 0, "start": "2022-02-22 20:09:43.808934" } STDOUT: dmz TASK [Verify that service http has been added to the default zone dmz] ********* task path: /tmp/tmp670z923b/tests/firewall/tests_zone.yml:125 Tuesday 22 February 2022 20:09:44 +0000 (0:00:00.640) 0:01:09.194 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--zone=dmz", "--query-service=http" ], "delta": "0:00:00.236969", "end": "2022-02-22 20:09:44.674955", "failed_when_result": false, "rc": 0, "start": "2022-02-22 20:09:44.437986" } STDOUT: yes TASK [Reset to zone defaults] ************************************************** task path: /tmp/tmp670z923b/tests/firewall/tests_zone.yml:133 Tuesday 22 February 2022 20:09:45 +0000 (0:00:00.619) 0:01:09.813 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": "firewall-cmd --permanent --load-zone-defaults=internal\nfirewall-cmd --permanent --load-zone-defaults=external\nfirewall-cmd --permanent --load-zone-defaults=trusted\nfirewall-cmd --reload\n", "delta": "0:00:01.143368", "end": "2022-02-22 20:09:46.194731", "rc": 0, "start": "2022-02-22 20:09:45.051363" } STDOUT: success success STDERR: Error: NO_DEFAULTS: external Error: NO_DEFAULTS: trusted META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-34.qcow2 : ok=24 changed=10 unreachable=0 failed=0 skipped=9 rescued=0 ignored=0 Tuesday 22 February 2022 20:09:46 +0000 (0:00:01.538) 0:01:11.352 ****** =============================================================================== fedora.linux_system_roles.firewall : Install firewalld ----------------- 39.91s /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 fedora.linux_system_roles.firewall : Configure firewall ----------------- 3.19s /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 fedora.linux_system_roles.firewall : Install python3-firewall ----------- 2.03s /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:13 fedora.linux_system_roles.firewall : Install firewalld ------------------ 2.00s /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 fedora.linux_system_roles.firewall : Install python3-firewall ----------- 1.88s /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:13 fedora.linux_system_roles.firewall : Install firewalld ------------------ 1.87s /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 fedora.linux_system_roles.firewall : Install python3-firewall ----------- 1.87s /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:13 fedora.linux_system_roles.firewall : Configure firewall ----------------- 1.71s /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Reset to zone defaults -------------------------------------------------- 1.54s /tmp/tmp670z923b/tests/firewall/tests_zone.yml:133 ---------------------------- fedora.linux_system_roles.firewall : Enable and start firewalld service --- 1.07s /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 Gathering Facts --------------------------------------------------------- 1.05s /tmp/tmp670z923b/tests/firewall/tests_zone.yml:1 ------------------------------ Verify firewalld zone internal services --------------------------------- 0.78s /tmp/tmp670z923b/tests/firewall/tests_zone.yml:100 ---------------------------- Verify custom zone has masquerade added to it --------------------------- 0.69s /tmp/tmp670z923b/tests/firewall/tests_zone.yml:115 ---------------------------- Verify firewalld zone internal forward ports ---------------------------- 0.67s /tmp/tmp670z923b/tests/firewall/tests_zone.yml:110 ---------------------------- Verify firewalld zone internal ports ------------------------------------ 0.65s /tmp/tmp670z923b/tests/firewall/tests_zone.yml:105 ---------------------------- Verify custom zone has masquerade added to it --------------------------- 0.64s /tmp/tmp670z923b/tests/firewall/tests_zone.yml:120 ---------------------------- Verify that service http has been added to the default zone dmz --------- 0.62s /tmp/tmp670z923b/tests/firewall/tests_zone.yml:125 ---------------------------- fedora.linux_system_roles.firewall : Enable and start firewalld service --- 0.54s /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 fedora.linux_system_roles.firewall : Enable and start firewalld service --- 0.52s /tmp/tmpc4lcl3ua/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 Setup firewalld --------------------------------------------------------- 0.05s /tmp/tmp670z923b/tests/firewall/tests_zone.yml:32 -----------------------------