+ cd /tmp/tmp7s4lfjqz/tests; TEST_SUBJECTS=/cache/fedora-34.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_firewall-68-fdb7e88-fedora-34-wo2_pfuf/artifacts ANSIBLE_COLLECTIONS_PATHS=/tmp/tmpbhiq8xp8:~/.ansible/collections:/usr/share/ansible/collections ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 --skip-tags=tests::nvme /tmp/tmp7s4lfjqz/_setup.yml /tmp/tmp7s4lfjqz/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/tmpbhiq8xp8:/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/tmp7s4lfjqz/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmp7s4lfjqz/_setup.yml:5 Tuesday 22 February 2022 05:22:57 +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/tmp7s4lfjqz/_setup.yml:6 Tuesday 22 February 2022 05:22:57 +0000 (0:00:00.015) 0:00:00.026 ****** 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 05:22:57 +0000 (0:00:00.018) 0:00:00.044 ****** =============================================================================== fail -------------------------------------------------------------------- 0.02s /tmp/tmp7s4lfjqz/_setup.yml:6 ------------------------------------------------- debug ------------------------------------------------------------------- 0.02s /tmp/tmp7s4lfjqz/_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/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml PLAYBOOK: tests_ansible.yml **************************************************** 1 plays in /tmp/tmp7s4lfjqz/tests/tests_ansible.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:1 Tuesday 22 February 2022 05:22:57 +0000 (0:00:00.034) 0:00:00.078 ****** ok: [/cache/fedora-34.qcow2] META: ran handlers TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Tuesday 22 February 2022 05:22:58 +0000 (0:00:01.022) 0:00:01.100 ****** 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/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:7 Tuesday 22 February 2022 05:23:37 +0000 (0:00:39.549) 0:00:40.650 ****** skipping: [/cache/fedora-34.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Tuesday 22 February 2022 05:23:37 +0000 (0:00:00.024) 0:00:40.674 ****** 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/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Tuesday 22 February 2022 05:23:39 +0000 (0:00:01.976) 0:00:42.650 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "system.slice dbus.socket polkit.service sysinit.target basic.target dbus-broker.service", "AllowIsolate": "no", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target multi-user.target network-pre.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "nftables.service iptables.service ip6tables.service ebtables.service ipset.service shutdown.target", "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/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Tuesday 22 February 2022 05:23:40 +0000 (0:00:01.052) 0:00:43.703 ****** META: role_complete for /cache/fedora-34.qcow2 TASK [Remove custom zone] ****************************************************** task path: /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:14 Tuesday 22 February 2022 05:23:40 +0000 (0:00:00.021) 0:00:43.725 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--delete-zone=custom" ], "delta": "0:00:00.283072", "end": "2022-02-22 05:23:41.912537", "failed_when_result": false, "rc": 112, "start": "2022-02-22 05:23:41.629465" } STDERR: Error: INVALID_ZONE: custom MSG: non-zero return code TASK [Reset internal zone to defaults] ***************************************** task path: /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:19 Tuesday 22 February 2022 05:23:41 +0000 (0:00:00.789) 0:00:44.514 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=internal" ], "delta": "0:00:00.265176", "end": "2022-02-22 05:23:42.552527", "failed_when_result": false, "rc": 22, "start": "2022-02-22 05:23:42.287351" } STDERR: Error: NO_DEFAULTS: internal MSG: non-zero return code TASK [Reset trusted zone to defaults] ****************************************** task path: /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:24 Tuesday 22 February 2022 05:23:42 +0000 (0:00:00.639) 0:00:45.154 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=trusted" ], "delta": "0:00:00.362304", "end": "2022-02-22 05:23:43.292277", "failed_when_result": false, "rc": 22, "start": "2022-02-22 05:23:42.929973" } STDERR: Error: NO_DEFAULTS: trusted MSG: non-zero return code TASK [Reset dmz zone to defaults] ********************************************** task path: /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:29 Tuesday 22 February 2022 05:23:43 +0000 (0:00:00.782) 0:00:45.936 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=dmz" ], "delta": "0:00:00.251602", "end": "2022-02-22 05:23:43.964824", "failed_when_result": false, "rc": 22, "start": "2022-02-22 05:23:43.713222" } STDERR: Error: NO_DEFAULTS: dmz MSG: non-zero return code TASK [Reset drop zone to defaults] ********************************************* task path: /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:34 Tuesday 22 February 2022 05:23:43 +0000 (0:00:00.630) 0:00:46.567 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=drop" ], "delta": "0:00:00.258778", "end": "2022-02-22 05:23:44.611087", "failed_when_result": false, "rc": 22, "start": "2022-02-22 05:23:44.352309" } STDERR: Error: NO_DEFAULTS: drop MSG: non-zero return code TASK [Reset public zone to defaults] ******************************************* task path: /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:39 Tuesday 22 February 2022 05:23:44 +0000 (0:00:00.645) 0:00:47.212 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=public" ], "delta": "0:00:00.247560", "end": "2022-02-22 05:23:45.227318", "failed_when_result": false, "rc": 22, "start": "2022-02-22 05:23:44.979758" } STDERR: Error: NO_DEFAULTS: public MSG: non-zero return code TASK [Reset default zone to defaults] ****************************************** task path: /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:44 Tuesday 22 February 2022 05:23:45 +0000 (0:00:00.616) 0:00:47.829 ****** 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.500394", "end": "2022-02-22 05:23:46.097948", "failed_when_result": false, "rc": 22, "start": "2022-02-22 05:23:45.597554" } STDERR: Error: NO_DEFAULTS: public MSG: non-zero return code TASK [Create custom zone] ****************************************************** task path: /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:52 Tuesday 22 February 2022 05:23:45 +0000 (0:00:00.870) 0:00:48.700 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--new-zone=custom" ], "delta": "0:00:00.258136", "end": "2022-02-22 05:23:46.719331", "failed_when_result": false, "rc": 0, "start": "2022-02-22 05:23:46.461195" } STDOUT: success TASK [Reload firewalld] ******************************************************** task path: /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:57 Tuesday 22 February 2022 05:23:46 +0000 (0:00:00.634) 0:00:49.334 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--reload" ], "delta": "0:00:00.377911", "end": "2022-02-22 05:23:47.492355", "failed_when_result": false, "rc": 0, "start": "2022-02-22 05:23:47.114444" } STDOUT: success TASK [Permit traffic in default zone for https service] ************************ task path: /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:64 Tuesday 22 February 2022 05:23:47 +0000 (0:00:00.759) 0:00:50.094 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [Permit traffic in default zone for https service, again] ***************** task path: /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:72 Tuesday 22 February 2022 05:23:48 +0000 (0:00:00.704) 0:00:50.798 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Permit traffic in default zone on port 8081/tcp] ************************* task path: /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:80 Tuesday 22 February 2022 05:23:48 +0000 (0:00:00.549) 0:00:51.348 ****** 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/tmp7s4lfjqz/tests/tests_ansible.yml:88 Tuesday 22 February 2022 05:23:49 +0000 (0:00:00.558) 0:00:51.906 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Allow port 161-162/udp in permanent default zone] ************************ task path: /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:96 Tuesday 22 February 2022 05:23:49 +0000 (0:00:00.536) 0:00:52.442 ****** 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/tmp7s4lfjqz/tests/tests_ansible.yml:104 Tuesday 22 February 2022 05:23:50 +0000 (0:00:00.533) 0:00:52.976 ****** 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/tmp7s4lfjqz/tests/tests_ansible.yml:112 Tuesday 22 February 2022 05:23:50 +0000 (0:00:00.538) 0:00:53.514 ****** 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/tmp7s4lfjqz/tests/tests_ansible.yml:120 Tuesday 22 February 2022 05:23:51 +0000 (0:00:00.533) 0:00:54.047 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Allow service http in permanent dmz zone] ******************************** task path: /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:128 Tuesday 22 February 2022 05:23:51 +0000 (0:00:00.541) 0:00:54.589 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [Allow service http in permanent dmz zone, again] ************************* task path: /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:137 Tuesday 22 February 2022 05:23:52 +0000 (0:00:00.531) 0:00:55.121 ****** 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/tmp7s4lfjqz/tests/tests_ansible.yml:146 Tuesday 22 February 2022 05:23:52 +0000 (0:00:00.522) 0:00:55.644 ****** 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/tmp7s4lfjqz/tests/tests_ansible.yml:155 Tuesday 22 February 2022 05:23:53 +0000 (0:00:00.545) 0:00:56.190 ****** 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/tmp7s4lfjqz/tests/tests_ansible.yml:164 Tuesday 22 February 2022 05:23:53 +0000 (0:00:00.555) 0:00:56.745 ****** 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/tmp7s4lfjqz/tests/tests_ansible.yml:173 Tuesday 22 February 2022 05:23:54 +0000 (0:00:00.539) 0:00:57.285 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Allow interface eth2 in permanent trusted zone] ************************** task path: /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:182 Tuesday 22 February 2022 05:23:55 +0000 (0:00:00.531) 0:00:57.817 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [Allow interface eth2 in permanent trusted zone, again] ******************* task path: /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:191 Tuesday 22 February 2022 05:23:55 +0000 (0:00:00.534) 0:00:58.351 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Allow masquerading in permament dmz zone] ******************************** task path: /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:200 Tuesday 22 February 2022 05:23:56 +0000 (0:00:00.545) 0:00:58.897 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [Allow masquerading in permament dmz zone, again] ************************* task path: /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:209 Tuesday 22 February 2022 05:23:56 +0000 (0:00:00.568) 0:00:59.465 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Ensure permanent custom zone exists (no change)] ************************* task path: /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:218 Tuesday 22 February 2022 05:23:57 +0000 (0:00:00.525) 0:00:59.991 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Ensure ICMP block inversion in permanent drop zone] ********************** task path: /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:226 Tuesday 22 February 2022 05:23:57 +0000 (0:00:00.539) 0:01:00.530 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [Ensure ICMP block inversion in permanent drop zone, again] *************** task path: /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:235 Tuesday 22 February 2022 05:23:58 +0000 (0:00:00.545) 0:01:01.076 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Block ICMP echo-request in permanent drop zone] ************************** task path: /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:244 Tuesday 22 February 2022 05:23:58 +0000 (0:00:00.540) 0:01:01.616 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [Block ICMP echo-request in permanent drop zone, again] ******************* task path: /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:253 Tuesday 22 February 2022 05:23:59 +0000 (0:00:00.569) 0:01:02.186 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Ensure default target in permanent internal zone (no change)] ************ task path: /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:262 Tuesday 22 February 2022 05:23:59 +0000 (0:00:00.543) 0:01:02.729 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Ensure target ACCEPT in permanent internal zone] ************************* task path: /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:271 Tuesday 22 February 2022 05:24:00 +0000 (0:00:00.556) 0:01:03.286 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [Ensure target ACCEPT in permanent internal zone, again] ****************** task path: /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:280 Tuesday 22 February 2022 05:24:01 +0000 (0:00:00.553) 0:01:03.839 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Ensure default target in permanent internal zone] ************************ task path: /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:289 Tuesday 22 February 2022 05:24:01 +0000 (0:00:00.553) 0:01:04.393 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [Ensure default target in permanent internal zone, again] ***************** task path: /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:298 Tuesday 22 February 2022 05:24:02 +0000 (0:00:00.551) 0:01:04.944 ****** 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/tmp7s4lfjqz/tests/tests_ansible.yml:307 Tuesday 22 February 2022 05:24:02 +0000 (0:00:00.559) 0:01:05.504 ****** [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/tmp7s4lfjqz/tests/tests_ansible.yml:319 Tuesday 22 February 2022 05:24:03 +0000 (0:00:00.574) 0:01:06.079 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Firewalld custom zone] *************************************************** task path: /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:331 Tuesday 22 February 2022 05:24:03 +0000 (0:00:00.526) 0:01:06.605 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true } TASK [assert firewalld custom zone] ******************************************** task path: /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:339 Tuesday 22 February 2022 05:24:04 +0000 (0:00:00.870) 0:01:07.476 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false } MSG: All assertions passed TASK [Add masquerade to custom zone] ******************************************* task path: /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:344 Tuesday 22 February 2022 05:24:04 +0000 (0:00:00.023) 0:01:07.500 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [Add masquerade to custom zone, again] ************************************ task path: /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:354 Tuesday 22 February 2022 05:24:05 +0000 (0:00:00.547) 0:01:08.048 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [set default zone] ******************************************************** task path: /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:364 Tuesday 22 February 2022 05:24:05 +0000 (0:00:00.544) 0:01:08.592 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [set default zone, again] ************************************************* task path: /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:371 Tuesday 22 February 2022 05:24:06 +0000 (0:00:00.599) 0:01:09.192 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Remove custom zone] ****************************************************** task path: /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:383 Tuesday 22 February 2022 05:24:06 +0000 (0:00:00.572) 0:01:09.764 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--delete-zone=custom" ], "delta": "0:00:00.251642", "end": "2022-02-22 05:24:07.787749", "failed_when_result": false, "rc": 0, "start": "2022-02-22 05:24:07.536107" } STDOUT: success TASK [Reset internal zone to defaults] ***************************************** task path: /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:388 Tuesday 22 February 2022 05:24:07 +0000 (0:00:00.626) 0:01:10.391 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=internal" ], "delta": "0:00:00.264674", "end": "2022-02-22 05:24:08.442601", "failed_when_result": false, "rc": 0, "start": "2022-02-22 05:24:08.177927" } STDOUT: success TASK [Reset trusted zone to defaults] ****************************************** task path: /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:393 Tuesday 22 February 2022 05:24:08 +0000 (0:00:00.657) 0:01:11.048 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=trusted" ], "delta": "0:00:00.260816", "end": "2022-02-22 05:24:09.078755", "failed_when_result": false, "rc": 0, "start": "2022-02-22 05:24:08.817939" } STDOUT: success TASK [Reset dmz zone to defaults] ********************************************** task path: /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:398 Tuesday 22 February 2022 05:24:08 +0000 (0:00:00.634) 0:01:11.682 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=dmz" ], "delta": "0:00:00.250693", "end": "2022-02-22 05:24:09.700737", "failed_when_result": false, "rc": 0, "start": "2022-02-22 05:24:09.450044" } STDOUT: success TASK [Reset drop zone to defaults] ********************************************* task path: /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:403 Tuesday 22 February 2022 05:24:09 +0000 (0:00:00.618) 0:01:12.301 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=drop" ], "delta": "0:00:00.274200", "end": "2022-02-22 05:24:10.345981", "failed_when_result": false, "rc": 0, "start": "2022-02-22 05:24:10.071781" } STDOUT: success TASK [Reset public zone to defaults] ******************************************* task path: /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:408 Tuesday 22 February 2022 05:24:10 +0000 (0:00:00.645) 0:01:12.947 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=public" ], "delta": "0:00:00.257768", "end": "2022-02-22 05:24:10.967991", "failed_when_result": false, "rc": 0, "start": "2022-02-22 05:24:10.710223" } STDOUT: success TASK [Reset default zone to defaults] ****************************************** task path: /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:413 Tuesday 22 February 2022 05:24:10 +0000 (0:00:00.623) 0:01:13.571 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": "firewall-cmd --permanent --load-zone-defaults=public\n", "delta": "0:00:00.260773", "end": "2022-02-22 05:24:11.603754", "failed_when_result": false, "rc": 22, "start": "2022-02-22 05:24:11.342981" } STDERR: Error: NO_DEFAULTS: public MSG: non-zero return code TASK [Reload firewalld] ******************************************************** task path: /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:420 Tuesday 22 February 2022 05:24:11 +0000 (0:00:00.635) 0:01:14.207 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--reload" ], "delta": "0:00:00.385531", "end": "2022-02-22 05:24:12.373038", "failed_when_result": false, "rc": 0, "start": "2022-02-22 05:24:11.987507" } 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 05:24:12 +0000 (0:00:00.772) 0:01:14.980 ****** =============================================================================== linux-system-roles.firewall : Install firewalld ------------------------ 39.55s /tmp/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 linux-system-roles.firewall : Install python3-firewall ------------------ 1.98s /tmp/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 linux-system-roles.firewall : Enable and start firewalld service -------- 1.05s /tmp/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Gathering Facts --------------------------------------------------------- 1.02s /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:1 ------------------------------------ Reset default zone to defaults ------------------------------------------ 0.87s /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:44 ----------------------------------- Firewalld custom zone --------------------------------------------------- 0.87s /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:331 ---------------------------------- Remove custom zone ------------------------------------------------------ 0.79s /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:14 ----------------------------------- Reset trusted zone to defaults ------------------------------------------ 0.78s /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:24 ----------------------------------- Reload firewalld -------------------------------------------------------- 0.77s /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:420 ---------------------------------- Reload firewalld -------------------------------------------------------- 0.76s /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:57 ----------------------------------- Permit traffic in default zone for https service ------------------------ 0.70s /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:64 ----------------------------------- Reset internal zone to defaults ----------------------------------------- 0.66s /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:388 ---------------------------------- Reset drop zone to defaults --------------------------------------------- 0.65s /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:403 ---------------------------------- Reset drop zone to defaults --------------------------------------------- 0.65s /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:34 ----------------------------------- Reset internal zone to defaults ----------------------------------------- 0.64s /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:19 ----------------------------------- Reset default zone to defaults ------------------------------------------ 0.64s /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:413 ---------------------------------- Reset trusted zone to defaults ------------------------------------------ 0.63s /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:393 ---------------------------------- Create custom zone ------------------------------------------------------ 0.63s /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:52 ----------------------------------- Reset dmz zone to defaults ---------------------------------------------- 0.63s /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:29 ----------------------------------- Remove custom zone ------------------------------------------------------ 0.63s /tmp/tmp7s4lfjqz/tests/tests_ansible.yml:383 ---------------------------------- + cd /tmp/tmp7s4lfjqz/tests; TEST_SUBJECTS=/cache/fedora-34.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_firewall-68-fdb7e88-fedora-34-wo2_pfuf/artifacts ANSIBLE_COLLECTIONS_PATHS=/tmp/tmpbhiq8xp8:~/.ansible/collections:/usr/share/ansible/collections ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 --skip-tags=tests::nvme /tmp/tmp7s4lfjqz/_setup.yml /tmp/tmp7s4lfjqz/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/tmpbhiq8xp8:/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/tmp7s4lfjqz/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmp7s4lfjqz/_setup.yml:5 Tuesday 22 February 2022 05:24:26 +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/tmp7s4lfjqz/_setup.yml:6 Tuesday 22 February 2022 05:24:26 +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 05:24:26 +0000 (0:00:00.023) 0:00:00.052 ****** =============================================================================== fail -------------------------------------------------------------------- 0.02s /tmp/tmp7s4lfjqz/_setup.yml:6 ------------------------------------------------- debug ------------------------------------------------------------------- 0.02s /tmp/tmp7s4lfjqz/_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/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml PLAYBOOK: tests_default.yml **************************************************** 1 plays in /tmp/tmp7s4lfjqz/tests/tests_default.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp7s4lfjqz/tests/tests_default.yml:1 Tuesday 22 February 2022 05:24:26 +0000 (0:00:00.025) 0:00:00.078 ****** ok: [/cache/fedora-34.qcow2] META: ran handlers TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Tuesday 22 February 2022 05:24:27 +0000 (0:00:01.092) 0:00:01.171 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "rc": 0, "results": [ "Installed: python3-firewall-0.9.4-1.fc34.noarch", "Installed: python3-decorator-4.4.2-4.fc34.noarch", "Installed: iptables-nft-1.8.7-8.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: libnftnl-1.1.9-2.fc34.x86_64", "Installed: ipset-7.11-1.fc34.x86_64", "Installed: firewalld-0.9.4-1.fc34.noarch", "Installed: python3-gobject-base-3.40.1-1.fc34.x86_64", "Installed: firewalld-filesystem-0.9.4-1.fc34.noarch", "Installed: ipset-libs-7.11-1.fc34.x86_64", "Installed: nftables-1:0.9.8-3.fc34.x86_64", "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/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:7 Tuesday 22 February 2022 05:25:14 +0000 (0:00:46.577) 0:00:47.749 ****** skipping: [/cache/fedora-34.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Tuesday 22 February 2022 05:25:14 +0000 (0:00:00.028) 0:00:47.777 ****** 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/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Tuesday 22 February 2022 05:25:16 +0000 (0:00:02.140) 0:00:49.918 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "dbus-broker.service dbus.socket basic.target polkit.service sysinit.target system.slice", "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": "ebtables.service shutdown.target ipset.service iptables.service nftables.service ip6tables.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 sysinit.target 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/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Tuesday 22 February 2022 05:25:17 +0000 (0:00:01.076) 0:00:50.995 ****** 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 05:25:17 +0000 (0:00:00.026) 0:00:51.021 ****** =============================================================================== linux-system-roles.firewall : Install firewalld ------------------------ 46.58s /tmp/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 linux-system-roles.firewall : Install python3-firewall ------------------ 2.14s /tmp/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Gathering Facts --------------------------------------------------------- 1.09s /tmp/tmp7s4lfjqz/tests/tests_default.yml:1 ------------------------------------ linux-system-roles.firewall : Enable and start firewalld service -------- 1.08s /tmp/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 linux-system-roles.firewall : Install python-firewall ------------------- 0.03s /tmp/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:7 linux-system-roles.firewall : Configure firewall ------------------------ 0.03s /tmp/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 ----- fail -------------------------------------------------------------------- 0.02s /tmp/tmp7s4lfjqz/_setup.yml:6 ------------------------------------------------- debug ------------------------------------------------------------------- 0.02s /tmp/tmp7s4lfjqz/_setup.yml:5 ------------------------------------------------- + cd /tmp/tmp7s4lfjqz/tests; TEST_SUBJECTS=/cache/fedora-34.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_firewall-68-fdb7e88-fedora-34-wo2_pfuf/artifacts ANSIBLE_COLLECTIONS_PATHS=/tmp/tmpbhiq8xp8:~/.ansible/collections:/usr/share/ansible/collections ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 --skip-tags=tests::nvme /tmp/tmp7s4lfjqz/_setup.yml /tmp/tmp7s4lfjqz/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/tmpbhiq8xp8:/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/tmp7s4lfjqz/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmp7s4lfjqz/_setup.yml:5 Tuesday 22 February 2022 05:25:31 +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/tmp7s4lfjqz/_setup.yml:6 Tuesday 22 February 2022 05:25:31 +0000 (0:00:00.017) 0:00:00.028 ****** 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 05:25:31 +0000 (0:00:00.016) 0:00:00.045 ****** =============================================================================== debug ------------------------------------------------------------------- 0.02s /tmp/tmp7s4lfjqz/_setup.yml:5 ------------------------------------------------- fail -------------------------------------------------------------------- 0.02s /tmp/tmp7s4lfjqz/_setup.yml:6 ------------------------------------------------- PLAYBOOK: tests_zone.yml ******************************************************* 1 plays in /tmp/tmp7s4lfjqz/tests/tests_zone.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp7s4lfjqz/tests/tests_zone.yml:1 Tuesday 22 February 2022 05:25:31 +0000 (0:00:00.011) 0:00:00.057 ****** ok: [/cache/fedora-34.qcow2] META: ran handlers TASK [include_role : linux-system-roles.firewall] ****************************** task path: /tmp/tmp7s4lfjqz/tests/tests_zone.yml:6 Tuesday 22 February 2022 05:25:32 +0000 (0:00:01.059) 0:00:01.117 ****** [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/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Tuesday 22 February 2022 05:25:32 +0000 (0:00:00.027) 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: 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/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:7 Tuesday 22 February 2022 05:26:44 +0000 (0:01:12.420) 0:01:13.564 ****** skipping: [/cache/fedora-34.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Tuesday 22 February 2022 05:26:44 +0000 (0:00:00.025) 0:01:13.589 ****** 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/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Tuesday 22 February 2022 05:26:47 +0000 (0:00:02.033) 0:01:15.623 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "sysinit.target polkit.service system.slice basic.target dbus.socket dbus-broker.service", "AllowIsolate": "no", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "multi-user.target network-pre.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "nftables.service shutdown.target iptables.service ip6tables.service ebtables.service ipset.service", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "\"man:firewalld(1)\"", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecReloadEx": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "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/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Tuesday 22 February 2022 05:26:48 +0000 (0:00:01.058) 0:01:16.682 ****** META: role_complete for /cache/fedora-34.qcow2 TASK [Verify used firewalld zones] ********************************************* task path: /tmp/tmp7s4lfjqz/tests/tests_zone.yml:14 Tuesday 22 February 2022 05:26:48 +0000 (0:00:00.027) 0:01:16.709 ****** statically imported: /tmp/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Tuesday 22 February 2022 05:26:48 +0000 (0:00:00.046) 0:01:16.755 ****** 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/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:7 Tuesday 22 February 2022 05:26:50 +0000 (0:00:01.867) 0:01:18.623 ****** skipping: [/cache/fedora-34.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Tuesday 22 February 2022 05:26:50 +0000 (0:00:00.032) 0:01:18.656 ****** 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/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Tuesday 22 February 2022 05:26:51 +0000 (0:00:01.840) 0:01:20.496 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2022-02-22 05:26:47 UTC", "ActiveEnterTimestampMonotonic": "86552540", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "sysinit.target polkit.service system.slice basic.target dbus.socket dbus-broker.service", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-02-22 05:26:47 UTC", "AssertTimestampMonotonic": "86301331", "Before": "multi-user.target network-pre.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "438984000", "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 05:26:47 UTC", "ConditionTimestampMonotonic": "86301329", "ConfigurationDirectoryMode": "0755", "Conflicts": "nftables.service shutdown.target iptables.service ip6tables.service ebtables.service ipset.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "\"man:firewalld(1)\"", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "7476", "ExecMainStartTimestamp": "Tue 2022-02-22 05:26:47 UTC", "ExecMainStartTimestampMonotonic": "86302485", "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 05:26:47 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 05:26:47 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 05:26:47 UTC", "InactiveExitTimestampMonotonic": "86302778", "InvocationID": "cc65dcb329a145db85ce7ff772250bcf", "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": "25362432", "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 05:26:47 UTC", "StateChangeTimestampMonotonic": "86552540", "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/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Tuesday 22 February 2022 05:26:52 +0000 (0:00:00.525) 0:01:21.022 ****** 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/tmp7s4lfjqz/tests/tests_zone.yml:26 Tuesday 22 February 2022 05:26:54 +0000 (0:00:01.741) 0:01:22.763 ****** skipping: [/cache/fedora-34.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Setup firewalld] ********************************************************* task path: /tmp/tmp7s4lfjqz/tests/tests_zone.yml:32 Tuesday 22 February 2022 05:26:54 +0000 (0:00:00.030) 0:01:22.794 ****** statically imported: /tmp/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Tuesday 22 February 2022 05:26:54 +0000 (0:00:00.044) 0:01:22.839 ****** 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/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:7 Tuesday 22 February 2022 05:26:56 +0000 (0:00:01.820) 0:01:24.659 ****** skipping: [/cache/fedora-34.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Tuesday 22 February 2022 05:26:56 +0000 (0:00:00.032) 0:01:24.692 ****** 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/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Tuesday 22 February 2022 05:26:57 +0000 (0:00:01.852) 0:01:26.545 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2022-02-22 05:26:47 UTC", "ActiveEnterTimestampMonotonic": "86552540", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "sysinit.target polkit.service system.slice basic.target dbus.socket dbus-broker.service", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-02-22 05:26:47 UTC", "AssertTimestampMonotonic": "86301331", "Before": "multi-user.target network-pre.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "586396000", "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 05:26:47 UTC", "ConditionTimestampMonotonic": "86301329", "ConfigurationDirectoryMode": "0755", "Conflicts": "nftables.service shutdown.target iptables.service ip6tables.service ebtables.service ipset.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "\"man:firewalld(1)\"", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "7476", "ExecMainStartTimestamp": "Tue 2022-02-22 05:26:47 UTC", "ExecMainStartTimestampMonotonic": "86302485", "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 05:26:47 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 05:26:47 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 05:26:47 UTC", "InactiveExitTimestampMonotonic": "86302778", "InvocationID": "cc65dcb329a145db85ce7ff772250bcf", "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": "26689536", "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 05:26:47 UTC", "StateChangeTimestampMonotonic": "86552540", "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/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Tuesday 22 February 2022 05:26:58 +0000 (0:00:00.523) 0:01:27.069 ****** 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/tmp7s4lfjqz/tests/tests_zone.yml:62 Tuesday 22 February 2022 05:27:01 +0000 (0:00:03.331) 0:01:30.400 ****** skipping: [/cache/fedora-34.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Setup firewalld again] *************************************************** task path: /tmp/tmp7s4lfjqz/tests/tests_zone.yml:68 Tuesday 22 February 2022 05:27:01 +0000 (0:00:00.032) 0:01:30.432 ****** TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Tuesday 22 February 2022 05:27:01 +0000 (0:00:00.047) 0:01:30.480 ****** 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/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:7 Tuesday 22 February 2022 05:27:03 +0000 (0:00:01.843) 0:01:32.324 ****** skipping: [/cache/fedora-34.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Tuesday 22 February 2022 05:27:03 +0000 (0:00:00.034) 0:01:32.359 ****** 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/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Tuesday 22 February 2022 05:27:05 +0000 (0:00:01.848) 0:01:34.207 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2022-02-22 05:26:47 UTC", "ActiveEnterTimestampMonotonic": "86552540", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "sysinit.target polkit.service system.slice basic.target dbus.socket dbus-broker.service", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-02-22 05:26:47 UTC", "AssertTimestampMonotonic": "86301331", "Before": "multi-user.target network-pre.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "1023684000", "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 05:26:47 UTC", "ConditionTimestampMonotonic": "86301329", "ConfigurationDirectoryMode": "0755", "Conflicts": "nftables.service shutdown.target iptables.service ip6tables.service ebtables.service ipset.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "\"man:firewalld(1)\"", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "7476", "ExecMainStartTimestamp": "Tue 2022-02-22 05:26:47 UTC", "ExecMainStartTimestampMonotonic": "86302485", "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 05:26:47 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 05:26:47 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 05:26:47 UTC", "InactiveExitTimestampMonotonic": "86302778", "InvocationID": "cc65dcb329a145db85ce7ff772250bcf", "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": "28205056", "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 05:26:47 UTC", "StateChangeTimestampMonotonic": "86552540", "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/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Tuesday 22 February 2022 05:27:06 +0000 (0:00:00.521) 0:01:34.729 ****** 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/tmp7s4lfjqz/tests/tests_zone.yml:98 Tuesday 22 February 2022 05:27:09 +0000 (0:00:03.196) 0:01:37.925 ****** skipping: [/cache/fedora-34.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify firewalld zone internal services] ********************************* task path: /tmp/tmp7s4lfjqz/tests/tests_zone.yml:104 Tuesday 22 February 2022 05:27:09 +0000 (0:00:00.033) 0:01:37.959 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-services" ], "delta": "0:00:00.261577", "end": "2022-02-22 05:27:09.632639", "failed_when_result": false, "rc": 0, "start": "2022-02-22 05:27:09.371062" } STDOUT: dhcpv6-client ftp mdns samba-client ssh tftp TASK [Verify firewalld zone internal ports] ************************************ task path: /tmp/tmp7s4lfjqz/tests/tests_zone.yml:111 Tuesday 22 February 2022 05:27:10 +0000 (0:00:00.812) 0:01:38.771 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-ports" ], "delta": "0:00:00.269831", "end": "2022-02-22 05:27:10.294542", "failed_when_result": false, "rc": 0, "start": "2022-02-22 05:27:10.024711" } STDOUT: 443/tcp 443/udp TASK [Verify firewalld zone internal forward ports] **************************** task path: /tmp/tmp7s4lfjqz/tests/tests_zone.yml:118 Tuesday 22 February 2022 05:27:10 +0000 (0:00:00.658) 0:01:39.429 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-forward-ports" ], "delta": "0:00:00.255169", "end": "2022-02-22 05:27:10.940281", "failed_when_result": false, "rc": 0, "start": "2022-02-22 05:27:10.685112" } 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/tmp7s4lfjqz/tests/tests_zone.yml:127 Tuesday 22 February 2022 05:27:11 +0000 (0:00:00.649) 0:01:40.079 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=customzone", "--query-masquerade" ], "delta": "0:00:00.257953", "end": "2022-02-22 05:27:11.602430", "failed_when_result": false, "rc": 0, "start": "2022-02-22 05:27:11.344477" } STDOUT: yes TASK [Verify custom zone has masquerade added to it] *************************** task path: /tmp/tmp7s4lfjqz/tests/tests_zone.yml:133 Tuesday 22 February 2022 05:27:12 +0000 (0:00:00.663) 0:01:40.743 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--get-default-zone" ], "delta": "0:00:00.241691", "end": "2022-02-22 05:27:12.231571", "failed_when_result": false, "rc": 0, "start": "2022-02-22 05:27:11.989880" } STDOUT: dmz TASK [Verify that service http has been added to the default zone dmz] ********* task path: /tmp/tmp7s4lfjqz/tests/tests_zone.yml:139 Tuesday 22 February 2022 05:27:12 +0000 (0:00:00.627) 0:01:41.370 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--zone=dmz", "--query-service=http" ], "delta": "0:00:00.239351", "end": "2022-02-22 05:27:12.861969", "failed_when_result": false, "rc": 0, "start": "2022-02-22 05:27:12.622618" } STDOUT: yes TASK [Reset to zone defaults] ************************************************** task path: /tmp/tmp7s4lfjqz/tests/tests_zone.yml:148 Tuesday 22 February 2022 05:27:13 +0000 (0:00:00.630) 0:01:42.001 ****** 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.144844", "end": "2022-02-22 05:27:14.391138", "rc": 0, "start": "2022-02-22 05:27:13.246294" } STDOUT: success success success success 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 05:27:14 +0000 (0:00:01.531) 0:01:43.532 ****** =============================================================================== linux-system-roles.firewall : Install firewalld ------------------------ 72.42s /tmp/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 linux-system-roles.firewall : Configure firewall ------------------------ 3.20s /tmp/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 ----- linux-system-roles.firewall : Install python3-firewall ------------------ 2.03s /tmp/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 linux-system-roles.firewall : Install firewalld ------------------------- 1.87s /tmp/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 linux-system-roles.firewall : Install python3-firewall ------------------ 1.85s /tmp/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 linux-system-roles.firewall : Install firewalld ------------------------- 1.84s /tmp/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 linux-system-roles.firewall : Install python3-firewall ------------------ 1.84s /tmp/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 linux-system-roles.firewall : Configure firewall ------------------------ 1.74s /tmp/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 ----- Reset to zone defaults -------------------------------------------------- 1.53s /tmp/tmp7s4lfjqz/tests/tests_zone.yml:148 ------------------------------------- Gathering Facts --------------------------------------------------------- 1.06s /tmp/tmp7s4lfjqz/tests/tests_zone.yml:1 --------------------------------------- linux-system-roles.firewall : Enable and start firewalld service -------- 1.06s /tmp/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Verify firewalld zone internal services --------------------------------- 0.81s /tmp/tmp7s4lfjqz/tests/tests_zone.yml:104 ------------------------------------- Verify custom zone has masquerade added to it --------------------------- 0.66s /tmp/tmp7s4lfjqz/tests/tests_zone.yml:127 ------------------------------------- Verify firewalld zone internal ports ------------------------------------ 0.66s /tmp/tmp7s4lfjqz/tests/tests_zone.yml:111 ------------------------------------- Verify firewalld zone internal forward ports ---------------------------- 0.65s /tmp/tmp7s4lfjqz/tests/tests_zone.yml:118 ------------------------------------- Verify that service http has been added to the default zone dmz --------- 0.63s /tmp/tmp7s4lfjqz/tests/tests_zone.yml:139 ------------------------------------- Verify custom zone has masquerade added to it --------------------------- 0.63s /tmp/tmp7s4lfjqz/tests/tests_zone.yml:133 ------------------------------------- linux-system-roles.firewall : Enable and start firewalld service -------- 0.53s /tmp/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 linux-system-roles.firewall : Enable and start firewalld service -------- 0.52s /tmp/tmp7s4lfjqz/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Setup firewalld again --------------------------------------------------- 0.05s /tmp/tmp7s4lfjqz/tests/tests_zone.yml:68 -------------------------------------- + cd /tmp/tmphqzvkt4e/tests/firewall; TEST_SUBJECTS=/cache/fedora-34.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_firewall-68-fdb7e88-fedora-34-wo2_pfuf/artifacts ANSIBLE_COLLECTIONS_PATHS=/tmp/tmpbhiq8xp8:~/.ansible/collections:/usr/share/ansible/collections ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 --skip-tags=tests::nvme /tmp/tmp7s4lfjqz/_setup.yml /tmp/tmphqzvkt4e/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/tmpbhiq8xp8:/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/tmp7s4lfjqz/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmp7s4lfjqz/_setup.yml:5 Tuesday 22 February 2022 05:27:29 +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/tmp7s4lfjqz/_setup.yml:6 Tuesday 22 February 2022 05:27:29 +0000 (0:00:00.016) 0:00:00.028 ****** 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 05:27:29 +0000 (0:00:00.018) 0:00:00.047 ****** =============================================================================== fail -------------------------------------------------------------------- 0.02s /tmp/tmp7s4lfjqz/_setup.yml:6 ------------------------------------------------- debug ------------------------------------------------------------------- 0.02s /tmp/tmp7s4lfjqz/_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/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml PLAYBOOK: tests_ansible.yml **************************************************** 1 plays in /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:1 Tuesday 22 February 2022 05:27:29 +0000 (0:00:00.045) 0:00:00.092 ****** ok: [/cache/fedora-34.qcow2] META: ran handlers TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Tuesday 22 February 2022 05:27:30 +0000 (0:00:01.050) 0:00:01.142 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "rc": 0, "results": [ "Installed: python3-firewall-0.9.4-1.fc34.noarch", "Installed: python3-decorator-4.4.2-4.fc34.noarch", "Installed: iptables-nft-1.8.7-8.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: libnftnl-1.1.9-2.fc34.x86_64", "Installed: ipset-7.11-1.fc34.x86_64", "Installed: firewalld-0.9.4-1.fc34.noarch", "Installed: python3-gobject-base-3.40.1-1.fc34.x86_64", "Installed: firewalld-filesystem-0.9.4-1.fc34.noarch", "Installed: ipset-libs-7.11-1.fc34.x86_64", "Installed: nftables-1:0.9.8-3.fc34.x86_64", "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/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 Tuesday 22 February 2022 05:28:26 +0000 (0:00:55.818) 0:00:56.961 ****** 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/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:13 Tuesday 22 February 2022 05:28:26 +0000 (0:00:00.027) 0:00:56.988 ****** 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/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 Tuesday 22 February 2022 05:28:28 +0000 (0:00:02.013) 0:00:59.002 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "polkit.service dbus-broker.service dbus.socket basic.target system.slice sysinit.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 iptables.service nftables.service ipset.service ebtables.service ip6tables.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/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Tuesday 22 February 2022 05:28:29 +0000 (0:00:01.074) 0:01:00.077 ****** META: role_complete for /cache/fedora-34.qcow2 TASK [Remove custom zone] ****************************************************** task path: /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:14 Tuesday 22 February 2022 05:28:29 +0000 (0:00:00.022) 0:01:00.099 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--delete-zone=custom" ], "delta": "0:00:00.264950", "end": "2022-02-22 05:28:29.730459", "failed_when_result": false, "rc": 112, "start": "2022-02-22 05:28:29.465509" } STDERR: Error: INVALID_ZONE: custom MSG: non-zero return code TASK [Reset internal zone to defaults] ***************************************** task path: /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:19 Tuesday 22 February 2022 05:28:30 +0000 (0:00:00.781) 0:01:00.881 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=internal" ], "delta": "0:00:00.264700", "end": "2022-02-22 05:28:30.369356", "failed_when_result": false, "rc": 22, "start": "2022-02-22 05:28:30.104656" } STDERR: Error: NO_DEFAULTS: internal MSG: non-zero return code TASK [Reset trusted zone to defaults] ****************************************** task path: /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:24 Tuesday 22 February 2022 05:28:30 +0000 (0:00:00.637) 0:01:01.518 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=trusted" ], "delta": "0:00:00.254229", "end": "2022-02-22 05:28:31.004484", "failed_when_result": false, "rc": 22, "start": "2022-02-22 05:28:30.750255" } STDERR: Error: NO_DEFAULTS: trusted MSG: non-zero return code TASK [Reset dmz zone to defaults] ********************************************** task path: /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:29 Tuesday 22 February 2022 05:28:31 +0000 (0:00:00.637) 0:01:02.155 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=dmz" ], "delta": "0:00:00.255947", "end": "2022-02-22 05:28:31.645531", "failed_when_result": false, "rc": 22, "start": "2022-02-22 05:28:31.389584" } STDERR: Error: NO_DEFAULTS: dmz MSG: non-zero return code TASK [Reset drop zone to defaults] ********************************************* task path: /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:34 Tuesday 22 February 2022 05:28:32 +0000 (0:00:00.640) 0:01:02.796 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=drop" ], "delta": "0:00:00.248663", "end": "2022-02-22 05:28:32.261613", "failed_when_result": false, "rc": 22, "start": "2022-02-22 05:28:32.012950" } STDERR: Error: NO_DEFAULTS: drop MSG: non-zero return code TASK [Reset public zone to defaults] ******************************************* task path: /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:39 Tuesday 22 February 2022 05:28:32 +0000 (0:00:00.615) 0:01:03.412 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=public" ], "delta": "0:00:00.251806", "end": "2022-02-22 05:28:32.879151", "failed_when_result": false, "rc": 22, "start": "2022-02-22 05:28:32.627345" } STDERR: Error: NO_DEFAULTS: public MSG: non-zero return code TASK [Reset default zone to defaults] ****************************************** task path: /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:44 Tuesday 22 February 2022 05:28:33 +0000 (0:00:00.616) 0:01:04.029 ****** 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.529429", "end": "2022-02-22 05:28:33.780918", "failed_when_result": false, "rc": 22, "start": "2022-02-22 05:28:33.251489" } STDERR: Error: NO_DEFAULTS: public MSG: non-zero return code TASK [Create custom zone] ****************************************************** task path: /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:52 Tuesday 22 February 2022 05:28:34 +0000 (0:00:00.905) 0:01:04.934 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--new-zone=custom" ], "delta": "0:00:00.249466", "end": "2022-02-22 05:28:34.407558", "failed_when_result": false, "rc": 0, "start": "2022-02-22 05:28:34.158092" } STDOUT: success TASK [Reload firewalld] ******************************************************** task path: /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:57 Tuesday 22 February 2022 05:28:34 +0000 (0:00:00.626) 0:01:05.561 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--reload" ], "delta": "0:00:00.379508", "end": "2022-02-22 05:28:35.159725", "failed_when_result": false, "rc": 0, "start": "2022-02-22 05:28:34.780217" } STDOUT: success TASK [Permit traffic in default zone for https service] ************************ task path: /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:64 Tuesday 22 February 2022 05:28:35 +0000 (0:00:00.751) 0:01:06.312 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [Permit traffic in default zone for https service, again] ***************** task path: /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:72 Tuesday 22 February 2022 05:28:36 +0000 (0:00:00.687) 0:01:07.000 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Permit traffic in default zone on port 8081/tcp] ************************* task path: /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:80 Tuesday 22 February 2022 05:28:36 +0000 (0:00:00.565) 0:01:07.565 ****** 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/tmphqzvkt4e/tests/firewall/tests_ansible.yml:88 Tuesday 22 February 2022 05:28:37 +0000 (0:00:00.545) 0:01:08.110 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Allow port 161-162/udp in permanent default zone] ************************ task path: /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:96 Tuesday 22 February 2022 05:28:37 +0000 (0:00:00.539) 0:01:08.650 ****** 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/tmphqzvkt4e/tests/firewall/tests_ansible.yml:104 Tuesday 22 February 2022 05:28:38 +0000 (0:00:00.566) 0:01:09.217 ****** 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/tmphqzvkt4e/tests/firewall/tests_ansible.yml:112 Tuesday 22 February 2022 05:28:38 +0000 (0:00:00.537) 0:01:09.754 ****** 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/tmphqzvkt4e/tests/firewall/tests_ansible.yml:120 Tuesday 22 February 2022 05:28:39 +0000 (0:00:00.539) 0:01:10.294 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Allow service http in permanent dmz zone] ******************************** task path: /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:128 Tuesday 22 February 2022 05:28:40 +0000 (0:00:00.531) 0:01:10.826 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [Allow service http in permanent dmz zone, again] ************************* task path: /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:137 Tuesday 22 February 2022 05:28:40 +0000 (0:00:00.546) 0:01:11.373 ****** 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/tmphqzvkt4e/tests/firewall/tests_ansible.yml:146 Tuesday 22 February 2022 05:28:41 +0000 (0:00:00.538) 0:01:11.911 ****** 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/tmphqzvkt4e/tests/firewall/tests_ansible.yml:154 Tuesday 22 February 2022 05:28:41 +0000 (0:00:00.548) 0:01:12.460 ****** 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/tmphqzvkt4e/tests/firewall/tests_ansible.yml:162 Tuesday 22 February 2022 05:28:42 +0000 (0:00:00.571) 0:01:13.032 ****** 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/tmphqzvkt4e/tests/firewall/tests_ansible.yml:171 Tuesday 22 February 2022 05:28:42 +0000 (0:00:00.563) 0:01:13.596 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Allow interface eth2 in permanent trusted zone] ************************** task path: /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:180 Tuesday 22 February 2022 05:28:43 +0000 (0:00:00.553) 0:01:14.150 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [Allow interface eth2 in permanent trusted zone, again] ******************* task path: /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:189 Tuesday 22 February 2022 05:28:43 +0000 (0:00:00.538) 0:01:14.688 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Allow masquerading in permament dmz zone] ******************************** task path: /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:198 Tuesday 22 February 2022 05:28:44 +0000 (0:00:00.572) 0:01:15.261 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [Allow masquerading in permament dmz zone, again] ************************* task path: /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:207 Tuesday 22 February 2022 05:28:45 +0000 (0:00:00.535) 0:01:15.796 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Ensure permanent custom zone exists (no change)] ************************* task path: /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:216 Tuesday 22 February 2022 05:28:45 +0000 (0:00:00.535) 0:01:16.332 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Ensure ICMP block inversion in permanent drop zone] ********************** task path: /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:224 Tuesday 22 February 2022 05:28:46 +0000 (0:00:00.542) 0:01:16.874 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [Ensure ICMP block inversion in permanent drop zone, again] *************** task path: /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:233 Tuesday 22 February 2022 05:28:46 +0000 (0:00:00.576) 0:01:17.450 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Block ICMP echo-request in permanent drop zone] ************************** task path: /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:242 Tuesday 22 February 2022 05:28:47 +0000 (0:00:00.555) 0:01:18.006 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [Block ICMP echo-request in permanent drop zone, again] ******************* task path: /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:251 Tuesday 22 February 2022 05:28:47 +0000 (0:00:00.559) 0:01:18.565 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Ensure default target in permanent internal zone (no change)] ************ task path: /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:260 Tuesday 22 February 2022 05:28:48 +0000 (0:00:00.539) 0:01:19.105 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Ensure target ACCEPT in permanent internal zone] ************************* task path: /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:269 Tuesday 22 February 2022 05:28:48 +0000 (0:00:00.545) 0:01:19.650 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [Ensure target ACCEPT in permanent internal zone, again] ****************** task path: /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:278 Tuesday 22 February 2022 05:28:49 +0000 (0:00:00.551) 0:01:20.201 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Ensure default target in permanent internal zone] ************************ task path: /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:287 Tuesday 22 February 2022 05:28:49 +0000 (0:00:00.524) 0:01:20.725 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [Ensure default target in permanent internal zone, again] ***************** task path: /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:296 Tuesday 22 February 2022 05:28:50 +0000 (0:00:00.520) 0:01:21.246 ****** 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/tmphqzvkt4e/tests/firewall/tests_ansible.yml:305 Tuesday 22 February 2022 05:28:51 +0000 (0:00:00.542) 0:01:21.789 ****** [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/tmphqzvkt4e/tests/firewall/tests_ansible.yml:315 Tuesday 22 February 2022 05:28:51 +0000 (0:00:00.596) 0:01:22.386 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Firewalld custom zone] *************************************************** task path: /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:325 Tuesday 22 February 2022 05:28:52 +0000 (0:00:00.554) 0:01:22.940 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true } TASK [assert firewalld custom zone] ******************************************** task path: /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:333 Tuesday 22 February 2022 05:28:53 +0000 (0:00:00.951) 0:01:23.892 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false } MSG: All assertions passed TASK [Add masquerade to custom zone] ******************************************* task path: /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:338 Tuesday 22 February 2022 05:28:53 +0000 (0:00:00.025) 0:01:23.918 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [Add masquerade to custom zone, again] ************************************ task path: /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:348 Tuesday 22 February 2022 05:28:53 +0000 (0:00:00.534) 0:01:24.452 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [set default zone] ******************************************************** task path: /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:358 Tuesday 22 February 2022 05:28:54 +0000 (0:00:00.540) 0:01:24.992 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "failed_when_result": false } TASK [set default zone, again] ************************************************* task path: /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:365 Tuesday 22 February 2022 05:28:54 +0000 (0:00:00.590) 0:01:25.582 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "failed_when_result": false } TASK [Remove custom zone] ****************************************************** task path: /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:377 Tuesday 22 February 2022 05:28:55 +0000 (0:00:00.517) 0:01:26.100 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--delete-zone=custom" ], "delta": "0:00:00.263457", "end": "2022-02-22 05:28:55.582014", "failed_when_result": false, "rc": 0, "start": "2022-02-22 05:28:55.318557" } STDOUT: success TASK [Reset internal zone to defaults] ***************************************** task path: /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:382 Tuesday 22 February 2022 05:28:55 +0000 (0:00:00.634) 0:01:26.734 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=internal" ], "delta": "0:00:00.270079", "end": "2022-02-22 05:28:56.216305", "failed_when_result": false, "rc": 0, "start": "2022-02-22 05:28:55.946226" } STDOUT: success TASK [Reset trusted zone to defaults] ****************************************** task path: /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:387 Tuesday 22 February 2022 05:28:56 +0000 (0:00:00.644) 0:01:27.379 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=trusted" ], "delta": "0:00:00.251178", "end": "2022-02-22 05:28:56.854289", "failed_when_result": false, "rc": 0, "start": "2022-02-22 05:28:56.603111" } STDOUT: success TASK [Reset dmz zone to defaults] ********************************************** task path: /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:392 Tuesday 22 February 2022 05:28:57 +0000 (0:00:00.625) 0:01:28.004 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=dmz" ], "delta": "0:00:00.256679", "end": "2022-02-22 05:28:57.490003", "failed_when_result": false, "rc": 0, "start": "2022-02-22 05:28:57.233324" } STDOUT: success TASK [Reset drop zone to defaults] ********************************************* task path: /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:397 Tuesday 22 February 2022 05:28:57 +0000 (0:00:00.638) 0:01:28.643 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=drop" ], "delta": "0:00:00.272136", "end": "2022-02-22 05:28:58.138089", "failed_when_result": false, "rc": 0, "start": "2022-02-22 05:28:57.865953" } STDOUT: success TASK [Reset public zone to defaults] ******************************************* task path: /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:402 Tuesday 22 February 2022 05:28:58 +0000 (0:00:00.648) 0:01:29.292 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=public" ], "delta": "0:00:00.262341", "end": "2022-02-22 05:28:58.773816", "failed_when_result": false, "rc": 0, "start": "2022-02-22 05:28:58.511475" } STDOUT: success TASK [Reset default zone to defaults] ****************************************** task path: /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:407 Tuesday 22 February 2022 05:28:59 +0000 (0:00:00.634) 0:01:29.926 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": "firewall-cmd --permanent --load-zone-defaults=public\n", "delta": "0:00:00.256637", "end": "2022-02-22 05:28:59.401397", "failed_when_result": false, "rc": 22, "start": "2022-02-22 05:28:59.144760" } STDERR: Error: NO_DEFAULTS: public MSG: non-zero return code TASK [Reload firewalld] ******************************************************** task path: /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:414 Tuesday 22 February 2022 05:28:59 +0000 (0:00:00.627) 0:01:30.553 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--reload" ], "delta": "0:00:00.367827", "end": "2022-02-22 05:29:00.138770", "failed_when_result": false, "rc": 0, "start": "2022-02-22 05:28:59.770943" } 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 05:29:00 +0000 (0:00:00.741) 0:01:31.295 ****** =============================================================================== fedora.linux_system_roles.firewall : Install firewalld ----------------- 55.82s /tmp/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 fedora.linux_system_roles.firewall : Install python3-firewall ----------- 2.01s /tmp/tmpbhiq8xp8/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/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 Gathering Facts --------------------------------------------------------- 1.05s /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:1 --------------------------- Firewalld custom zone --------------------------------------------------- 0.95s /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:325 ------------------------- Reset default zone to defaults ------------------------------------------ 0.91s /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:44 -------------------------- Remove custom zone ------------------------------------------------------ 0.78s /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:14 -------------------------- Reload firewalld -------------------------------------------------------- 0.75s /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:57 -------------------------- Reload firewalld -------------------------------------------------------- 0.74s /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:414 ------------------------- Permit traffic in default zone for https service ------------------------ 0.69s /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:64 -------------------------- Reset drop zone to defaults --------------------------------------------- 0.65s /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:397 ------------------------- Reset internal zone to defaults ----------------------------------------- 0.65s /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:382 ------------------------- Reset dmz zone to defaults ---------------------------------------------- 0.64s /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:29 -------------------------- Reset dmz zone to defaults ---------------------------------------------- 0.64s /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:392 ------------------------- Reset internal zone to defaults ----------------------------------------- 0.64s /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:19 -------------------------- Reset trusted zone to defaults ------------------------------------------ 0.64s /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:24 -------------------------- Remove custom zone ------------------------------------------------------ 0.63s /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:377 ------------------------- Reset public zone to defaults ------------------------------------------- 0.63s /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:402 ------------------------- Reset default zone to defaults ------------------------------------------ 0.63s /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:407 ------------------------- Create custom zone ------------------------------------------------------ 0.63s /tmp/tmphqzvkt4e/tests/firewall/tests_ansible.yml:52 -------------------------- + cd /tmp/tmphqzvkt4e/tests/firewall; TEST_SUBJECTS=/cache/fedora-34.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_firewall-68-fdb7e88-fedora-34-wo2_pfuf/artifacts ANSIBLE_COLLECTIONS_PATHS=/tmp/tmpbhiq8xp8:~/.ansible/collections:/usr/share/ansible/collections ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 --skip-tags=tests::nvme /tmp/tmp7s4lfjqz/_setup.yml /tmp/tmphqzvkt4e/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/tmpbhiq8xp8:/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/tmp7s4lfjqz/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmp7s4lfjqz/_setup.yml:5 Tuesday 22 February 2022 05:29:14 +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/tmp7s4lfjqz/_setup.yml:6 Tuesday 22 February 2022 05:29:14 +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 05:29:14 +0000 (0:00:00.020) 0:00:00.048 ****** =============================================================================== fail -------------------------------------------------------------------- 0.02s /tmp/tmp7s4lfjqz/_setup.yml:6 ------------------------------------------------- debug ------------------------------------------------------------------- 0.02s /tmp/tmp7s4lfjqz/_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/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml PLAYBOOK: tests_default.yml **************************************************** 1 plays in /tmp/tmphqzvkt4e/tests/firewall/tests_default.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmphqzvkt4e/tests/firewall/tests_default.yml:1 Tuesday 22 February 2022 05:29:14 +0000 (0:00:00.015) 0:00:00.064 ****** ok: [/cache/fedora-34.qcow2] META: ran handlers TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Tuesday 22 February 2022 05:29:15 +0000 (0:00:01.042) 0:00:01.106 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "rc": 0, "results": [ "Installed: python3-firewall-0.9.4-1.fc34.noarch", "Installed: python3-decorator-4.4.2-4.fc34.noarch", "Installed: iptables-nft-1.8.7-8.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: libnftnl-1.1.9-2.fc34.x86_64", "Installed: ipset-7.11-1.fc34.x86_64", "Installed: firewalld-0.9.4-1.fc34.noarch", "Installed: python3-gobject-base-3.40.1-1.fc34.x86_64", "Installed: firewalld-filesystem-0.9.4-1.fc34.noarch", "Installed: ipset-libs-7.11-1.fc34.x86_64", "Installed: nftables-1:0.9.8-3.fc34.x86_64", "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/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 Tuesday 22 February 2022 05:30:00 +0000 (0:00:45.435) 0:00:46.542 ****** 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/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:13 Tuesday 22 February 2022 05:30:00 +0000 (0:00:00.024) 0:00:46.567 ****** 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/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 Tuesday 22 February 2022 05:30:02 +0000 (0:00:02.062) 0:00:48.630 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "basic.target system.slice sysinit.target dbus.socket dbus-broker.service 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": "nftables.service iptables.service shutdown.target ip6tables.service ebtables.service ipset.service", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "\"man:firewalld(1)\"", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecReloadEx": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "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 sysinit.target 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/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Tuesday 22 February 2022 05:30:04 +0000 (0:00:01.045) 0:00:49.675 ****** 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 05:30:04 +0000 (0:00:00.024) 0:00:49.700 ****** =============================================================================== fedora.linux_system_roles.firewall : Install firewalld ----------------- 45.44s /tmp/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 fedora.linux_system_roles.firewall : Install python3-firewall ----------- 2.06s /tmp/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:13 fedora.linux_system_roles.firewall : Enable and start firewalld service --- 1.05s /tmp/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 Gathering Facts --------------------------------------------------------- 1.04s /tmp/tmphqzvkt4e/tests/firewall/tests_default.yml:1 --------------------------- fedora.linux_system_roles.firewall : Configure firewall ----------------- 0.02s /tmp/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 fedora.linux_system_roles.firewall : Install python-firewall ------------ 0.02s /tmp/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 fail -------------------------------------------------------------------- 0.02s /tmp/tmp7s4lfjqz/_setup.yml:6 ------------------------------------------------- debug ------------------------------------------------------------------- 0.02s /tmp/tmp7s4lfjqz/_setup.yml:5 ------------------------------------------------- + cd /tmp/tmphqzvkt4e/tests/firewall; TEST_SUBJECTS=/cache/fedora-34.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_firewall-68-fdb7e88-fedora-34-wo2_pfuf/artifacts ANSIBLE_COLLECTIONS_PATHS=/tmp/tmpbhiq8xp8:~/.ansible/collections:/usr/share/ansible/collections ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 --skip-tags=tests::nvme /tmp/tmp7s4lfjqz/_setup.yml /tmp/tmphqzvkt4e/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/tmpbhiq8xp8:/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/tmp7s4lfjqz/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmp7s4lfjqz/_setup.yml:5 Tuesday 22 February 2022 05:30:18 +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/tmp7s4lfjqz/_setup.yml:6 Tuesday 22 February 2022 05:30:18 +0000 (0:00:00.017) 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 05:30:18 +0000 (0:00:00.017) 0:00:00.045 ****** =============================================================================== fail -------------------------------------------------------------------- 0.02s /tmp/tmp7s4lfjqz/_setup.yml:6 ------------------------------------------------- debug ------------------------------------------------------------------- 0.02s /tmp/tmp7s4lfjqz/_setup.yml:5 ------------------------------------------------- PLAYBOOK: tests_zone.yml ******************************************************* 1 plays in /tmp/tmphqzvkt4e/tests/firewall/tests_zone.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmphqzvkt4e/tests/firewall/tests_zone.yml:1 Tuesday 22 February 2022 05:30:18 +0000 (0:00:00.013) 0:00:00.058 ****** ok: [/cache/fedora-34.qcow2] META: ran handlers TASK [include_role : fedora.linux_system_roles.firewall] *********************** task path: /tmp/tmphqzvkt4e/tests/firewall/tests_zone.yml:6 Tuesday 22 February 2022 05:30:19 +0000 (0:00:01.108) 0:00:01.167 ****** [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/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Tuesday 22 February 2022 05:30:19 +0000 (0:00:00.029) 0:00:01.197 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "rc": 0, "results": [ "Installed: python3-firewall-0.9.4-1.fc34.noarch", "Installed: python3-decorator-4.4.2-4.fc34.noarch", "Installed: iptables-nft-1.8.7-8.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: libnftnl-1.1.9-2.fc34.x86_64", "Installed: ipset-7.11-1.fc34.x86_64", "Installed: firewalld-0.9.4-1.fc34.noarch", "Installed: python3-gobject-base-3.40.1-1.fc34.x86_64", "Installed: firewalld-filesystem-0.9.4-1.fc34.noarch", "Installed: ipset-libs-7.11-1.fc34.x86_64", "Installed: nftables-1:0.9.8-3.fc34.x86_64", "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/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 Tuesday 22 February 2022 05:31:35 +0000 (0:01:15.593) 0:01:16.790 ****** 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/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:13 Tuesday 22 February 2022 05:31:35 +0000 (0:00:00.026) 0:01:16.816 ****** 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/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 Tuesday 22 February 2022 05:31:37 +0000 (0:00:01.994) 0:01:18.811 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "basic.target dbus.socket sysinit.target polkit.service system.slice dbus-broker.service", "AllowIsolate": "no", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "multi-user.target shutdown.target network-pre.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "ebtables.service nftables.service ip6tables.service iptables.service ipset.service shutdown.target", "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/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Tuesday 22 February 2022 05:31:38 +0000 (0:00:01.030) 0:01:19.841 ****** META: role_complete for /cache/fedora-34.qcow2 TASK [Verify used firewalld zones] ********************************************* task path: /tmp/tmphqzvkt4e/tests/firewall/tests_zone.yml:14 Tuesday 22 February 2022 05:31:38 +0000 (0:00:00.021) 0:01:19.863 ****** statically imported: /tmp/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Tuesday 22 February 2022 05:31:38 +0000 (0:00:00.044) 0:01:19.908 ****** 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/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 Tuesday 22 February 2022 05:31:40 +0000 (0:00:01.996) 0:01:21.905 ****** 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/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:13 Tuesday 22 February 2022 05:31:40 +0000 (0:00:00.036) 0:01:21.941 ****** 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/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 Tuesday 22 February 2022 05:31:42 +0000 (0:00:01.971) 0:01:23.913 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2022-02-22 05:31:37 UTC", "ActiveEnterTimestampMonotonic": "90661505", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "basic.target dbus.socket sysinit.target polkit.service system.slice dbus-broker.service", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-02-22 05:31:37 UTC", "AssertTimestampMonotonic": "90416671", "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": "417581000", "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 05:31:37 UTC", "ConditionTimestampMonotonic": "90416669", "ConfigurationDirectoryMode": "0755", "Conflicts": "ebtables.service nftables.service ip6tables.service iptables.service ipset.service shutdown.target", "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": "7473", "ExecMainStartTimestamp": "Tue 2022-02-22 05:31:37 UTC", "ExecMainStartTimestampMonotonic": "90417761", "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 05:31:37 UTC] ; stop_time=[n/a] ; pid=7473 ; 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 05:31:37 UTC] ; stop_time=[n/a] ; pid=7473 ; 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 05:31:37 UTC", "InactiveExitTimestampMonotonic": "90418024", "InvocationID": "050526552aee454cbf6a564d03b80c39", "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": "7473", "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": "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 05:31:37 UTC", "StateChangeTimestampMonotonic": "90661505", "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/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Tuesday 22 February 2022 05:31:42 +0000 (0:00:00.527) 0:01:24.440 ****** 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/tmphqzvkt4e/tests/firewall/tests_zone.yml:26 Tuesday 22 February 2022 05:31:44 +0000 (0:00:01.761) 0:01:26.202 ****** skipping: [/cache/fedora-34.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Setup firewalld] ********************************************************* task path: /tmp/tmphqzvkt4e/tests/firewall/tests_zone.yml:32 Tuesday 22 February 2022 05:31:44 +0000 (0:00:00.031) 0:01:26.233 ****** statically imported: /tmp/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Tuesday 22 February 2022 05:31:44 +0000 (0:00:00.046) 0:01:26.280 ****** 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/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 Tuesday 22 February 2022 05:31:46 +0000 (0:00:02.005) 0:01:28.285 ****** 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/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:13 Tuesday 22 February 2022 05:31:46 +0000 (0:00:00.034) 0:01:28.320 ****** 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/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 Tuesday 22 February 2022 05:31:48 +0000 (0:00:01.964) 0:01:30.284 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2022-02-22 05:31:37 UTC", "ActiveEnterTimestampMonotonic": "90661505", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "basic.target dbus.socket sysinit.target polkit.service system.slice dbus-broker.service", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-02-22 05:31:37 UTC", "AssertTimestampMonotonic": "90416671", "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": "570819000", "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 05:31:37 UTC", "ConditionTimestampMonotonic": "90416669", "ConfigurationDirectoryMode": "0755", "Conflicts": "ebtables.service nftables.service ip6tables.service iptables.service ipset.service shutdown.target", "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": "7473", "ExecMainStartTimestamp": "Tue 2022-02-22 05:31:37 UTC", "ExecMainStartTimestampMonotonic": "90417761", "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 05:31:37 UTC] ; stop_time=[n/a] ; pid=7473 ; 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 05:31:37 UTC] ; stop_time=[n/a] ; pid=7473 ; 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 05:31:37 UTC", "InactiveExitTimestampMonotonic": "90418024", "InvocationID": "050526552aee454cbf6a564d03b80c39", "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": "7473", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryCurrent": "26677248", "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 05:31:37 UTC", "StateChangeTimestampMonotonic": "90661505", "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/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Tuesday 22 February 2022 05:31:49 +0000 (0:00:00.524) 0:01:30.809 ****** 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/tmphqzvkt4e/tests/firewall/tests_zone.yml:60 Tuesday 22 February 2022 05:31:52 +0000 (0:00:03.344) 0:01:34.154 ****** skipping: [/cache/fedora-34.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Setup firewalld again] *************************************************** task path: /tmp/tmphqzvkt4e/tests/firewall/tests_zone.yml:66 Tuesday 22 February 2022 05:31:52 +0000 (0:00:00.037) 0:01:34.191 ****** TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Tuesday 22 February 2022 05:31:52 +0000 (0:00:00.049) 0:01:34.241 ****** 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/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 Tuesday 22 February 2022 05:31:54 +0000 (0:00:02.112) 0:01:36.354 ****** 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/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:13 Tuesday 22 February 2022 05:31:54 +0000 (0:00:00.037) 0:01:36.391 ****** 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/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 Tuesday 22 February 2022 05:31:56 +0000 (0:00:01.891) 0:01:38.283 ****** ok: [/cache/fedora-34.qcow2] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2022-02-22 05:31:37 UTC", "ActiveEnterTimestampMonotonic": "90661505", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "basic.target dbus.socket sysinit.target polkit.service system.slice dbus-broker.service", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Tue 2022-02-22 05:31:37 UTC", "AssertTimestampMonotonic": "90416671", "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": "1029944000", "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 05:31:37 UTC", "ConditionTimestampMonotonic": "90416669", "ConfigurationDirectoryMode": "0755", "Conflicts": "ebtables.service nftables.service ip6tables.service iptables.service ipset.service shutdown.target", "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": "7473", "ExecMainStartTimestamp": "Tue 2022-02-22 05:31:37 UTC", "ExecMainStartTimestampMonotonic": "90417761", "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 05:31:37 UTC] ; stop_time=[n/a] ; pid=7473 ; 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 05:31:37 UTC] ; stop_time=[n/a] ; pid=7473 ; 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 05:31:37 UTC", "InactiveExitTimestampMonotonic": "90418024", "InvocationID": "050526552aee454cbf6a564d03b80c39", "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": "7473", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryCurrent": "28205056", "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 05:31:37 UTC", "StateChangeTimestampMonotonic": "90661505", "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/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Tuesday 22 February 2022 05:31:57 +0000 (0:00:00.531) 0:01:38.814 ****** 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/tmphqzvkt4e/tests/firewall/tests_zone.yml:94 Tuesday 22 February 2022 05:32:00 +0000 (0:00:03.145) 0:01:41.960 ****** skipping: [/cache/fedora-34.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify firewalld zone internal services] ********************************* task path: /tmp/tmphqzvkt4e/tests/firewall/tests_zone.yml:100 Tuesday 22 February 2022 05:32:00 +0000 (0:00:00.032) 0:01:41.993 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-services" ], "delta": "0:00:00.249263", "end": "2022-02-22 05:32:00.590121", "failed_when_result": false, "rc": 0, "start": "2022-02-22 05:32:00.340858" } STDOUT: dhcpv6-client ftp mdns samba-client ssh tftp TASK [Verify firewalld zone internal ports] ************************************ task path: /tmp/tmphqzvkt4e/tests/firewall/tests_zone.yml:105 Tuesday 22 February 2022 05:32:01 +0000 (0:00:00.765) 0:01:42.758 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-ports" ], "delta": "0:00:00.276495", "end": "2022-02-22 05:32:01.239546", "failed_when_result": false, "rc": 0, "start": "2022-02-22 05:32:00.963051" } STDOUT: 443/tcp 443/udp TASK [Verify firewalld zone internal forward ports] **************************** task path: /tmp/tmphqzvkt4e/tests/firewall/tests_zone.yml:110 Tuesday 22 February 2022 05:32:01 +0000 (0:00:00.654) 0:01:43.412 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-forward-ports" ], "delta": "0:00:00.249687", "end": "2022-02-22 05:32:01.892285", "failed_when_result": false, "rc": 0, "start": "2022-02-22 05:32:01.642598" } 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/tmphqzvkt4e/tests/firewall/tests_zone.yml:115 Tuesday 22 February 2022 05:32:02 +0000 (0:00:00.649) 0:01:44.062 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=customzone", "--query-masquerade" ], "delta": "0:00:00.278230", "end": "2022-02-22 05:32:02.561910", "failed_when_result": false, "rc": 0, "start": "2022-02-22 05:32:02.283680" } STDOUT: yes TASK [Verify custom zone has masquerade added to it] *************************** task path: /tmp/tmphqzvkt4e/tests/firewall/tests_zone.yml:120 Tuesday 22 February 2022 05:32:03 +0000 (0:00:00.675) 0:01:44.737 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--get-default-zone" ], "delta": "0:00:00.243064", "end": "2022-02-22 05:32:03.183172", "failed_when_result": false, "rc": 0, "start": "2022-02-22 05:32:02.940108" } STDOUT: dmz TASK [Verify that service http has been added to the default zone dmz] ********* task path: /tmp/tmphqzvkt4e/tests/firewall/tests_zone.yml:125 Tuesday 22 February 2022 05:32:03 +0000 (0:00:00.616) 0:01:45.354 ****** changed: [/cache/fedora-34.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--zone=dmz", "--query-service=http" ], "delta": "0:00:00.239516", "end": "2022-02-22 05:32:03.805662", "failed_when_result": false, "rc": 0, "start": "2022-02-22 05:32:03.566146" } STDOUT: yes TASK [Reset to zone defaults] ************************************************** task path: /tmp/tmphqzvkt4e/tests/firewall/tests_zone.yml:133 Tuesday 22 February 2022 05:32:04 +0000 (0:00:00.622) 0:01:45.976 ****** 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.150861", "end": "2022-02-22 05:32:05.323759", "rc": 0, "start": "2022-02-22 05:32:04.172898" } STDOUT: success success success success 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 05:32:05 +0000 (0:00:01.520) 0:01:47.497 ****** =============================================================================== fedora.linux_system_roles.firewall : Install firewalld ----------------- 75.59s /tmp/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 fedora.linux_system_roles.firewall : Configure firewall ----------------- 3.15s /tmp/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 fedora.linux_system_roles.firewall : Install firewalld ------------------ 2.11s /tmp/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 fedora.linux_system_roles.firewall : Install firewalld ------------------ 2.00s /tmp/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 fedora.linux_system_roles.firewall : Install python3-firewall ----------- 1.99s /tmp/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:13 fedora.linux_system_roles.firewall : Install python3-firewall ----------- 1.97s /tmp/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:13 fedora.linux_system_roles.firewall : Install python3-firewall ----------- 1.89s /tmp/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:13 fedora.linux_system_roles.firewall : Configure firewall ----------------- 1.76s /tmp/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Reset to zone defaults -------------------------------------------------- 1.52s /tmp/tmphqzvkt4e/tests/firewall/tests_zone.yml:133 ---------------------------- Gathering Facts --------------------------------------------------------- 1.11s /tmp/tmphqzvkt4e/tests/firewall/tests_zone.yml:1 ------------------------------ fedora.linux_system_roles.firewall : Enable and start firewalld service --- 1.03s /tmp/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 Verify firewalld zone internal services --------------------------------- 0.77s /tmp/tmphqzvkt4e/tests/firewall/tests_zone.yml:100 ---------------------------- Verify custom zone has masquerade added to it --------------------------- 0.68s /tmp/tmphqzvkt4e/tests/firewall/tests_zone.yml:115 ---------------------------- Verify firewalld zone internal ports ------------------------------------ 0.65s /tmp/tmphqzvkt4e/tests/firewall/tests_zone.yml:105 ---------------------------- Verify firewalld zone internal forward ports ---------------------------- 0.65s /tmp/tmphqzvkt4e/tests/firewall/tests_zone.yml:110 ---------------------------- Verify that service http has been added to the default zone dmz --------- 0.62s /tmp/tmphqzvkt4e/tests/firewall/tests_zone.yml:125 ---------------------------- Verify custom zone has masquerade added to it --------------------------- 0.62s /tmp/tmphqzvkt4e/tests/firewall/tests_zone.yml:120 ---------------------------- fedora.linux_system_roles.firewall : Enable and start firewalld service --- 0.53s /tmp/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 fedora.linux_system_roles.firewall : Enable and start firewalld service --- 0.53s /tmp/tmpbhiq8xp8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 Setup firewalld again --------------------------------------------------- 0.05s /tmp/tmphqzvkt4e/tests/firewall/tests_zone.yml:66 -----------------------------