+ cd /tmp/tmph5xvua07/tests; TEST_SUBJECTS=/cache/fedora-35.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_firewall-56-a448d10-fedora-35-7b1erzwg/artifacts ANSIBLE_COLLECTIONS_PATHS=/tmp/tmphl6yxvf8:~/.ansible/collections:/usr/share/ansible/collections ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 --skip-tags=tests::cleanup,tests::nvme /tmp/tmph5xvua07/_setup.yml /tmp/tmph5xvua07/tests/tests_ansible.yml ansible-playbook [core 2.12.0.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/tmphl6yxvf8:/home/runner/.ansible/collections:/usr/share/ansible/collections executable location = /usr/local/bin/ansible-playbook python version = 3.8.8 (default, Aug 25 2021, 16:13:02) [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 '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/tmph5xvua07/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmph5xvua07/_setup.yml:5 ok: [/cache/fedora-35.qcow2] => { "groups": { "all": [ "/cache/fedora-35.qcow2" ], "localhost": [ "/cache/fedora-35.qcow2" ], "subjects": [ "/cache/fedora-35.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmph5xvua07/_setup.yml:6 skipping: [/cache/fedora-35.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-35.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 [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/tmph5xvua07/tasks/firewalld.yml PLAYBOOK: tests_ansible.yml **************************************************** 1 plays in /tmp/tmph5xvua07/tests/tests_ansible.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:1 ok: [/cache/fedora-35.qcow2] META: ran handlers TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmph5xvua07/tasks/firewalld.yml:2 changed: [/cache/fedora-35.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: ipset-7.15-1.fc35.x86_64", "Installed: iptables-nft-1.8.7-13.fc35.x86_64", "Installed: firewalld-1.0.1-2.fc35.noarch", "Installed: firewalld-filesystem-1.0.1-2.fc35.noarch", "Installed: ipset-libs-7.15-1.fc35.x86_64", "Installed: python3-gobject-base-3.42.0-1.fc35.x86_64", "Installed: python3-nftables-1:1.0.0-1.fc35.x86_64", "Installed: python3-firewall-1.0.1-2.fc35.noarch", "Installed: libcap-ng-python3-0.8.2-6.fc35.x86_64", "Installed: gobject-introspection-1.70.0-1.fc35.x86_64", "Installed: jansson-2.13.1-3.fc35.x86_64", "Installed: libnftnl-1.2.0-2.fc35.x86_64", "Installed: nftables-1:1.0.0-1.fc35.x86_64"]} TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmph5xvua07/tasks/firewalld.yml:7 skipping: [/cache/fedora-35.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmph5xvua07/tasks/firewalld.yml:13 ok: [/cache/fedora-35.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmph5xvua07/tasks/firewalld.yml:19 changed: [/cache/fedora-35.qcow2] => {"changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": {"ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "dbus-broker.service basic.target dbus.socket system.slice sysinit.target polkit.service", "AllowIsolate": "no", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "network-pre.target shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "ip6tables.service ebtables.service shutdown.target ipset.service iptables.service nftables.service", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "\"man:firewalld(1)\"", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecReloadEx": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7730", "LimitNPROCSoft": "7730", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7730", "LimitSIGPENDINGSoft": "7730", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "firewalld.service dbus-org.fedoraproject.FirewallD1.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice sysinit.target dbus.socket", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "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": "2319", "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/tmph5xvua07/tasks/main.yml:3 META: role_complete for /cache/fedora-35.qcow2 TASK [Remove custom zone] ****************************************************** task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:14 changed: [/cache/fedora-35.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--delete-zone=custom"], "delta": "0:00:00.222368", "end": "2021-11-20 16:24:37.932539", "failed_when_result": false, "msg": "non-zero return code", "rc": 112, "start": "2021-11-20 16:24:37.710171", "stderr": "Error: INVALID_ZONE: custom", "stderr_lines": ["Error: INVALID_ZONE: custom"], "stdout": "", "stdout_lines": []} TASK [Reset internal zone to defaults] ***************************************** task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:19 changed: [/cache/fedora-35.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--load-zone-defaults=internal"], "delta": "0:00:00.212066", "end": "2021-11-20 16:24:38.499872", "failed_when_result": false, "msg": "non-zero return code", "rc": 22, "start": "2021-11-20 16:24:38.287806", "stderr": "Error: NO_DEFAULTS: internal", "stderr_lines": ["Error: NO_DEFAULTS: internal"], "stdout": "", "stdout_lines": []} TASK [Reset trusted zone to defaults] ****************************************** task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:24 changed: [/cache/fedora-35.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--load-zone-defaults=trusted"], "delta": "0:00:00.217715", "end": "2021-11-20 16:24:39.086309", "failed_when_result": false, "msg": "non-zero return code", "rc": 22, "start": "2021-11-20 16:24:38.868594", "stderr": "Error: NO_DEFAULTS: trusted", "stderr_lines": ["Error: NO_DEFAULTS: trusted"], "stdout": "", "stdout_lines": []} TASK [Reset dmz zone to defaults] ********************************************** task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:29 changed: [/cache/fedora-35.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--load-zone-defaults=dmz"], "delta": "0:00:00.220864", "end": "2021-11-20 16:24:39.674583", "failed_when_result": false, "msg": "non-zero return code", "rc": 22, "start": "2021-11-20 16:24:39.453719", "stderr": "Error: NO_DEFAULTS: dmz", "stderr_lines": ["Error: NO_DEFAULTS: dmz"], "stdout": "", "stdout_lines": []} TASK [Reset drop zone to defaults] ********************************************* task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:34 changed: [/cache/fedora-35.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--load-zone-defaults=drop"], "delta": "0:00:00.213790", "end": "2021-11-20 16:24:40.256595", "failed_when_result": false, "msg": "non-zero return code", "rc": 22, "start": "2021-11-20 16:24:40.042805", "stderr": "Error: NO_DEFAULTS: drop", "stderr_lines": ["Error: NO_DEFAULTS: drop"], "stdout": "", "stdout_lines": []} TASK [Reset public zone to defaults] ******************************************* task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:39 changed: [/cache/fedora-35.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--load-zone-defaults=public"], "delta": "0:00:00.206167", "end": "2021-11-20 16:24:40.819385", "failed_when_result": false, "msg": "non-zero return code", "rc": 22, "start": "2021-11-20 16:24:40.613218", "stderr": "Error: NO_DEFAULTS: public", "stderr_lines": ["Error: NO_DEFAULTS: public"], "stdout": "", "stdout_lines": []} TASK [Reset default zone to defaults] ****************************************** task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:44 changed: [/cache/fedora-35.qcow2] => {"changed": true, "cmd": "zone=$(firewall-cmd --get-default-zone)\nfirewall-cmd --permanent --load-zone-defaults=$zone\n", "delta": "0:00:00.413558", "end": "2021-11-20 16:24:41.595518", "failed_when_result": false, "msg": "non-zero return code", "rc": 22, "start": "2021-11-20 16:24:41.181960", "stderr": "Error: NO_DEFAULTS: public", "stderr_lines": ["Error: NO_DEFAULTS: public"], "stdout": "", "stdout_lines": []} TASK [Create custom zone] ****************************************************** task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:52 changed: [/cache/fedora-35.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--new-zone=custom"], "delta": "0:00:00.198186", "end": "2021-11-20 16:24:42.169042", "failed_when_result": false, "msg": "", "rc": 0, "start": "2021-11-20 16:24:41.970856", "stderr": "", "stderr_lines": [], "stdout": "success", "stdout_lines": ["success"]} TASK [Reload firewalld] ******************************************************** task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:57 changed: [/cache/fedora-35.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--reload"], "delta": "0:00:00.328413", "end": "2021-11-20 16:24:42.862295", "failed_when_result": false, "msg": "", "rc": 0, "start": "2021-11-20 16:24:42.533882", "stderr": "", "stderr_lines": [], "stdout": "success", "stdout_lines": ["success"]} TASK [Permit traffic in default zone for https service] ************************ task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:64 changed: [/cache/fedora-35.qcow2] => {"changed": true, "failed_when_result": false} TASK [Permit traffic in default zone for https service, again] ***************** task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:72 ok: [/cache/fedora-35.qcow2] => {"changed": false, "failed_when_result": false} TASK [Permit traffic in default zone on port 8081/tcp] ************************* task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:80 changed: [/cache/fedora-35.qcow2] => {"changed": true, "failed_when_result": false} TASK [Permit traffic in default zone on port 8081/tcp, again] ****************** task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:88 ok: [/cache/fedora-35.qcow2] => {"changed": false, "failed_when_result": false} TASK [Allow port 161-162/udp in permanent default zone] ************************ task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:96 changed: [/cache/fedora-35.qcow2] => {"changed": true, "failed_when_result": false} TASK [Allow port 161-162/udp in permanent default zone, again] ***************** task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:104 ok: [/cache/fedora-35.qcow2] => {"changed": false, "failed_when_result": false} TASK [Do not permit traffic in default zone on port 8081/tcp] ****************** task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:112 changed: [/cache/fedora-35.qcow2] => {"changed": true, "failed_when_result": false} TASK [Do not permit traffic in default zone on port 8081/tcp, again] *********** task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:120 ok: [/cache/fedora-35.qcow2] => {"changed": false, "failed_when_result": false} TASK [Allow service http in permanent dmz zone] ******************************** task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:128 changed: [/cache/fedora-35.qcow2] => {"changed": true, "failed_when_result": false} TASK [Allow service http in permanent dmz zone, again] ************************* task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:137 ok: [/cache/fedora-35.qcow2] => {"changed": false, "failed_when_result": false} TASK [Allow service ftp with limitation using rich rule in permanent default zone] *** task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:146 changed: [/cache/fedora-35.qcow2] => {"changed": true, "failed_when_result": false} TASK [Allow service ftp with limitation using rich rule in permanent default zone, again] *** task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:155 ok: [/cache/fedora-35.qcow2] => {"changed": false, "failed_when_result": false} TASK [Allow source 192.0.2.0/24 in internal zone] ****************************** task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:164 changed: [/cache/fedora-35.qcow2] => {"changed": true, "failed_when_result": false} TASK [Allow source 192.0.2.0/24 in internal zone, again] *********************** task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:173 ok: [/cache/fedora-35.qcow2] => {"changed": false, "failed_when_result": false} TASK [Allow interface eth2 in permanent trusted zone] ************************** task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:182 changed: [/cache/fedora-35.qcow2] => {"changed": true, "failed_when_result": false} TASK [Allow interface eth2 in permanent trusted zone, again] ******************* task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:191 ok: [/cache/fedora-35.qcow2] => {"changed": false, "failed_when_result": false} TASK [Allow masquerading in permament dmz zone] ******************************** task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:200 changed: [/cache/fedora-35.qcow2] => {"changed": true, "failed_when_result": false} TASK [Allow masquerading in permament dmz zone, again] ************************* task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:209 ok: [/cache/fedora-35.qcow2] => {"changed": false, "failed_when_result": false} TASK [Ensure permanent custom zone exists (no change)] ************************* task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:218 ok: [/cache/fedora-35.qcow2] => {"changed": false, "failed_when_result": false} TASK [Ensure ICMP block inversion in permanent drop zone] ********************** task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:226 changed: [/cache/fedora-35.qcow2] => {"changed": true, "failed_when_result": false} TASK [Ensure ICMP block inversion in permanent drop zone, again] *************** task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:235 ok: [/cache/fedora-35.qcow2] => {"changed": false, "failed_when_result": false} TASK [Block ICMP echo-request in permanent drop zone] ************************** task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:244 changed: [/cache/fedora-35.qcow2] => {"changed": true, "failed_when_result": false} TASK [Block ICMP echo-request in permanent drop zone, again] ******************* task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:253 ok: [/cache/fedora-35.qcow2] => {"changed": false, "failed_when_result": false} TASK [Ensure default target in permanent internal zone (no change)] ************ task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:262 ok: [/cache/fedora-35.qcow2] => {"changed": false, "failed_when_result": false} TASK [Ensure target ACCEPT in permanent internal zone] ************************* task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:271 changed: [/cache/fedora-35.qcow2] => {"changed": true, "failed_when_result": false} TASK [Ensure target ACCEPT in permanent internal zone, again] ****************** task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:280 ok: [/cache/fedora-35.qcow2] => {"changed": false, "failed_when_result": false} TASK [Ensure default target in permanent internal zone] ************************ task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:289 changed: [/cache/fedora-35.qcow2] => {"changed": true, "failed_when_result": false} TASK [Ensure default target in permanent internal zone, again] ***************** task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:298 ok: [/cache/fedora-35.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/tmph5xvua07/tests/tests_ansible.yml:307 [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-35.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/tmph5xvua07/tests/tests_ansible.yml:319 ok: [/cache/fedora-35.qcow2] => {"changed": false, "failed_when_result": false} TASK [Firewalld custom zone] *************************************************** task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:331 changed: [/cache/fedora-35.qcow2] => {"changed": true} TASK [assert firewalld custom zone] ******************************************** task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:338 ok: [/cache/fedora-35.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Remove custom zone] ****************************************************** task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:347 changed: [/cache/fedora-35.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--delete-zone=custom"], "delta": "0:00:00.220014", "end": "2021-11-20 16:24:58.954023", "failed_when_result": false, "msg": "", "rc": 0, "start": "2021-11-20 16:24:58.734009", "stderr": "", "stderr_lines": [], "stdout": "success", "stdout_lines": ["success"]} TASK [Reset internal zone to defaults] ***************************************** task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:352 changed: [/cache/fedora-35.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--load-zone-defaults=internal"], "delta": "0:00:00.214746", "end": "2021-11-20 16:24:59.528712", "failed_when_result": false, "msg": "", "rc": 0, "start": "2021-11-20 16:24:59.313966", "stderr": "", "stderr_lines": [], "stdout": "success", "stdout_lines": ["success"]} TASK [Reset trusted zone to defaults] ****************************************** task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:357 changed: [/cache/fedora-35.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--load-zone-defaults=trusted"], "delta": "0:00:00.202395", "end": "2021-11-20 16:25:00.089511", "failed_when_result": false, "msg": "", "rc": 0, "start": "2021-11-20 16:24:59.887116", "stderr": "", "stderr_lines": [], "stdout": "success", "stdout_lines": ["success"]} TASK [Reset dmz zone to defaults] ********************************************** task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:362 changed: [/cache/fedora-35.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--load-zone-defaults=dmz"], "delta": "0:00:00.202707", "end": "2021-11-20 16:25:00.651718", "failed_when_result": false, "msg": "", "rc": 0, "start": "2021-11-20 16:25:00.449011", "stderr": "", "stderr_lines": [], "stdout": "success", "stdout_lines": ["success"]} TASK [Reset drop zone to defaults] ********************************************* task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:367 changed: [/cache/fedora-35.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--load-zone-defaults=drop"], "delta": "0:00:00.216834", "end": "2021-11-20 16:25:01.223725", "failed_when_result": false, "msg": "", "rc": 0, "start": "2021-11-20 16:25:01.006891", "stderr": "", "stderr_lines": [], "stdout": "success", "stdout_lines": ["success"]} TASK [Reset public zone to defaults] ******************************************* task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:372 changed: [/cache/fedora-35.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--load-zone-defaults=public"], "delta": "0:00:00.223439", "end": "2021-11-20 16:25:01.804557", "failed_when_result": false, "msg": "", "rc": 0, "start": "2021-11-20 16:25:01.581118", "stderr": "", "stderr_lines": [], "stdout": "success", "stdout_lines": ["success"]} TASK [Reset default zone to defaults] ****************************************** task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:377 changed: [/cache/fedora-35.qcow2] => {"changed": true, "cmd": "zone=$(firewall-cmd --get-default-zone)\nfirewall-cmd --permanent --load-zone-defaults=$zone\n", "delta": "0:00:00.429607", "end": "2021-11-20 16:25:02.612616", "failed_when_result": false, "msg": "non-zero return code", "rc": 22, "start": "2021-11-20 16:25:02.183009", "stderr": "Error: NO_DEFAULTS: public", "stderr_lines": ["Error: NO_DEFAULTS: public"], "stdout": "", "stdout_lines": []} TASK [Reload firewalld] ******************************************************** task path: /tmp/tmph5xvua07/tests/tests_ansible.yml:385 changed: [/cache/fedora-35.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--reload"], "delta": "0:00:00.297381", "end": "2021-11-20 16:25:03.278288", "failed_when_result": false, "msg": "", "rc": 0, "start": "2021-11-20 16:25:02.980907", "stderr": "", "stderr_lines": [], "stdout": "success", "stdout_lines": ["success"]} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-35.qcow2 : ok=54 changed=34 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 + cd /tmp/tmph5xvua07/tests; TEST_SUBJECTS=/cache/fedora-35.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_firewall-56-a448d10-fedora-35-7b1erzwg/artifacts ANSIBLE_COLLECTIONS_PATHS=/tmp/tmphl6yxvf8:~/.ansible/collections:/usr/share/ansible/collections ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 --skip-tags=tests::cleanup,tests::nvme /tmp/tmph5xvua07/_setup.yml /tmp/tmph5xvua07/tests/tests_default.yml ansible-playbook [core 2.12.0.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/tmphl6yxvf8:/home/runner/.ansible/collections:/usr/share/ansible/collections executable location = /usr/local/bin/ansible-playbook python version = 3.8.8 (default, Aug 25 2021, 16:13:02) [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 '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/tmph5xvua07/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmph5xvua07/_setup.yml:5 ok: [/cache/fedora-35.qcow2] => { "groups": { "all": [ "/cache/fedora-35.qcow2" ], "localhost": [ "/cache/fedora-35.qcow2" ], "subjects": [ "/cache/fedora-35.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmph5xvua07/_setup.yml:6 skipping: [/cache/fedora-35.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-35.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 [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/tmph5xvua07/tasks/firewalld.yml PLAYBOOK: tests_default.yml **************************************************** 1 plays in /tmp/tmph5xvua07/tests/tests_default.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmph5xvua07/tests/tests_default.yml:1 ok: [/cache/fedora-35.qcow2] META: ran handlers TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmph5xvua07/tasks/firewalld.yml:2 changed: [/cache/fedora-35.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: ipset-7.15-1.fc35.x86_64", "Installed: iptables-nft-1.8.7-13.fc35.x86_64", "Installed: firewalld-1.0.1-2.fc35.noarch", "Installed: firewalld-filesystem-1.0.1-2.fc35.noarch", "Installed: ipset-libs-7.15-1.fc35.x86_64", "Installed: python3-gobject-base-3.42.0-1.fc35.x86_64", "Installed: python3-nftables-1:1.0.0-1.fc35.x86_64", "Installed: python3-firewall-1.0.1-2.fc35.noarch", "Installed: libcap-ng-python3-0.8.2-6.fc35.x86_64", "Installed: gobject-introspection-1.70.0-1.fc35.x86_64", "Installed: jansson-2.13.1-3.fc35.x86_64", "Installed: libnftnl-1.2.0-2.fc35.x86_64", "Installed: nftables-1:1.0.0-1.fc35.x86_64"]} TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmph5xvua07/tasks/firewalld.yml:7 skipping: [/cache/fedora-35.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmph5xvua07/tasks/firewalld.yml:13 ok: [/cache/fedora-35.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmph5xvua07/tasks/firewalld.yml:19 changed: [/cache/fedora-35.qcow2] => {"changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": {"ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "dbus-broker.service polkit.service sysinit.target dbus.socket system.slice basic.target", "AllowIsolate": "no", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "network-pre.target shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "ebtables.service ipset.service shutdown.target nftables.service ip6tables.service iptables.service", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "\"man:firewalld(1)\"", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecReloadEx": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7730", "LimitNPROCSoft": "7730", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7730", "LimitSIGPENDINGSoft": "7730", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "firewalld.service dbus-org.fedoraproject.FirewallD1.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice sysinit.target dbus.socket", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "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": "2319", "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/tmph5xvua07/tasks/main.yml:3 META: role_complete for /cache/fedora-35.qcow2 META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-35.qcow2 : ok=5 changed=2 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 + cd /tmp/tmph5xvua07/tests; TEST_SUBJECTS=/cache/fedora-35.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_firewall-56-a448d10-fedora-35-7b1erzwg/artifacts ANSIBLE_COLLECTIONS_PATHS=/tmp/tmphl6yxvf8:~/.ansible/collections:/usr/share/ansible/collections ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 --skip-tags=tests::cleanup,tests::nvme /tmp/tmph5xvua07/_setup.yml /tmp/tmph5xvua07/tests/tests_zone.yml ansible-playbook [core 2.12.0.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/tmphl6yxvf8:/home/runner/.ansible/collections:/usr/share/ansible/collections executable location = /usr/local/bin/ansible-playbook python version = 3.8.8 (default, Aug 25 2021, 16:13:02) [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 '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/tmph5xvua07/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmph5xvua07/_setup.yml:5 ok: [/cache/fedora-35.qcow2] => { "groups": { "all": [ "/cache/fedora-35.qcow2" ], "localhost": [ "/cache/fedora-35.qcow2" ], "subjects": [ "/cache/fedora-35.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmph5xvua07/_setup.yml:6 skipping: [/cache/fedora-35.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-35.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_zone.yml ******************************************************* 1 plays in /tmp/tmph5xvua07/tests/tests_zone.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmph5xvua07/tests/tests_zone.yml:1 ok: [/cache/fedora-35.qcow2] META: ran handlers TASK [include_role : linux-system-roles.firewall] ****************************** task path: /tmp/tmph5xvua07/tests/tests_zone.yml:6 [DEPRECATION WARNING]: "include" is deprecated, use include_tasks/import_tasks instead. This feature will be removed in version 2.16. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. statically imported: /tmp/tmph5xvua07/tasks/firewalld.yml TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmph5xvua07/tasks/firewalld.yml:2 changed: [/cache/fedora-35.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: ipset-7.15-1.fc35.x86_64", "Installed: iptables-nft-1.8.7-13.fc35.x86_64", "Installed: firewalld-1.0.1-2.fc35.noarch", "Installed: firewalld-filesystem-1.0.1-2.fc35.noarch", "Installed: ipset-libs-7.15-1.fc35.x86_64", "Installed: python3-gobject-base-3.42.0-1.fc35.x86_64", "Installed: python3-nftables-1:1.0.0-1.fc35.x86_64", "Installed: python3-firewall-1.0.1-2.fc35.noarch", "Installed: libcap-ng-python3-0.8.2-6.fc35.x86_64", "Installed: gobject-introspection-1.70.0-1.fc35.x86_64", "Installed: jansson-2.13.1-3.fc35.x86_64", "Installed: libnftnl-1.2.0-2.fc35.x86_64", "Installed: nftables-1:1.0.0-1.fc35.x86_64"]} TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmph5xvua07/tasks/firewalld.yml:7 skipping: [/cache/fedora-35.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmph5xvua07/tasks/firewalld.yml:13 ok: [/cache/fedora-35.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmph5xvua07/tasks/firewalld.yml:19 changed: [/cache/fedora-35.qcow2] => {"changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": {"ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "system.slice polkit.service sysinit.target dbus.socket dbus-broker.service basic.target", "AllowIsolate": "no", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "multi-user.target shutdown.target network-pre.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target ipset.service nftables.service iptables.service ip6tables.service ebtables.service", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "\"man:firewalld(1)\"", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecReloadEx": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7730", "LimitNPROCSoft": "7730", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7730", "LimitSIGPENDINGSoft": "7730", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "firewalld.service dbus-org.fedoraproject.FirewallD1.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket 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": "2319", "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/tmph5xvua07/tasks/main.yml:3 META: role_complete for /cache/fedora-35.qcow2 TASK [Verify used firewalld zones] ********************************************* task path: /tmp/tmph5xvua07/tests/tests_zone.yml:14 statically imported: /tmp/tmph5xvua07/tasks/firewalld.yml TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmph5xvua07/tasks/firewalld.yml:2 ok: [/cache/fedora-35.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmph5xvua07/tasks/firewalld.yml:7 skipping: [/cache/fedora-35.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmph5xvua07/tasks/firewalld.yml:13 ok: [/cache/fedora-35.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmph5xvua07/tasks/firewalld.yml:19 ok: [/cache/fedora-35.qcow2] => {"changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": {"ActiveEnterTimestamp": "Sat 2021-11-20 16:27:08 UTC", "ActiveEnterTimestampMonotonic": "58251306", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "system.slice polkit.service sysinit.target dbus.socket dbus-broker.service basic.target", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Sat 2021-11-20 16:27:08 UTC", "AssertTimestampMonotonic": "58107219", "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": "272557000", "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": "Sat 2021-11-20 16:27:08 UTC", "ConditionTimestampMonotonic": "58107217", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target ipset.service nftables.service iptables.service ip6tables.service ebtables.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "\"man:firewalld(1)\"", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "7442", "ExecMainStartTimestamp": "Sat 2021-11-20 16:27:08 UTC", "ExecMainStartTimestampMonotonic": "58108474", "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=[Sat 2021-11-20 16:27:08 UTC] ; stop_time=[n/a] ; pid=7442 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; flags= ; start_time=[Sat 2021-11-20 16:27:08 UTC] ; stop_time=[n/a] ; pid=7442 ; 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": "Sat 2021-11-20 16:27:08 UTC", "InactiveExitTimestampMonotonic": "58108726", "InvocationID": "26d897880f654030a1c4c8c15c5f391e", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7730", "LimitNPROCSoft": "7730", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7730", "LimitSIGPENDINGSoft": "7730", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "7442", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "23154688", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "firewalld.service dbus-org.fedoraproject.FirewallD1.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket 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]", "StateChangeTimestamp": "Sat 2021-11-20 16:27:08 UTC", "StateChangeTimestampMonotonic": "58251306", "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": "2319", "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/tmph5xvua07/tasks/main.yml:3 ok: [/cache/fedora-35.qcow2] => (item={'zone': 'internal', 'state': 'enabled'}) => {"ansible_loop_var": "item", "changed": false, "item": {"state": "enabled", "zone": "internal"}} ok: [/cache/fedora-35.qcow2] => (item={'zone': 'external', 'state': 'enabled'}) => {"ansible_loop_var": "item", "changed": false, "item": {"state": "enabled", "zone": "external"}} ok: [/cache/fedora-35.qcow2] => (item={'zone': 'trusted', 'state': 'enabled'}) => {"ansible_loop_var": "item", "changed": false, "item": {"state": "enabled", "zone": "trusted"}} META: role_complete for /cache/fedora-35.qcow2 TASK [Fail on missing zones] *************************************************** task path: /tmp/tmph5xvua07/tests/tests_zone.yml:26 skipping: [/cache/fedora-35.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Setup firewalld] ********************************************************* task path: /tmp/tmph5xvua07/tests/tests_zone.yml:32 statically imported: /tmp/tmph5xvua07/tasks/firewalld.yml TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmph5xvua07/tasks/firewalld.yml:2 ok: [/cache/fedora-35.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmph5xvua07/tasks/firewalld.yml:7 skipping: [/cache/fedora-35.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmph5xvua07/tasks/firewalld.yml:13 ok: [/cache/fedora-35.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmph5xvua07/tasks/firewalld.yml:19 ok: [/cache/fedora-35.qcow2] => {"changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": {"ActiveEnterTimestamp": "Sat 2021-11-20 16:27:08 UTC", "ActiveEnterTimestampMonotonic": "58251306", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "system.slice polkit.service sysinit.target dbus.socket dbus-broker.service basic.target", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Sat 2021-11-20 16:27:08 UTC", "AssertTimestampMonotonic": "58107219", "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": "506465000", "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": "Sat 2021-11-20 16:27:08 UTC", "ConditionTimestampMonotonic": "58107217", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target ipset.service nftables.service iptables.service ip6tables.service ebtables.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "\"man:firewalld(1)\"", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "7442", "ExecMainStartTimestamp": "Sat 2021-11-20 16:27:08 UTC", "ExecMainStartTimestampMonotonic": "58108474", "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=[Sat 2021-11-20 16:27:08 UTC] ; stop_time=[n/a] ; pid=7442 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; flags= ; start_time=[Sat 2021-11-20 16:27:08 UTC] ; stop_time=[n/a] ; pid=7442 ; 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": "Sat 2021-11-20 16:27:08 UTC", "InactiveExitTimestampMonotonic": "58108726", "InvocationID": "26d897880f654030a1c4c8c15c5f391e", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7730", "LimitNPROCSoft": "7730", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7730", "LimitSIGPENDINGSoft": "7730", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "7442", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "24612864", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "firewalld.service dbus-org.fedoraproject.FirewallD1.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket 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]", "StateChangeTimestamp": "Sat 2021-11-20 16:27:08 UTC", "StateChangeTimestampMonotonic": "58251306", "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": "2319", "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/tmph5xvua07/tasks/main.yml:3 changed: [/cache/fedora-35.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"}} META: role_complete for /cache/fedora-35.qcow2 TASK [Fail if no changes are done] ********************************************* task path: /tmp/tmph5xvua07/tests/tests_zone.yml:45 skipping: [/cache/fedora-35.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Setup firewalld again] *************************************************** task path: /tmp/tmph5xvua07/tests/tests_zone.yml:51 TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmph5xvua07/tasks/firewalld.yml:2 ok: [/cache/fedora-35.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmph5xvua07/tasks/firewalld.yml:7 skipping: [/cache/fedora-35.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmph5xvua07/tasks/firewalld.yml:13 ok: [/cache/fedora-35.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmph5xvua07/tasks/firewalld.yml:19 ok: [/cache/fedora-35.qcow2] => {"changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": {"ActiveEnterTimestamp": "Sat 2021-11-20 16:27:08 UTC", "ActiveEnterTimestampMonotonic": "58251306", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "system.slice polkit.service sysinit.target dbus.socket dbus-broker.service basic.target", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Sat 2021-11-20 16:27:08 UTC", "AssertTimestampMonotonic": "58107219", "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": "596687000", "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": "Sat 2021-11-20 16:27:08 UTC", "ConditionTimestampMonotonic": "58107217", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target ipset.service nftables.service iptables.service ip6tables.service ebtables.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "\"man:firewalld(1)\"", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "7442", "ExecMainStartTimestamp": "Sat 2021-11-20 16:27:08 UTC", "ExecMainStartTimestampMonotonic": "58108474", "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=[Sat 2021-11-20 16:27:08 UTC] ; stop_time=[n/a] ; pid=7442 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; flags= ; start_time=[Sat 2021-11-20 16:27:08 UTC] ; stop_time=[n/a] ; pid=7442 ; 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": "Sat 2021-11-20 16:27:08 UTC", "InactiveExitTimestampMonotonic": "58108726", "InvocationID": "26d897880f654030a1c4c8c15c5f391e", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7730", "LimitNPROCSoft": "7730", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7730", "LimitSIGPENDINGSoft": "7730", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "7442", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "24621056", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "firewalld.service dbus-org.fedoraproject.FirewallD1.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket 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]", "StateChangeTimestamp": "Sat 2021-11-20 16:27:08 UTC", "StateChangeTimestampMonotonic": "58251306", "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": "2319", "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/tmph5xvua07/tasks/main.yml:3 ok: [/cache/fedora-35.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"}} META: role_complete for /cache/fedora-35.qcow2 TASK [Fail on newly changes] *************************************************** task path: /tmp/tmph5xvua07/tests/tests_zone.yml:64 skipping: [/cache/fedora-35.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify firewalld zone internal services] ********************************* task path: /tmp/tmph5xvua07/tests/tests_zone.yml:70 changed: [/cache/fedora-35.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--zone=internal", "--list-services"], "delta": "0:00:00.219417", "end": "2021-11-20 16:27:22.295186", "failed_when_result": false, "msg": "", "rc": 0, "start": "2021-11-20 16:27:22.075769", "stderr": "", "stderr_lines": [], "stdout": "dhcpv6-client ftp mdns samba-client ssh tftp", "stdout_lines": ["dhcpv6-client ftp mdns samba-client ssh tftp"]} TASK [Verify firewalld zone internal ports] ************************************ task path: /tmp/tmph5xvua07/tests/tests_zone.yml:77 changed: [/cache/fedora-35.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--zone=internal", "--list-ports"], "delta": "0:00:00.228491", "end": "2021-11-20 16:27:22.901887", "failed_when_result": false, "msg": "", "rc": 0, "start": "2021-11-20 16:27:22.673396", "stderr": "", "stderr_lines": [], "stdout": "443/tcp 443/udp", "stdout_lines": ["443/tcp 443/udp"]} TASK [Verify firewalld zone internal forward ports] **************************** task path: /tmp/tmph5xvua07/tests/tests_zone.yml:84 changed: [/cache/fedora-35.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--zone=internal", "--list-forward-ports"], "delta": "0:00:00.213369", "end": "2021-11-20 16:27:23.497483", "failed_when_result": false, "msg": "", "rc": 0, "start": "2021-11-20 16:27:23.284114", "stderr": "", "stderr_lines": [], "stdout": "port=447:proto=tcp:toport=:toaddr=1.2.3.4\nport=448:proto=tcp:toport=:toaddr=1.2.3.5", "stdout_lines": ["port=447:proto=tcp:toport=:toaddr=1.2.3.4", "port=448:proto=tcp:toport=:toaddr=1.2.3.5"]} TASK [Reset to zone defaults] ************************************************** task path: /tmp/tmph5xvua07/tests/tests_zone.yml:97 changed: [/cache/fedora-35.qcow2] => {"changed": true, "cmd": "firewall-cmd --permanent --load-zone-defaults=internal\nfirewall-cmd --permanent --load-zone-defaults=external\nfirewall-cmd --permanent --load-zone-defaults=trusted\nfirewall-cmd --reload\n", "delta": "0:00:00.990753", "end": "2021-11-20 16:27:24.881462", "msg": "", "rc": 0, "start": "2021-11-20 16:27:23.890709", "stderr": "", "stderr_lines": [], "stdout": "success\nsuccess\nsuccess\nsuccess", "stdout_lines": ["success", "success", "success", "success"]} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-35.qcow2 : ok=21 changed=7 unreachable=0 failed=0 skipped=9 rescued=0 ignored=0 + cd /tmp/tmpx2bws2m_/tests/firewall; TEST_SUBJECTS=/cache/fedora-35.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_firewall-56-a448d10-fedora-35-7b1erzwg/artifacts ANSIBLE_COLLECTIONS_PATHS=/tmp/tmphl6yxvf8:~/.ansible/collections:/usr/share/ansible/collections ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 --skip-tags=tests::cleanup,tests::nvme /tmp/tmph5xvua07/_setup.yml /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml ansible-playbook [core 2.12.0.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/tmphl6yxvf8:/home/runner/.ansible/collections:/usr/share/ansible/collections executable location = /usr/local/bin/ansible-playbook python version = 3.8.8 (default, Aug 25 2021, 16:13:02) [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 '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/tmph5xvua07/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmph5xvua07/_setup.yml:5 ok: [/cache/fedora-35.qcow2] => { "groups": { "all": [ "/cache/fedora-35.qcow2" ], "localhost": [ "/cache/fedora-35.qcow2" ], "subjects": [ "/cache/fedora-35.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmph5xvua07/_setup.yml:6 skipping: [/cache/fedora-35.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-35.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 [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/tmphl6yxvf8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml PLAYBOOK: tests_ansible.yml **************************************************** 1 plays in /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:1 ok: [/cache/fedora-35.qcow2] META: ran handlers TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmphl6yxvf8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 changed: [/cache/fedora-35.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: ipset-7.15-1.fc35.x86_64", "Installed: iptables-nft-1.8.7-13.fc35.x86_64", "Installed: firewalld-1.0.1-2.fc35.noarch", "Installed: firewalld-filesystem-1.0.1-2.fc35.noarch", "Installed: ipset-libs-7.15-1.fc35.x86_64", "Installed: python3-gobject-base-3.42.0-1.fc35.x86_64", "Installed: python3-nftables-1:1.0.0-1.fc35.x86_64", "Installed: python3-firewall-1.0.1-2.fc35.noarch", "Installed: libcap-ng-python3-0.8.2-6.fc35.x86_64", "Installed: gobject-introspection-1.70.0-1.fc35.x86_64", "Installed: jansson-2.13.1-3.fc35.x86_64", "Installed: libnftnl-1.2.0-2.fc35.x86_64", "Installed: nftables-1:1.0.0-1.fc35.x86_64"]} TASK [fedora.linux_system_roles.firewall : Install python-firewall] ************ task path: /tmp/tmphl6yxvf8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 skipping: [/cache/fedora-35.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [fedora.linux_system_roles.firewall : Install python3-firewall] *********** task path: /tmp/tmphl6yxvf8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:13 ok: [/cache/fedora-35.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [fedora.linux_system_roles.firewall : Enable and start firewalld service] *** task path: /tmp/tmphl6yxvf8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 changed: [/cache/fedora-35.qcow2] => {"changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": {"ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "basic.target dbus.socket sysinit.target system.slice dbus-broker.service polkit.service", "AllowIsolate": "no", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target multi-user.target network-pre.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "ebtables.service nftables.service shutdown.target ipset.service iptables.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": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7730", "LimitNPROCSoft": "7730", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7730", "LimitSIGPENDINGSoft": "7730", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "firewalld.service dbus-org.fedoraproject.FirewallD1.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "sysinit.target 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": "2319", "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/tmphl6yxvf8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 META: role_complete for /cache/fedora-35.qcow2 TASK [Remove custom zone] ****************************************************** task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:14 changed: [/cache/fedora-35.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--delete-zone=custom"], "delta": "0:00:00.226210", "end": "2021-11-20 16:28:15.821490", "failed_when_result": false, "msg": "non-zero return code", "rc": 112, "start": "2021-11-20 16:28:15.595280", "stderr": "Error: INVALID_ZONE: custom", "stderr_lines": ["Error: INVALID_ZONE: custom"], "stdout": "", "stdout_lines": []} TASK [Reset internal zone to defaults] ***************************************** task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:19 changed: [/cache/fedora-35.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--load-zone-defaults=internal"], "delta": "0:00:00.222353", "end": "2021-11-20 16:28:16.418165", "failed_when_result": false, "msg": "non-zero return code", "rc": 22, "start": "2021-11-20 16:28:16.195812", "stderr": "Error: NO_DEFAULTS: internal", "stderr_lines": ["Error: NO_DEFAULTS: internal"], "stdout": "", "stdout_lines": []} TASK [Reset trusted zone to defaults] ****************************************** task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:24 changed: [/cache/fedora-35.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--load-zone-defaults=trusted"], "delta": "0:00:00.209384", "end": "2021-11-20 16:28:17.008239", "failed_when_result": false, "msg": "non-zero return code", "rc": 22, "start": "2021-11-20 16:28:16.798855", "stderr": "Error: NO_DEFAULTS: trusted", "stderr_lines": ["Error: NO_DEFAULTS: trusted"], "stdout": "", "stdout_lines": []} TASK [Reset dmz zone to defaults] ********************************************** task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:29 changed: [/cache/fedora-35.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--load-zone-defaults=dmz"], "delta": "0:00:00.216219", "end": "2021-11-20 16:28:17.584321", "failed_when_result": false, "msg": "non-zero return code", "rc": 22, "start": "2021-11-20 16:28:17.368102", "stderr": "Error: NO_DEFAULTS: dmz", "stderr_lines": ["Error: NO_DEFAULTS: dmz"], "stdout": "", "stdout_lines": []} TASK [Reset drop zone to defaults] ********************************************* task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:34 changed: [/cache/fedora-35.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--load-zone-defaults=drop"], "delta": "0:00:00.206951", "end": "2021-11-20 16:28:18.151140", "failed_when_result": false, "msg": "non-zero return code", "rc": 22, "start": "2021-11-20 16:28:17.944189", "stderr": "Error: NO_DEFAULTS: drop", "stderr_lines": ["Error: NO_DEFAULTS: drop"], "stdout": "", "stdout_lines": []} TASK [Reset public zone to defaults] ******************************************* task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:39 changed: [/cache/fedora-35.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--load-zone-defaults=public"], "delta": "0:00:00.242958", "end": "2021-11-20 16:28:18.769893", "failed_when_result": false, "msg": "non-zero return code", "rc": 22, "start": "2021-11-20 16:28:18.526935", "stderr": "Error: NO_DEFAULTS: public", "stderr_lines": ["Error: NO_DEFAULTS: public"], "stdout": "", "stdout_lines": []} TASK [Reset default zone to defaults] ****************************************** task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:44 changed: [/cache/fedora-35.qcow2] => {"changed": true, "cmd": "zone=$(firewall-cmd --get-default-zone)\nfirewall-cmd --permanent --load-zone-defaults=$zone\n", "delta": "0:00:00.409870", "end": "2021-11-20 16:28:19.543893", "failed_when_result": false, "msg": "non-zero return code", "rc": 22, "start": "2021-11-20 16:28:19.134023", "stderr": "Error: NO_DEFAULTS: public", "stderr_lines": ["Error: NO_DEFAULTS: public"], "stdout": "", "stdout_lines": []} TASK [Create custom zone] ****************************************************** task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:52 changed: [/cache/fedora-35.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--new-zone=custom"], "delta": "0:00:00.207770", "end": "2021-11-20 16:28:20.119687", "failed_when_result": false, "msg": "", "rc": 0, "start": "2021-11-20 16:28:19.911917", "stderr": "", "stderr_lines": [], "stdout": "success", "stdout_lines": ["success"]} TASK [Reload firewalld] ******************************************************** task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:57 changed: [/cache/fedora-35.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--reload"], "delta": "0:00:00.313912", "end": "2021-11-20 16:28:20.791819", "failed_when_result": false, "msg": "", "rc": 0, "start": "2021-11-20 16:28:20.477907", "stderr": "", "stderr_lines": [], "stdout": "success", "stdout_lines": ["success"]} TASK [Permit traffic in default zone for https service] ************************ task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:64 changed: [/cache/fedora-35.qcow2] => {"changed": true, "failed_when_result": false} TASK [Permit traffic in default zone for https service, again] ***************** task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:72 ok: [/cache/fedora-35.qcow2] => {"changed": false, "failed_when_result": false} TASK [Permit traffic in default zone on port 8081/tcp] ************************* task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:80 changed: [/cache/fedora-35.qcow2] => {"changed": true, "failed_when_result": false} TASK [Permit traffic in default zone on port 8081/tcp, again] ****************** task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:88 ok: [/cache/fedora-35.qcow2] => {"changed": false, "failed_when_result": false} TASK [Allow port 161-162/udp in permanent default zone] ************************ task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:96 changed: [/cache/fedora-35.qcow2] => {"changed": true, "failed_when_result": false} TASK [Allow port 161-162/udp in permanent default zone, again] ***************** task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:104 ok: [/cache/fedora-35.qcow2] => {"changed": false, "failed_when_result": false} TASK [Do not permit traffic in default zone on port 8081/tcp] ****************** task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:112 changed: [/cache/fedora-35.qcow2] => {"changed": true, "failed_when_result": false} TASK [Do not permit traffic in default zone on port 8081/tcp, again] *********** task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:120 ok: [/cache/fedora-35.qcow2] => {"changed": false, "failed_when_result": false} TASK [Allow service http in permanent dmz zone] ******************************** task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:128 changed: [/cache/fedora-35.qcow2] => {"changed": true, "failed_when_result": false} TASK [Allow service http in permanent dmz zone, again] ************************* task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:137 ok: [/cache/fedora-35.qcow2] => {"changed": false, "failed_when_result": false} TASK [Allow service ftp with limitation using rich rule in permanent default zone] *** task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:146 changed: [/cache/fedora-35.qcow2] => {"changed": true, "failed_when_result": false} TASK [Allow service ftp with limitation using rich rule in permanent default zone, again] *** task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:154 ok: [/cache/fedora-35.qcow2] => {"changed": false, "failed_when_result": false} TASK [Allow source 192.0.2.0/24 in internal zone] ****************************** task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:162 changed: [/cache/fedora-35.qcow2] => {"changed": true, "failed_when_result": false} TASK [Allow source 192.0.2.0/24 in internal zone, again] *********************** task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:171 ok: [/cache/fedora-35.qcow2] => {"changed": false, "failed_when_result": false} TASK [Allow interface eth2 in permanent trusted zone] ************************** task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:180 changed: [/cache/fedora-35.qcow2] => {"changed": true, "failed_when_result": false} TASK [Allow interface eth2 in permanent trusted zone, again] ******************* task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:189 ok: [/cache/fedora-35.qcow2] => {"changed": false, "failed_when_result": false} TASK [Allow masquerading in permament dmz zone] ******************************** task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:198 changed: [/cache/fedora-35.qcow2] => {"changed": true, "failed_when_result": false} TASK [Allow masquerading in permament dmz zone, again] ************************* task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:207 ok: [/cache/fedora-35.qcow2] => {"changed": false, "failed_when_result": false} TASK [Ensure permanent custom zone exists (no change)] ************************* task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:216 ok: [/cache/fedora-35.qcow2] => {"changed": false, "failed_when_result": false} TASK [Ensure ICMP block inversion in permanent drop zone] ********************** task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:224 changed: [/cache/fedora-35.qcow2] => {"changed": true, "failed_when_result": false} TASK [Ensure ICMP block inversion in permanent drop zone, again] *************** task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:233 ok: [/cache/fedora-35.qcow2] => {"changed": false, "failed_when_result": false} TASK [Block ICMP echo-request in permanent drop zone] ************************** task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:242 changed: [/cache/fedora-35.qcow2] => {"changed": true, "failed_when_result": false} TASK [Block ICMP echo-request in permanent drop zone, again] ******************* task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:251 ok: [/cache/fedora-35.qcow2] => {"changed": false, "failed_when_result": false} TASK [Ensure default target in permanent internal zone (no change)] ************ task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:260 ok: [/cache/fedora-35.qcow2] => {"changed": false, "failed_when_result": false} TASK [Ensure target ACCEPT in permanent internal zone] ************************* task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:269 changed: [/cache/fedora-35.qcow2] => {"changed": true, "failed_when_result": false} TASK [Ensure target ACCEPT in permanent internal zone, again] ****************** task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:278 ok: [/cache/fedora-35.qcow2] => {"changed": false, "failed_when_result": false} TASK [Ensure default target in permanent internal zone] ************************ task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:287 changed: [/cache/fedora-35.qcow2] => {"changed": true, "failed_when_result": false} TASK [Ensure default target in permanent internal zone, again] ***************** task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:296 ok: [/cache/fedora-35.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/tmpx2bws2m_/tests/firewall/tests_ansible.yml:305 [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-35.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/tmpx2bws2m_/tests/firewall/tests_ansible.yml:315 ok: [/cache/fedora-35.qcow2] => {"changed": false, "failed_when_result": false} TASK [Firewalld custom zone] *************************************************** task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:325 changed: [/cache/fedora-35.qcow2] => {"changed": true} TASK [assert firewalld custom zone] ******************************************** task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:332 ok: [/cache/fedora-35.qcow2] => { "changed": false, "msg": "All assertions passed" } TASK [Remove custom zone] ****************************************************** task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:341 changed: [/cache/fedora-35.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--delete-zone=custom"], "delta": "0:00:00.253749", "end": "2021-11-20 16:28:36.764140", "failed_when_result": false, "msg": "", "rc": 0, "start": "2021-11-20 16:28:36.510391", "stderr": "", "stderr_lines": [], "stdout": "success", "stdout_lines": ["success"]} TASK [Reset internal zone to defaults] ***************************************** task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:346 changed: [/cache/fedora-35.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--load-zone-defaults=internal"], "delta": "0:00:00.205619", "end": "2021-11-20 16:28:37.325316", "failed_when_result": false, "msg": "", "rc": 0, "start": "2021-11-20 16:28:37.119697", "stderr": "", "stderr_lines": [], "stdout": "success", "stdout_lines": ["success"]} TASK [Reset trusted zone to defaults] ****************************************** task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:351 changed: [/cache/fedora-35.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--load-zone-defaults=trusted"], "delta": "0:00:00.212823", "end": "2021-11-20 16:28:37.911445", "failed_when_result": false, "msg": "", "rc": 0, "start": "2021-11-20 16:28:37.698622", "stderr": "", "stderr_lines": [], "stdout": "success", "stdout_lines": ["success"]} TASK [Reset dmz zone to defaults] ********************************************** task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:356 changed: [/cache/fedora-35.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--load-zone-defaults=dmz"], "delta": "0:00:00.208270", "end": "2021-11-20 16:28:38.475594", "failed_when_result": false, "msg": "", "rc": 0, "start": "2021-11-20 16:28:38.267324", "stderr": "", "stderr_lines": [], "stdout": "success", "stdout_lines": ["success"]} TASK [Reset drop zone to defaults] ********************************************* task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:361 changed: [/cache/fedora-35.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--load-zone-defaults=drop"], "delta": "0:00:00.216286", "end": "2021-11-20 16:28:39.049750", "failed_when_result": false, "msg": "", "rc": 0, "start": "2021-11-20 16:28:38.833464", "stderr": "", "stderr_lines": [], "stdout": "success", "stdout_lines": ["success"]} TASK [Reset public zone to defaults] ******************************************* task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:366 changed: [/cache/fedora-35.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--load-zone-defaults=public"], "delta": "0:00:00.204777", "end": "2021-11-20 16:28:39.619464", "failed_when_result": false, "msg": "", "rc": 0, "start": "2021-11-20 16:28:39.414687", "stderr": "", "stderr_lines": [], "stdout": "success", "stdout_lines": ["success"]} TASK [Reset default zone to defaults] ****************************************** task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:371 changed: [/cache/fedora-35.qcow2] => {"changed": true, "cmd": "zone=$(firewall-cmd --get-default-zone)\nfirewall-cmd --permanent --load-zone-defaults=$zone\n", "delta": "0:00:00.434757", "end": "2021-11-20 16:28:40.435464", "failed_when_result": false, "msg": "non-zero return code", "rc": 22, "start": "2021-11-20 16:28:40.000707", "stderr": "Error: NO_DEFAULTS: public", "stderr_lines": ["Error: NO_DEFAULTS: public"], "stdout": "", "stdout_lines": []} TASK [Reload firewalld] ******************************************************** task path: /tmp/tmpx2bws2m_/tests/firewall/tests_ansible.yml:379 changed: [/cache/fedora-35.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--reload"], "delta": "0:00:00.302656", "end": "2021-11-20 16:28:41.117367", "failed_when_result": false, "msg": "", "rc": 0, "start": "2021-11-20 16:28:40.814711", "stderr": "", "stderr_lines": [], "stdout": "success", "stdout_lines": ["success"]} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-35.qcow2 : ok=54 changed=34 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 + cd /tmp/tmpx2bws2m_/tests/firewall; TEST_SUBJECTS=/cache/fedora-35.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_firewall-56-a448d10-fedora-35-7b1erzwg/artifacts ANSIBLE_COLLECTIONS_PATHS=/tmp/tmphl6yxvf8:~/.ansible/collections:/usr/share/ansible/collections ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 --skip-tags=tests::cleanup,tests::nvme /tmp/tmph5xvua07/_setup.yml /tmp/tmpx2bws2m_/tests/firewall/tests_default.yml ansible-playbook [core 2.12.0.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/tmphl6yxvf8:/home/runner/.ansible/collections:/usr/share/ansible/collections executable location = /usr/local/bin/ansible-playbook python version = 3.8.8 (default, Aug 25 2021, 16:13:02) [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 '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/tmph5xvua07/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmph5xvua07/_setup.yml:5 ok: [/cache/fedora-35.qcow2] => { "groups": { "all": [ "/cache/fedora-35.qcow2" ], "localhost": [ "/cache/fedora-35.qcow2" ], "subjects": [ "/cache/fedora-35.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmph5xvua07/_setup.yml:6 skipping: [/cache/fedora-35.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-35.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 [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/tmphl6yxvf8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml PLAYBOOK: tests_default.yml **************************************************** 1 plays in /tmp/tmpx2bws2m_/tests/firewall/tests_default.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpx2bws2m_/tests/firewall/tests_default.yml:1 ok: [/cache/fedora-35.qcow2] META: ran handlers TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmphl6yxvf8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 changed: [/cache/fedora-35.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: ipset-7.15-1.fc35.x86_64", "Installed: iptables-nft-1.8.7-13.fc35.x86_64", "Installed: firewalld-1.0.1-2.fc35.noarch", "Installed: firewalld-filesystem-1.0.1-2.fc35.noarch", "Installed: ipset-libs-7.15-1.fc35.x86_64", "Installed: python3-gobject-base-3.42.0-1.fc35.x86_64", "Installed: python3-nftables-1:1.0.0-1.fc35.x86_64", "Installed: python3-firewall-1.0.1-2.fc35.noarch", "Installed: libcap-ng-python3-0.8.2-6.fc35.x86_64", "Installed: gobject-introspection-1.70.0-1.fc35.x86_64", "Installed: jansson-2.13.1-3.fc35.x86_64", "Installed: libnftnl-1.2.0-2.fc35.x86_64", "Installed: nftables-1:1.0.0-1.fc35.x86_64"]} TASK [fedora.linux_system_roles.firewall : Install python-firewall] ************ task path: /tmp/tmphl6yxvf8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 skipping: [/cache/fedora-35.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [fedora.linux_system_roles.firewall : Install python3-firewall] *********** task path: /tmp/tmphl6yxvf8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:13 ok: [/cache/fedora-35.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [fedora.linux_system_roles.firewall : Enable and start firewalld service] *** task path: /tmp/tmphl6yxvf8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 changed: [/cache/fedora-35.qcow2] => {"changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": {"ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "sysinit.target dbus.socket system.slice dbus-broker.service polkit.service basic.target", "AllowIsolate": "no", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target network-pre.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "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": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7730", "LimitNPROCSoft": "7730", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7730", "LimitSIGPENDINGSoft": "7730", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "firewalld.service dbus-org.fedoraproject.FirewallD1.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "sysinit.target dbus.socket system.slice", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "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": "2319", "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/tmphl6yxvf8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 META: role_complete for /cache/fedora-35.qcow2 META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-35.qcow2 : ok=5 changed=2 unreachable=0 failed=0 skipped=3 rescued=0 ignored=0 + cd /tmp/tmpx2bws2m_/tests/firewall; TEST_SUBJECTS=/cache/fedora-35.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_firewall-56-a448d10-fedora-35-7b1erzwg/artifacts ANSIBLE_COLLECTIONS_PATHS=/tmp/tmphl6yxvf8:~/.ansible/collections:/usr/share/ansible/collections ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 --skip-tags=tests::cleanup,tests::nvme /tmp/tmph5xvua07/_setup.yml /tmp/tmpx2bws2m_/tests/firewall/tests_zone.yml ansible-playbook [core 2.12.0.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/tmphl6yxvf8:/home/runner/.ansible/collections:/usr/share/ansible/collections executable location = /usr/local/bin/ansible-playbook python version = 3.8.8 (default, Aug 25 2021, 16:13:02) [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 '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/tmph5xvua07/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmph5xvua07/_setup.yml:5 ok: [/cache/fedora-35.qcow2] => { "groups": { "all": [ "/cache/fedora-35.qcow2" ], "localhost": [ "/cache/fedora-35.qcow2" ], "subjects": [ "/cache/fedora-35.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmph5xvua07/_setup.yml:6 skipping: [/cache/fedora-35.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-35.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_zone.yml ******************************************************* 1 plays in /tmp/tmpx2bws2m_/tests/firewall/tests_zone.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpx2bws2m_/tests/firewall/tests_zone.yml:1 ok: [/cache/fedora-35.qcow2] META: ran handlers TASK [include_role : fedora.linux_system_roles.firewall] *********************** task path: /tmp/tmpx2bws2m_/tests/firewall/tests_zone.yml:6 [DEPRECATION WARNING]: "include" is deprecated, use include_tasks/import_tasks instead. This feature will be removed in version 2.16. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. statically imported: /tmp/tmphl6yxvf8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmphl6yxvf8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 changed: [/cache/fedora-35.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: ipset-7.15-1.fc35.x86_64", "Installed: iptables-nft-1.8.7-13.fc35.x86_64", "Installed: firewalld-1.0.1-2.fc35.noarch", "Installed: firewalld-filesystem-1.0.1-2.fc35.noarch", "Installed: ipset-libs-7.15-1.fc35.x86_64", "Installed: python3-gobject-base-3.42.0-1.fc35.x86_64", "Installed: python3-nftables-1:1.0.0-1.fc35.x86_64", "Installed: python3-firewall-1.0.1-2.fc35.noarch", "Installed: libcap-ng-python3-0.8.2-6.fc35.x86_64", "Installed: gobject-introspection-1.70.0-1.fc35.x86_64", "Installed: jansson-2.13.1-3.fc35.x86_64", "Installed: libnftnl-1.2.0-2.fc35.x86_64", "Installed: nftables-1:1.0.0-1.fc35.x86_64"]} TASK [fedora.linux_system_roles.firewall : Install python-firewall] ************ task path: /tmp/tmphl6yxvf8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 skipping: [/cache/fedora-35.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [fedora.linux_system_roles.firewall : Install python3-firewall] *********** task path: /tmp/tmphl6yxvf8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:13 ok: [/cache/fedora-35.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [fedora.linux_system_roles.firewall : Enable and start firewalld service] *** task path: /tmp/tmphl6yxvf8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 changed: [/cache/fedora-35.qcow2] => {"changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": {"ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "sysinit.target dbus.socket polkit.service dbus-broker.service basic.target system.slice", "AllowIsolate": "no", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "multi-user.target network-pre.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "iptables.service nftables.service shutdown.target ip6tables.service ipset.service ebtables.service", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "\"man:firewalld(1)\"", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecReloadEx": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7730", "LimitNPROCSoft": "7730", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7730", "LimitSIGPENDINGSoft": "7730", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "firewalld.service dbus-org.fedoraproject.FirewallD1.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "sysinit.target dbus.socket system.slice", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "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": "2319", "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/tmphl6yxvf8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 META: role_complete for /cache/fedora-35.qcow2 TASK [Verify used firewalld zones] ********************************************* task path: /tmp/tmpx2bws2m_/tests/firewall/tests_zone.yml:14 statically imported: /tmp/tmphl6yxvf8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmphl6yxvf8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 ok: [/cache/fedora-35.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [fedora.linux_system_roles.firewall : Install python-firewall] ************ task path: /tmp/tmphl6yxvf8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 skipping: [/cache/fedora-35.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [fedora.linux_system_roles.firewall : Install python3-firewall] *********** task path: /tmp/tmphl6yxvf8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:13 ok: [/cache/fedora-35.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [fedora.linux_system_roles.firewall : Enable and start firewalld service] *** task path: /tmp/tmphl6yxvf8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 ok: [/cache/fedora-35.qcow2] => {"changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": {"ActiveEnterTimestamp": "Sat 2021-11-20 16:30:27 UTC", "ActiveEnterTimestampMonotonic": "47105316", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "sysinit.target dbus.socket polkit.service dbus-broker.service basic.target system.slice", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Sat 2021-11-20 16:30:26 UTC", "AssertTimestampMonotonic": "46972020", "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": "258839000", "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": "Sat 2021-11-20 16:30:26 UTC", "ConditionTimestampMonotonic": "46972018", "ConfigurationDirectoryMode": "0755", "Conflicts": "iptables.service nftables.service shutdown.target ip6tables.service ipset.service ebtables.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "\"man:firewalld(1)\"", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "7440", "ExecMainStartTimestamp": "Sat 2021-11-20 16:30:26 UTC", "ExecMainStartTimestampMonotonic": "46973324", "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=[Sat 2021-11-20 16:30:26 UTC] ; stop_time=[n/a] ; pid=7440 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; flags= ; start_time=[Sat 2021-11-20 16:30:26 UTC] ; stop_time=[n/a] ; pid=7440 ; 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": "Sat 2021-11-20 16:30:26 UTC", "InactiveExitTimestampMonotonic": "46973584", "InvocationID": "7892a0f1a0814931b8f737931f32e5a5", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7730", "LimitNPROCSoft": "7730", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7730", "LimitSIGPENDINGSoft": "7730", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "7440", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "23158784", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "firewalld.service dbus-org.fedoraproject.FirewallD1.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "sysinit.target dbus.socket system.slice", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "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": "Sat 2021-11-20 16:30:27 UTC", "StateChangeTimestampMonotonic": "47105316", "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": "2319", "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/tmphl6yxvf8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 ok: [/cache/fedora-35.qcow2] => (item={'zone': 'internal', 'state': 'enabled'}) => {"ansible_loop_var": "item", "changed": false, "item": {"state": "enabled", "zone": "internal"}} ok: [/cache/fedora-35.qcow2] => (item={'zone': 'external', 'state': 'enabled'}) => {"ansible_loop_var": "item", "changed": false, "item": {"state": "enabled", "zone": "external"}} ok: [/cache/fedora-35.qcow2] => (item={'zone': 'trusted', 'state': 'enabled'}) => {"ansible_loop_var": "item", "changed": false, "item": {"state": "enabled", "zone": "trusted"}} META: role_complete for /cache/fedora-35.qcow2 TASK [Fail on missing zones] *************************************************** task path: /tmp/tmpx2bws2m_/tests/firewall/tests_zone.yml:23 skipping: [/cache/fedora-35.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Setup firewalld] ********************************************************* task path: /tmp/tmpx2bws2m_/tests/firewall/tests_zone.yml:29 statically imported: /tmp/tmphl6yxvf8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmphl6yxvf8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 ok: [/cache/fedora-35.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [fedora.linux_system_roles.firewall : Install python-firewall] ************ task path: /tmp/tmphl6yxvf8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 skipping: [/cache/fedora-35.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [fedora.linux_system_roles.firewall : Install python3-firewall] *********** task path: /tmp/tmphl6yxvf8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:13 ok: [/cache/fedora-35.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [fedora.linux_system_roles.firewall : Enable and start firewalld service] *** task path: /tmp/tmphl6yxvf8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 ok: [/cache/fedora-35.qcow2] => {"changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": {"ActiveEnterTimestamp": "Sat 2021-11-20 16:30:27 UTC", "ActiveEnterTimestampMonotonic": "47105316", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "sysinit.target dbus.socket polkit.service dbus-broker.service basic.target system.slice", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Sat 2021-11-20 16:30:26 UTC", "AssertTimestampMonotonic": "46972020", "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": "492017000", "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": "Sat 2021-11-20 16:30:26 UTC", "ConditionTimestampMonotonic": "46972018", "ConfigurationDirectoryMode": "0755", "Conflicts": "iptables.service nftables.service shutdown.target ip6tables.service ipset.service ebtables.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "\"man:firewalld(1)\"", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "7440", "ExecMainStartTimestamp": "Sat 2021-11-20 16:30:26 UTC", "ExecMainStartTimestampMonotonic": "46973324", "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=[Sat 2021-11-20 16:30:26 UTC] ; stop_time=[n/a] ; pid=7440 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; flags= ; start_time=[Sat 2021-11-20 16:30:26 UTC] ; stop_time=[n/a] ; pid=7440 ; 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": "Sat 2021-11-20 16:30:26 UTC", "InactiveExitTimestampMonotonic": "46973584", "InvocationID": "7892a0f1a0814931b8f737931f32e5a5", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7730", "LimitNPROCSoft": "7730", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7730", "LimitSIGPENDINGSoft": "7730", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "7440", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "24608768", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "firewalld.service dbus-org.fedoraproject.FirewallD1.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "sysinit.target dbus.socket system.slice", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "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": "Sat 2021-11-20 16:30:27 UTC", "StateChangeTimestampMonotonic": "47105316", "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": "2319", "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/tmphl6yxvf8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 changed: [/cache/fedora-35.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"}} META: role_complete for /cache/fedora-35.qcow2 TASK [Fail if no changes are done] ********************************************* task path: /tmp/tmpx2bws2m_/tests/firewall/tests_zone.yml:37 skipping: [/cache/fedora-35.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Setup firewalld again] *************************************************** task path: /tmp/tmpx2bws2m_/tests/firewall/tests_zone.yml:43 TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmphl6yxvf8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 ok: [/cache/fedora-35.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [fedora.linux_system_roles.firewall : Install python-firewall] ************ task path: /tmp/tmphl6yxvf8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 skipping: [/cache/fedora-35.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [fedora.linux_system_roles.firewall : Install python3-firewall] *********** task path: /tmp/tmphl6yxvf8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:13 ok: [/cache/fedora-35.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [fedora.linux_system_roles.firewall : Enable and start firewalld service] *** task path: /tmp/tmphl6yxvf8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:19 ok: [/cache/fedora-35.qcow2] => {"changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": {"ActiveEnterTimestamp": "Sat 2021-11-20 16:30:27 UTC", "ActiveEnterTimestampMonotonic": "47105316", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "sysinit.target dbus.socket polkit.service dbus-broker.service basic.target system.slice", "AllowIsolate": "no", "AssertResult": "yes", "AssertTimestamp": "Sat 2021-11-20 16:30:26 UTC", "AssertTimestampMonotonic": "46972020", "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": "579766000", "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": "Sat 2021-11-20 16:30:26 UTC", "ConditionTimestampMonotonic": "46972018", "ConfigurationDirectoryMode": "0755", "Conflicts": "iptables.service nftables.service shutdown.target ip6tables.service ipset.service ebtables.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "\"man:firewalld(1)\"", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "7440", "ExecMainStartTimestamp": "Sat 2021-11-20 16:30:26 UTC", "ExecMainStartTimestampMonotonic": "46973324", "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=[Sat 2021-11-20 16:30:26 UTC] ; stop_time=[n/a] ; pid=7440 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; flags= ; start_time=[Sat 2021-11-20 16:30:26 UTC] ; stop_time=[n/a] ; pid=7440 ; 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": "Sat 2021-11-20 16:30:26 UTC", "InactiveExitTimestampMonotonic": "46973584", "InvocationID": "7892a0f1a0814931b8f737931f32e5a5", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "7730", "LimitNPROCSoft": "7730", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7730", "LimitSIGPENDINGSoft": "7730", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "7440", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "24621056", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "firewalld.service dbus-org.fedoraproject.FirewallD1.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "sysinit.target dbus.socket system.slice", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "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": "Sat 2021-11-20 16:30:27 UTC", "StateChangeTimestampMonotonic": "47105316", "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": "2319", "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/tmphl6yxvf8/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 ok: [/cache/fedora-35.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"}} META: role_complete for /cache/fedora-35.qcow2 TASK [Fail on newly changes] *************************************************** task path: /tmp/tmpx2bws2m_/tests/firewall/tests_zone.yml:51 skipping: [/cache/fedora-35.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify firewalld zone internal services] ********************************* task path: /tmp/tmpx2bws2m_/tests/firewall/tests_zone.yml:57 changed: [/cache/fedora-35.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--zone=internal", "--list-services"], "delta": "0:00:00.214879", "end": "2021-11-20 16:30:41.093562", "failed_when_result": false, "msg": "", "rc": 0, "start": "2021-11-20 16:30:40.878683", "stderr": "", "stderr_lines": [], "stdout": "dhcpv6-client ftp mdns samba-client ssh tftp", "stdout_lines": ["dhcpv6-client ftp mdns samba-client ssh tftp"]} TASK [Verify firewalld zone internal ports] ************************************ task path: /tmp/tmpx2bws2m_/tests/firewall/tests_zone.yml:62 changed: [/cache/fedora-35.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--zone=internal", "--list-ports"], "delta": "0:00:00.265105", "end": "2021-11-20 16:30:41.751913", "failed_when_result": false, "msg": "", "rc": 0, "start": "2021-11-20 16:30:41.486808", "stderr": "", "stderr_lines": [], "stdout": "443/tcp 443/udp", "stdout_lines": ["443/tcp 443/udp"]} TASK [Verify firewalld zone internal forward ports] **************************** task path: /tmp/tmpx2bws2m_/tests/firewall/tests_zone.yml:67 changed: [/cache/fedora-35.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--zone=internal", "--list-forward-ports"], "delta": "0:00:00.217992", "end": "2021-11-20 16:30:42.355158", "failed_when_result": false, "msg": "", "rc": 0, "start": "2021-11-20 16:30:42.137166", "stderr": "", "stderr_lines": [], "stdout": "port=447:proto=tcp:toport=:toaddr=1.2.3.4\nport=448:proto=tcp:toport=:toaddr=1.2.3.5", "stdout_lines": ["port=447:proto=tcp:toport=:toaddr=1.2.3.4", "port=448:proto=tcp:toport=:toaddr=1.2.3.5"]} TASK [Reset to zone defaults] ************************************************** task path: /tmp/tmpx2bws2m_/tests/firewall/tests_zone.yml:76 changed: [/cache/fedora-35.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.004334", "end": "2021-11-20 16:30:43.741704", "msg": "", "rc": 0, "start": "2021-11-20 16:30:42.737370", "stderr": "", "stderr_lines": [], "stdout": "success\nsuccess\nsuccess\nsuccess", "stdout_lines": ["success", "success", "success", "success"]} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-35.qcow2 : ok=21 changed=7 unreachable=0 failed=0 skipped=9 rescued=0 ignored=0