+ cd /tmp/tmptid0429t/tests; TEST_SUBJECTS=/cache/fedora-32.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_firewall-29-6731aa8-fedora-32-1z2737hk/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmptid0429t/_setup.yml /tmp/tmptid0429t/tests/tests_connection.yml ansible-playbook 2.9.18 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/tester/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.7 (default, Jan 20 2021, 00:00:00) [GCC 10.2.1 20201125 (Red Hat 10.2.1-9)] Using /etc/ansible/ansible.cfg as config file Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmptid0429t/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmptid0429t/_setup.yml:5 ok: [/cache/fedora-32.qcow2] => { "groups": { "all": [ "/cache/fedora-32.qcow2" ], "localhost": [ "/cache/fedora-32.qcow2" ], "subjects": [ "/cache/fedora-32.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmptid0429t/_setup.yml:7 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-32.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_connection.yml ************************************************* 1 plays in /tmp/tmptid0429t/tests/tests_connection.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmptid0429t/tests/tests_connection.yml:1 ok: [/cache/fedora-32.qcow2] META: ran handlers TASK [include_role : linux-system-roles.firewall] ****************************** task path: /tmp/tmptid0429t/tests/tests_connection.yml:6 statically imported: /tmp/tmptid0429t/tasks/firewalld.yml TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmptid0429t/tasks/firewalld.yml:2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: ipset-7.6-1.fc32.x86_64", "Installed: python3-slip-dbus-0.6.4-19.fc32.noarch", "Installed: gobject-introspection-1.64.1-1.fc32.x86_64", "Installed: firewalld-0.8.6-1.fc32.noarch", "Installed: firewalld-filesystem-0.8.6-1.fc32.noarch", "Installed: python3-firewall-0.8.6-1.fc32.noarch", "Installed: python3-nftables-1:0.9.3-4.fc32.x86_64", "Installed: ipset-libs-7.6-1.fc32.x86_64", "Installed: nftables-1:0.9.3-4.fc32.x86_64", "Installed: python3-decorator-4.4.0-6.fc32.noarch", "Installed: libnftnl-1.1.5-2.fc32.x86_64", "Installed: iptables-nft-1.8.4-9.fc32.x86_64", "Installed: python3-gobject-base-3.36.1-1.fc32.x86_64", "Installed: python3-slip-0.6.4-19.fc32.noarch"]} TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmptid0429t/tasks/firewalld.yml:7 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmptid0429t/tasks/firewalld.yml:13 ok: [/cache/fedora-32.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmptid0429t/tasks/firewalld.yml:19 changed: [/cache/fedora-32.qcow2] => {"changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": {"ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "dbus-broker.service basic.target polkit.service dbus.socket system.slice sysinit.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target multi-user.target network-pre.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "yes", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "nftables.service ebtables.service ipset.service iptables.service shutdown.target ip6tables.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "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", "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": "7782", "LimitNPROCSoft": "7782", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7782", "LimitSIGPENDINGSoft": "7782", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "firewalld.service dbus-org.fedoraproject.FirewallD1.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "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", "StandardInputData": "", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "2334", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}} TASK [linux-system-roles.firewall : Install system-config-firewall] ************ task path: /tmp/tmptid0429t/tasks/main.yml:8 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmptid0429t/tasks/main.yml:15 TASK [ensure nmcli is present] ************************************************* task path: /tmp/tmptid0429t/tests/tests_connection.yml:14 ok: [/cache/fedora-32.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [Ensure NetworkManager is running] **************************************** task path: /tmp/tmptid0429t/tests/tests_connection.yml:19 ok: [/cache/fedora-32.qcow2] => {"changed": false, "name": "NetworkManager", "state": "started", "status": {"ActiveEnterTimestamp": "Fri 2021-04-02 03:49:39 UTC", "ActiveEnterTimestampMonotonic": "4362503", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "network-pre.target system.slice systemd-journald.socket sysinit.target basic.target dbus-broker.service cloud-init-local.service dbus.socket", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Fri 2021-04-02 03:49:39 UTC", "AssertTimestampMonotonic": "4308352", "Before": "NetworkManager-wait-online.service shutdown.target multi-user.target cloud-init.service network.service network.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.freedesktop.NetworkManager", "CPUAccounting": "yes", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "60758000", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_dac_override cap_kill cap_setgid cap_setuid cap_net_bind_service cap_net_admin cap_net_raw cap_sys_module cap_sys_chroot cap_audit_write", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Fri 2021-04-02 03:49:39 UTC", "ConditionTimestampMonotonic": "4308351", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/NetworkManager.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Network Manager", "DevicePolicy": "auto", "Documentation": "man:NetworkManager(8)", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "577", "ExecMainStartTimestamp": "Fri 2021-04-02 03:49:39 UTC", "ExecMainStartTimestampMonotonic": "4309210", "ExecMainStatus": "0", "ExecReload": "{ path=/usr/bin/busctl ; argv[]=/usr/bin/busctl call org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager Reload u 0 ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecReloadEx": "{ path=/usr/bin/busctl ; argv[]=/usr/bin/busctl call org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager Reload u 0 ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/sbin/NetworkManager ; argv[]=/usr/sbin/NetworkManager --no-daemon ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/NetworkManager ; argv[]=/usr/sbin/NetworkManager --no-daemon ; 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/NetworkManager.service", "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": "NetworkManager.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Fri 2021-04-02 03:49:39 UTC", "InactiveExitTimestampMonotonic": "4309512", "InvocationID": "b992d321135b4f1d9cbb34664381e0e7", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "process", "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": "7782", "LimitNPROCSoft": "7782", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7782", "LimitSIGPENDINGSoft": "7782", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "577", "MemoryAccounting": "yes", "MemoryCurrent": "12603392", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "NetworkManager.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "read-only", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "yes", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "RequiredBy": "NetworkManager-wait-online.service", "Requires": "dbus.socket system.slice sysinit.target", "Restart": "on-failure", "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": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Fri 2021-04-02 03:50:49 UTC", "StateChangeTimestampMonotonic": "73450369", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "3", "TasksMax": "2334", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Wants": "network.target", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}} TASK [Get default connection name] ********************************************* task path: /tmp/tmptid0429t/tests/tests_connection.yml:24 changed: [/cache/fedora-32.qcow2] => {"changed": true, "cmd": "nmcli -t -f NAME c show --active | head -1", "delta": "0:00:00.028113", "end": "2021-04-02 03:50:57.544040", "rc": 0, "start": "2021-04-02 03:50:57.515927", "stderr": "", "stderr_lines": [], "stdout": "System eth0", "stdout_lines": ["System eth0"]} TASK [Set default_connection fact] ********************************************* task path: /tmp/tmptid0429t/tests/tests_connection.yml:28 ok: [/cache/fedora-32.qcow2] => {"ansible_facts": {"default_connection": "System eth0"}, "changed": false} TASK [Create dummy interfaces using nmcli] ************************************* task path: /tmp/tmptid0429t/tests/tests_connection.yml:34 changed: [/cache/fedora-32.qcow2] => (item=0) => {"ansible_loop_var": "item", "changed": true, "cmd": ["nmcli", "con", "add", "type", "dummy", "ifname", "dummy00", "con-name", "CON-dummy00", "ipv4.method", "manual", "ipv4.addresses", "192.0.0.1/24"], "delta": "0:00:00.035425", "end": "2021-04-02 03:50:58.015769", "item": 0, "rc": 0, "start": "2021-04-02 03:50:57.980344", "stderr": "", "stderr_lines": [], "stdout": "Connection 'CON-dummy00' (52238196-e4da-447d-8286-c06b571abd34) successfully added.", "stdout_lines": ["Connection 'CON-dummy00' (52238196-e4da-447d-8286-c06b571abd34) successfully added."]} changed: [/cache/fedora-32.qcow2] => (item=1) => {"ansible_loop_var": "item", "changed": true, "cmd": ["nmcli", "con", "add", "type", "dummy", "ifname", "dummy01", "con-name", "CON-dummy01", "ipv4.method", "manual", "ipv4.addresses", "192.0.1.1/24"], "delta": "0:00:00.024566", "end": "2021-04-02 03:50:58.381561", "item": 1, "rc": 0, "start": "2021-04-02 03:50:58.356995", "stderr": "", "stderr_lines": [], "stdout": "Connection 'CON-dummy01' (a7aa91ed-bcab-436f-8ec2-0f75edf364c9) successfully added.", "stdout_lines": ["Connection 'CON-dummy01' (a7aa91ed-bcab-436f-8ec2-0f75edf364c9) successfully added."]} changed: [/cache/fedora-32.qcow2] => (item=2) => {"ansible_loop_var": "item", "changed": true, "cmd": ["nmcli", "con", "add", "type", "dummy", "ifname", "dummy02", "con-name", "CON-dummy02", "ipv4.method", "manual", "ipv4.addresses", "192.0.2.1/24"], "delta": "0:00:00.038446", "end": "2021-04-02 03:50:58.755867", "item": 2, "rc": 0, "start": "2021-04-02 03:50:58.717421", "stderr": "", "stderr_lines": [], "stdout": "Connection 'CON-dummy02' (a63ffab0-078f-4396-8fe2-aa32be651318) successfully added.", "stdout_lines": ["Connection 'CON-dummy02' (a63ffab0-078f-4396-8fe2-aa32be651318) successfully added."]} changed: [/cache/fedora-32.qcow2] => (item=3) => {"ansible_loop_var": "item", "changed": true, "cmd": ["nmcli", "con", "add", "type", "dummy", "ifname", "dummy03", "con-name", "CON-dummy03", "ipv4.method", "manual", "ipv4.addresses", "192.0.3.1/24"], "delta": "0:00:00.032451", "end": "2021-04-02 03:50:59.108976", "item": 3, "rc": 0, "start": "2021-04-02 03:50:59.076525", "stderr": "", "stderr_lines": [], "stdout": "Connection 'CON-dummy03' (08b0b908-2b13-4768-8627-b7c00a6d4442) successfully added.", "stdout_lines": ["Connection 'CON-dummy03' (08b0b908-2b13-4768-8627-b7c00a6d4442) successfully added."]} TASK [Verify used firewalld zones] ********************************************* task path: /tmp/tmptid0429t/tests/tests_connection.yml:47 statically imported: /tmp/tmptid0429t/tasks/firewalld.yml TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmptid0429t/tasks/firewalld.yml:2 ok: [/cache/fedora-32.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmptid0429t/tasks/firewalld.yml:7 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmptid0429t/tasks/firewalld.yml:13 ok: [/cache/fedora-32.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmptid0429t/tasks/firewalld.yml:19 ok: [/cache/fedora-32.qcow2] => {"changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": {"ActiveEnterTimestamp": "Fri 2021-04-02 03:50:53 UTC", "ActiveEnterTimestampMonotonic": "77937115", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "dbus-broker.service basic.target polkit.service dbus.socket system.slice sysinit.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Fri 2021-04-02 03:50:53 UTC", "AssertTimestampMonotonic": "77695035", "Before": "shutdown.target multi-user.target network-pre.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "yes", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "414248000", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "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": "Fri 2021-04-02 03:50:53 UTC", "ConditionTimestampMonotonic": "77695034", "ConfigurationDirectoryMode": "0755", "Conflicts": "nftables.service ebtables.service ipset.service iptables.service shutdown.target ip6tables.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "9971", "ExecMainStartTimestamp": "Fri 2021-04-02 03:50:53 UTC", "ExecMainStartTimestampMonotonic": "77695929", "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=[Fri 2021-04-02 03:50:53 UTC] ; stop_time=[n/a] ; pid=9971 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; flags= ; start_time=[Fri 2021-04-02 03:50:53 UTC] ; stop_time=[n/a] ; pid=9971 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "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": "Fri 2021-04-02 03:50:53 UTC", "InactiveExitTimestampMonotonic": "77696176", "InvocationID": "ff59a25483a346f1b79aed44801b3e56", "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": "7782", "LimitNPROCSoft": "7782", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7782", "LimitSIGPENDINGSoft": "7782", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "9971", "MemoryAccounting": "yes", "MemoryCurrent": "23142400", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "firewalld.service dbus-org.fedoraproject.FirewallD1.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "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", "StandardInputData": "", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Fri 2021-04-02 03:50:53 UTC", "StateChangeTimestampMonotonic": "77937115", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "2", "TasksMax": "2334", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}} TASK [linux-system-roles.firewall : Install system-config-firewall] ************ task path: /tmp/tmptid0429t/tasks/main.yml:8 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmptid0429t/tasks/main.yml:15 ok: [/cache/fedora-32.qcow2] => (item={'zone': 'external', 'state': 'enabled'}) => {"ansible_loop_var": "item", "changed": false, "item": {"state": "enabled", "zone": "external"}} ok: [/cache/fedora-32.qcow2] => (item={'zone': 'trusted', 'state': 'enabled'}) => {"ansible_loop_var": "item", "changed": false, "item": {"state": "enabled", "zone": "trusted"}} TASK [Fail on missing zones] *************************************************** task path: /tmp/tmptid0429t/tests/tests_connection.yml:57 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Setup firewalld] ********************************************************* task path: /tmp/tmptid0429t/tests/tests_connection.yml:63 statically imported: /tmp/tmptid0429t/tasks/firewalld.yml TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmptid0429t/tasks/firewalld.yml:2 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmptid0429t/tasks/firewalld.yml:7 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmptid0429t/tasks/firewalld.yml:13 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmptid0429t/tasks/firewalld.yml:19 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.firewall : Install system-config-firewall] ************ task path: /tmp/tmptid0429t/tasks/main.yml:8 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmptid0429t/tasks/main.yml:15 changed: [/cache/fedora-32.qcow2] => (item={'trust_by_connection': ['CON-dummy00', 'CON-dummy01'], 'masq_by_connection': ['CON-dummy02', 'CON-dummy03'], 'state': 'enabled'}) => {"ansible_loop_var": "item", "changed": true, "item": {"masq_by_connection": ["CON-dummy02", "CON-dummy03"], "state": "enabled", "trust_by_connection": ["CON-dummy00", "CON-dummy01"]}} changed: [/cache/fedora-32.qcow2] => (item={'forward_port_by_connection': ['CON-dummy02;447/tcp;;1.2.3.4', 'CON-dummy03;448/udp;;1.2.3.5'], 'state': 'enabled'}) => {"ansible_loop_var": "item", "changed": true, "item": {"forward_port_by_connection": ["CON-dummy02;447/tcp;;1.2.3.4", "CON-dummy03;448/udp;;1.2.3.5"], "state": "enabled"}} TASK [Fail if no changes are done] ********************************************* task path: /tmp/tmptid0429t/tests/tests_connection.yml:76 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Setup firewalld again] *************************************************** task path: /tmp/tmptid0429t/tests/tests_connection.yml:82 TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmptid0429t/tasks/firewalld.yml:2 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmptid0429t/tasks/firewalld.yml:7 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmptid0429t/tasks/firewalld.yml:13 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmptid0429t/tasks/firewalld.yml:19 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.firewall : Install system-config-firewall] ************ task path: /tmp/tmptid0429t/tasks/main.yml:8 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmptid0429t/tasks/main.yml:15 changed: [/cache/fedora-32.qcow2] => (item={'trust_by_connection': ['CON-dummy00', 'CON-dummy01'], 'masq_by_connection': ['CON-dummy02', 'CON-dummy03'], 'state': 'enabled'}) => {"ansible_loop_var": "item", "changed": true, "item": {"masq_by_connection": ["CON-dummy02", "CON-dummy03"], "state": "enabled", "trust_by_connection": ["CON-dummy00", "CON-dummy01"]}} ok: [/cache/fedora-32.qcow2] => (item={'forward_port_by_connection': ['CON-dummy02;447/tcp;;1.2.3.4', 'CON-dummy03;448/udp;;1.2.3.5'], 'state': 'enabled'}) => {"ansible_loop_var": "item", "changed": false, "item": {"forward_port_by_connection": ["CON-dummy02;447/tcp;;1.2.3.4", "CON-dummy03;448/udp;;1.2.3.5"], "state": "enabled"}} TASK [Verify firewalld zone external forward ports] **************************** task path: /tmp/tmptid0429t/tests/tests_connection.yml:97 changed: [/cache/fedora-32.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--zone=external", "--list-forward-ports"], "delta": "0:00:00.249769", "end": "2021-04-02 03:51:10.586192", "failed_when_result": false, "rc": 0, "start": "2021-04-02 03:51:10.336423", "stderr": "", "stderr_lines": [], "stdout": "port=447:proto=tcp:toport=:toaddr=1.2.3.4\nport=448:proto=udp:toport=:toaddr=1.2.3.5", "stdout_lines": ["port=447:proto=tcp:toport=:toaddr=1.2.3.4", "port=448:proto=udp:toport=:toaddr=1.2.3.5"]} TASK [Verify firewalld zone external interfaces] ******************************* task path: /tmp/tmptid0429t/tests/tests_connection.yml:106 changed: [/cache/fedora-32.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--zone=external", "--list-interfaces"], "delta": "0:00:00.249223", "end": "2021-04-02 03:51:11.235856", "failed_when_result": false, "rc": 0, "start": "2021-04-02 03:51:10.986633", "stderr": "", "stderr_lines": [], "stdout": "dummy02 dummy03", "stdout_lines": ["dummy02 dummy03"]} TASK [Verify firewalld zone trusted interfaces] ******************************** task path: /tmp/tmptid0429t/tests/tests_connection.yml:113 changed: [/cache/fedora-32.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--zone=trusted", "--list-interfaces"], "delta": "0:00:00.236873", "end": "2021-04-02 03:51:11.840999", "failed_when_result": false, "rc": 0, "start": "2021-04-02 03:51:11.604126", "stderr": "", "stderr_lines": [], "stdout": "dummy00 dummy01", "stdout_lines": ["dummy00 dummy01"]} TASK [Reset to zone defaults] ************************************************** task path: /tmp/tmptid0429t/tests/tests_connection.yml:124 changed: [/cache/fedora-32.qcow2] => {"changed": true, "cmd": "firewall-cmd --permanent --load-zone-defaults=external\nfirewall-cmd --permanent --load-zone-defaults=trusted\nfirewall-cmd --reload\n", "delta": "0:00:00.835003", "end": "2021-04-02 03:51:13.053452", "rc": 0, "start": "2021-04-02 03:51:12.218449", "stderr": "Error: NO_DEFAULTS: trusted", "stderr_lines": ["Error: NO_DEFAULTS: trusted"], "stdout": "success\nsuccess", "stdout_lines": ["success", "success"]} TASK [Delete dummy interfaces using nmcli] ************************************* task path: /tmp/tmptid0429t/tests/tests_connection.yml:131 changed: [/cache/fedora-32.qcow2] => (item=0) => {"ansible_loop_var": "item", "changed": true, "cmd": ["nmcli", "con", "del", "CON-dummy00"], "delta": "0:00:00.022991", "end": "2021-04-02 03:51:13.487713", "item": 0, "rc": 0, "start": "2021-04-02 03:51:13.464722", "stderr": "", "stderr_lines": [], "stdout": "Connection 'CON-dummy00' (52238196-e4da-447d-8286-c06b571abd34) successfully deleted.", "stdout_lines": ["Connection 'CON-dummy00' (52238196-e4da-447d-8286-c06b571abd34) successfully deleted."]} changed: [/cache/fedora-32.qcow2] => (item=1) => {"ansible_loop_var": "item", "changed": true, "cmd": ["nmcli", "con", "del", "CON-dummy01"], "delta": "0:00:00.023327", "end": "2021-04-02 03:51:13.833977", "item": 1, "rc": 0, "start": "2021-04-02 03:51:13.810650", "stderr": "", "stderr_lines": [], "stdout": "Connection 'CON-dummy01' (a7aa91ed-bcab-436f-8ec2-0f75edf364c9) successfully deleted.", "stdout_lines": ["Connection 'CON-dummy01' (a7aa91ed-bcab-436f-8ec2-0f75edf364c9) successfully deleted."]} changed: [/cache/fedora-32.qcow2] => (item=2) => {"ansible_loop_var": "item", "changed": true, "cmd": ["nmcli", "con", "del", "CON-dummy02"], "delta": "0:00:00.020760", "end": "2021-04-02 03:51:14.193422", "item": 2, "rc": 0, "start": "2021-04-02 03:51:14.172662", "stderr": "", "stderr_lines": [], "stdout": "Connection 'CON-dummy02' (a63ffab0-078f-4396-8fe2-aa32be651318) successfully deleted.", "stdout_lines": ["Connection 'CON-dummy02' (a63ffab0-078f-4396-8fe2-aa32be651318) successfully deleted."]} changed: [/cache/fedora-32.qcow2] => (item=3) => {"ansible_loop_var": "item", "changed": true, "cmd": ["nmcli", "con", "del", "CON-dummy03"], "delta": "0:00:00.020165", "end": "2021-04-02 03:51:14.521972", "item": 3, "rc": 0, "start": "2021-04-02 03:51:14.501807", "stderr": "", "stderr_lines": [], "stdout": "Connection 'CON-dummy03' (08b0b908-2b13-4768-8627-b7c00a6d4442) successfully deleted.", "stdout_lines": ["Connection 'CON-dummy03' (08b0b908-2b13-4768-8627-b7c00a6d4442) successfully deleted."]} TASK [Ensure NetworkManager is stopped] **************************************** task path: /tmp/tmptid0429t/tests/tests_connection.yml:139 changed: [/cache/fedora-32.qcow2] => {"changed": true, "name": "NetworkManager", "state": "stopped", "status": {"ActiveEnterTimestamp": "Fri 2021-04-02 03:49:39 UTC", "ActiveEnterTimestampMonotonic": "4362503", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "network-pre.target system.slice systemd-journald.socket sysinit.target basic.target dbus-broker.service cloud-init-local.service dbus.socket", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Fri 2021-04-02 03:49:39 UTC", "AssertTimestampMonotonic": "4308352", "Before": "NetworkManager-wait-online.service shutdown.target multi-user.target cloud-init.service network.service network.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.freedesktop.NetworkManager", "CPUAccounting": "yes", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "258831000", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_dac_override cap_kill cap_setgid cap_setuid cap_net_bind_service cap_net_admin cap_net_raw cap_sys_module cap_sys_chroot cap_audit_write", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Fri 2021-04-02 03:49:39 UTC", "ConditionTimestampMonotonic": "4308351", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/NetworkManager.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "Network Manager", "DevicePolicy": "auto", "Documentation": "man:NetworkManager(8)", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "577", "ExecMainStartTimestamp": "Fri 2021-04-02 03:49:39 UTC", "ExecMainStartTimestampMonotonic": "4309210", "ExecMainStatus": "0", "ExecReload": "{ path=/usr/bin/busctl ; argv[]=/usr/bin/busctl call org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager Reload u 0 ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecReloadEx": "{ path=/usr/bin/busctl ; argv[]=/usr/bin/busctl call org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager Reload u 0 ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/sbin/NetworkManager ; argv[]=/usr/sbin/NetworkManager --no-daemon ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/NetworkManager ; argv[]=/usr/sbin/NetworkManager --no-daemon ; 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/NetworkManager.service", "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": "NetworkManager.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Fri 2021-04-02 03:49:39 UTC", "InactiveExitTimestampMonotonic": "4309512", "InvocationID": "b992d321135b4f1d9cbb34664381e0e7", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "process", "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": "7782", "LimitNPROCSoft": "7782", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7782", "LimitSIGPENDINGSoft": "7782", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "577", "MemoryAccounting": "yes", "MemoryCurrent": "13213696", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "NetworkManager.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "read-only", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "yes", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "RequiredBy": "NetworkManager-wait-online.service", "Requires": "dbus.socket system.slice sysinit.target", "Restart": "on-failure", "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": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Fri 2021-04-02 03:50:49 UTC", "StateChangeTimestampMonotonic": "73450369", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "3", "TasksMax": "2334", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Wants": "network.target", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}} TASK [ensure nmcli is absent] ************************************************** task path: /tmp/tmptid0429t/tests/tests_connection.yml:144 changed: [/cache/fedora-32.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: console-login-helper-messages-issuegen-0.17-2.fc32.noarch", "Removed: NetworkManager-1:1.22.16-1.fc32.x86_64", "Removed: console-login-helper-messages-issuegen-0.20.3-1.fc32.noarch"]} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-32.qcow2 : ok=23 changed=13 unreachable=0 failed=0 skipped=18 rescued=0 ignored=0 + cd /tmp/tmptid0429t/tests; TEST_SUBJECTS=/cache/fedora-32.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_firewall-29-6731aa8-fedora-32-1z2737hk/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmptid0429t/_setup.yml /tmp/tmptid0429t/tests/tests_default.yml ansible-playbook 2.9.18 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/tester/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.7 (default, Jan 20 2021, 00:00:00) [GCC 10.2.1 20201125 (Red Hat 10.2.1-9)] Using /etc/ansible/ansible.cfg as config file Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmptid0429t/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmptid0429t/_setup.yml:5 ok: [/cache/fedora-32.qcow2] => { "groups": { "all": [ "/cache/fedora-32.qcow2" ], "localhost": [ "/cache/fedora-32.qcow2" ], "subjects": [ "/cache/fedora-32.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmptid0429t/_setup.yml:7 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-32.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 statically imported: /tmp/tmptid0429t/tasks/firewalld.yml PLAYBOOK: tests_default.yml **************************************************** 1 plays in /tmp/tmptid0429t/tests/tests_default.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmptid0429t/tests/tests_default.yml:1 ok: [/cache/fedora-32.qcow2] META: ran handlers TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmptid0429t/tasks/firewalld.yml:2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: ipset-7.6-1.fc32.x86_64", "Installed: python3-slip-dbus-0.6.4-19.fc32.noarch", "Installed: gobject-introspection-1.64.1-1.fc32.x86_64", "Installed: firewalld-0.8.6-1.fc32.noarch", "Installed: firewalld-filesystem-0.8.6-1.fc32.noarch", "Installed: python3-firewall-0.8.6-1.fc32.noarch", "Installed: python3-nftables-1:0.9.3-4.fc32.x86_64", "Installed: ipset-libs-7.6-1.fc32.x86_64", "Installed: nftables-1:0.9.3-4.fc32.x86_64", "Installed: python3-decorator-4.4.0-6.fc32.noarch", "Installed: libnftnl-1.1.5-2.fc32.x86_64", "Installed: iptables-nft-1.8.4-9.fc32.x86_64", "Installed: python3-gobject-base-3.36.1-1.fc32.x86_64", "Installed: python3-slip-0.6.4-19.fc32.noarch"]} TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmptid0429t/tasks/firewalld.yml:7 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmptid0429t/tasks/firewalld.yml:13 ok: [/cache/fedora-32.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmptid0429t/tasks/firewalld.yml:19 changed: [/cache/fedora-32.qcow2] => {"changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": {"ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "basic.target system.slice dbus-broker.service polkit.service sysinit.target dbus.socket", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "multi-user.target network-pre.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "yes", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "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 iptables.service ipset.service nftables.service ip6tables.service shutdown.target", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "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", "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": "7782", "LimitNPROCSoft": "7782", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7782", "LimitSIGPENDINGSoft": "7782", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "firewalld.service dbus-org.fedoraproject.FirewallD1.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "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", "StandardInputData": "", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "2334", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}} TASK [linux-system-roles.firewall : Install system-config-firewall] ************ task path: /tmp/tmptid0429t/tasks/main.yml:8 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmptid0429t/tasks/main.yml:15 META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-32.qcow2 : ok=5 changed=2 unreachable=0 failed=0 skipped=4 rescued=0 ignored=0 + cd /tmp/tmptid0429t/tests; TEST_SUBJECTS=/cache/fedora-32.qcow2 TEST_ARTIFACTS=/tmp/linux-system-role-test-work-pull-linux-system-roles_firewall-29-6731aa8-fedora-32-1z2737hk/artifacts ansible-playbook -vv --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 /tmp/tmptid0429t/_setup.yml /tmp/tmptid0429t/tests/tests_zone.yml ansible-playbook 2.9.18 config file = /etc/ansible/ansible.cfg configured module search path = ['/home/tester/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.8/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 3.8.7 (default, Jan 20 2021, 00:00:00) [GCC 10.2.1 20201125 (Red Hat 10.2.1-9)] Using /etc/ansible/ansible.cfg as config file Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: _setup.yml *********************************************************** 1 plays in /tmp/tmptid0429t/_setup.yml PLAY [Fail when only localhost is available] *********************************** META: ran handlers TASK [debug] ******************************************************************* task path: /tmp/tmptid0429t/_setup.yml:5 ok: [/cache/fedora-32.qcow2] => { "groups": { "all": [ "/cache/fedora-32.qcow2" ], "localhost": [ "/cache/fedora-32.qcow2" ], "subjects": [ "/cache/fedora-32.qcow2" ], "ungrouped": [] } } TASK [fail] ******************************************************************** task path: /tmp/tmptid0429t/_setup.yml:7 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-32.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=1 rescued=0 ignored=0 PLAYBOOK: tests_zone.yml ******************************************************* 1 plays in /tmp/tmptid0429t/tests/tests_zone.yml PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmptid0429t/tests/tests_zone.yml:1 ok: [/cache/fedora-32.qcow2] META: ran handlers TASK [include_role : linux-system-roles.firewall] ****************************** task path: /tmp/tmptid0429t/tests/tests_zone.yml:6 statically imported: /tmp/tmptid0429t/tasks/firewalld.yml TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmptid0429t/tasks/firewalld.yml:2 changed: [/cache/fedora-32.qcow2] => {"changed": true, "msg": "", "rc": 0, "results": ["Installed: ipset-7.6-1.fc32.x86_64", "Installed: python3-slip-dbus-0.6.4-19.fc32.noarch", "Installed: gobject-introspection-1.64.1-1.fc32.x86_64", "Installed: firewalld-0.8.6-1.fc32.noarch", "Installed: firewalld-filesystem-0.8.6-1.fc32.noarch", "Installed: python3-firewall-0.8.6-1.fc32.noarch", "Installed: python3-nftables-1:0.9.3-4.fc32.x86_64", "Installed: ipset-libs-7.6-1.fc32.x86_64", "Installed: nftables-1:0.9.3-4.fc32.x86_64", "Installed: python3-decorator-4.4.0-6.fc32.noarch", "Installed: libnftnl-1.1.5-2.fc32.x86_64", "Installed: iptables-nft-1.8.4-9.fc32.x86_64", "Installed: python3-gobject-base-3.36.1-1.fc32.x86_64", "Installed: python3-slip-0.6.4-19.fc32.noarch"]} TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmptid0429t/tasks/firewalld.yml:7 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmptid0429t/tasks/firewalld.yml:13 ok: [/cache/fedora-32.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmptid0429t/tasks/firewalld.yml:19 changed: [/cache/fedora-32.qcow2] => {"changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": {"ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "sysinit.target system.slice polkit.service dbus-broker.service dbus.socket basic.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "network-pre.target shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "yes", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "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 ip6tables.service ebtables.service iptables.service nftables.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "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", "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": "7782", "LimitNPROCSoft": "7782", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7782", "LimitSIGPENDINGSoft": "7782", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "MemoryAccounting": "yes", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "dbus-org.fedoraproject.FirewallD1.service firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice dbus.socket sysinit.target", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "2334", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}} TASK [linux-system-roles.firewall : Install system-config-firewall] ************ task path: /tmp/tmptid0429t/tasks/main.yml:8 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmptid0429t/tasks/main.yml:15 TASK [Verify used firewalld zones] ********************************************* task path: /tmp/tmptid0429t/tests/tests_zone.yml:14 statically imported: /tmp/tmptid0429t/tasks/firewalld.yml TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmptid0429t/tasks/firewalld.yml:2 ok: [/cache/fedora-32.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmptid0429t/tasks/firewalld.yml:7 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmptid0429t/tasks/firewalld.yml:13 ok: [/cache/fedora-32.qcow2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmptid0429t/tasks/firewalld.yml:19 ok: [/cache/fedora-32.qcow2] => {"changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": {"ActiveEnterTimestamp": "Fri 2021-04-02 03:53:30 UTC", "ActiveEnterTimestampMonotonic": "68943746", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "sysinit.target system.slice polkit.service dbus-broker.service dbus.socket basic.target", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Fri 2021-04-02 03:53:30 UTC", "AssertTimestampMonotonic": "68703937", "Before": "network-pre.target shutdown.target multi-user.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "yes", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "394397000", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "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": "Fri 2021-04-02 03:53:30 UTC", "ConditionTimestampMonotonic": "68703936", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target ipset.service ip6tables.service ebtables.service iptables.service nftables.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "DynamicUser": "no", "EffectiveCPUs": "", "EffectiveMemoryNodes": "", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "9969", "ExecMainStartTimestamp": "Fri 2021-04-02 03:53:30 UTC", "ExecMainStartTimestampMonotonic": "68705083", "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=[Fri 2021-04-02 03:53:30 UTC] ; stop_time=[n/a] ; pid=9969 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; flags= ; start_time=[Fri 2021-04-02 03:53:30 UTC] ; stop_time=[n/a] ; pid=9969 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "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": "Fri 2021-04-02 03:53:30 UTC", "InactiveExitTimestampMonotonic": "68705402", "InvocationID": "2d2693374446442a920a75d834f61398", "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": "7782", "LimitNPROCSoft": "7782", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7782", "LimitSIGPENDINGSoft": "7782", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "9969", "MemoryAccounting": "yes", "MemoryCurrent": "23097344", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAMask": "", "NUMAPolicy": "n/a", "Names": "dbus-org.fedoraproject.FirewallD1.service firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice dbus.socket sysinit.target", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Fri 2021-04-02 03:53:30 UTC", "StateChangeTimestampMonotonic": "68943746", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "2", "TasksMax": "2334", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "UtmpMode": "init", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}} TASK [linux-system-roles.firewall : Install system-config-firewall] ************ task path: /tmp/tmptid0429t/tasks/main.yml:8 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmptid0429t/tasks/main.yml:15 ok: [/cache/fedora-32.qcow2] => (item={'zone': 'internal', 'state': 'enabled'}) => {"ansible_loop_var": "item", "changed": false, "item": {"state": "enabled", "zone": "internal"}} ok: [/cache/fedora-32.qcow2] => (item={'zone': 'external', 'state': 'enabled'}) => {"ansible_loop_var": "item", "changed": false, "item": {"state": "enabled", "zone": "external"}} ok: [/cache/fedora-32.qcow2] => (item={'zone': 'trusted', 'state': 'enabled'}) => {"ansible_loop_var": "item", "changed": false, "item": {"state": "enabled", "zone": "trusted"}} TASK [Fail on missing zones] *************************************************** task path: /tmp/tmptid0429t/tests/tests_zone.yml:26 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Setup firewalld] ********************************************************* task path: /tmp/tmptid0429t/tests/tests_zone.yml:32 statically imported: /tmp/tmptid0429t/tasks/firewalld.yml TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmptid0429t/tasks/firewalld.yml:2 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmptid0429t/tasks/firewalld.yml:7 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmptid0429t/tasks/firewalld.yml:13 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmptid0429t/tasks/firewalld.yml:19 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.firewall : Install system-config-firewall] ************ task path: /tmp/tmptid0429t/tasks/main.yml:8 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmptid0429t/tasks/main.yml:15 changed: [/cache/fedora-32.qcow2] => (item={'zone': 'internal', 'service': ['tftp', 'ftp'], 'port': ['443/tcp', '443/udp'], 'trust': ['interface0', 'interface1'], 'masq': ['interface2', 'interface3'], '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"], "masq": ["interface2", "interface3"], "port": ["443/tcp", "443/udp"], "service": ["tftp", "ftp"], "state": "enabled", "trust": ["interface0", "interface1"], "zone": "internal"}} TASK [Fail if no changes are done] ********************************************* task path: /tmp/tmptid0429t/tests/tests_zone.yml:47 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Setup firewalld again] *************************************************** task path: /tmp/tmptid0429t/tests/tests_zone.yml:53 TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmptid0429t/tasks/firewalld.yml:2 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmptid0429t/tasks/firewalld.yml:7 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmptid0429t/tasks/firewalld.yml:13 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmptid0429t/tasks/firewalld.yml:19 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.firewall : Install system-config-firewall] ************ task path: /tmp/tmptid0429t/tasks/main.yml:8 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmptid0429t/tasks/main.yml:15 ok: [/cache/fedora-32.qcow2] => (item={'zone': 'internal', 'service': ['tftp', 'ftp'], 'port': ['443/tcp', '443/udp'], 'trust': ['interface0', 'interface1'], 'masq': ['interface2', 'interface3'], '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"], "masq": ["interface2", "interface3"], "port": ["443/tcp", "443/udp"], "service": ["tftp", "ftp"], "state": "enabled", "trust": ["interface0", "interface1"], "zone": "internal"}} TASK [Fail on newly changes] *************************************************** task path: /tmp/tmptid0429t/tests/tests_zone.yml:68 skipping: [/cache/fedora-32.qcow2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [Verify firewalld zone internal services] ********************************* task path: /tmp/tmptid0429t/tests/tests_zone.yml:74 changed: [/cache/fedora-32.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--zone=internal", "--list-services"], "delta": "0:00:00.232563", "end": "2021-04-02 03:53:41.789408", "failed_when_result": false, "rc": 0, "start": "2021-04-02 03:53:41.556845", "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/tmptid0429t/tests/tests_zone.yml:81 changed: [/cache/fedora-32.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--zone=internal", "--list-ports"], "delta": "0:00:00.246340", "end": "2021-04-02 03:53:42.411529", "failed_when_result": false, "rc": 0, "start": "2021-04-02 03:53:42.165189", "stderr": "", "stderr_lines": [], "stdout": "443/tcp 443/udp", "stdout_lines": ["443/tcp 443/udp"]} TASK [Verify firewalld zone internal forward ports] **************************** task path: /tmp/tmptid0429t/tests/tests_zone.yml:88 changed: [/cache/fedora-32.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--zone=internal", "--list-forward-ports"], "delta": "0:00:00.232769", "end": "2021-04-02 03:53:43.042703", "failed_when_result": false, "rc": 0, "start": "2021-04-02 03:53:42.809934", "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 [Verify firewalld zone external interfaces] ******************************* task path: /tmp/tmptid0429t/tests/tests_zone.yml:97 changed: [/cache/fedora-32.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--zone=external", "--list-interfaces"], "delta": "0:00:00.249473", "end": "2021-04-02 03:53:43.709480", "failed_when_result": false, "rc": 0, "start": "2021-04-02 03:53:43.460007", "stderr": "", "stderr_lines": [], "stdout": "interface2 interface3", "stdout_lines": ["interface2 interface3"]} TASK [Verify firewalld zone trusted interfaces] ******************************** task path: /tmp/tmptid0429t/tests/tests_zone.yml:104 changed: [/cache/fedora-32.qcow2] => {"changed": true, "cmd": ["firewall-cmd", "--permanent", "--zone=trusted", "--list-interfaces"], "delta": "0:00:00.246201", "end": "2021-04-02 03:53:44.339080", "failed_when_result": false, "rc": 0, "start": "2021-04-02 03:53:44.092879", "stderr": "", "stderr_lines": [], "stdout": "interface0 interface1", "stdout_lines": ["interface0 interface1"]} TASK [Reset to zone defaults] ************************************************** task path: /tmp/tmptid0429t/tests/tests_zone.yml:115 changed: [/cache/fedora-32.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.087071", "end": "2021-04-02 03:53:45.845843", "rc": 0, "start": "2021-04-02 03:53:44.758772", "stderr": "", "stderr_lines": [], "stdout": "success\nsuccess\nsuccess\nsuccess", "stdout_lines": ["success", "success", "success", "success"]} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/fedora-32.qcow2 : ok=17 changed=9 unreachable=0 failed=0 skipped=19 rescued=0 ignored=0