# STDOUT: ---v---v---v---v---v--- Using /etc/ansible/ansible.cfg as config file PLAY [Ensure that the roles runs with default parameters] ********************** TASK [Gathering Facts] ********************************************************* Thursday 21 July 2022 18:47:09 +0000 (0:00:00.032) 0:00:00.032 ********* ok: [sut] TASK [linux-system-roles.firewall : include_tasks] ***************************** Thursday 21 July 2022 18:47:10 +0000 (0:00:00.816) 0:00:00.848 ********* included: /WORKDIR/dist-git-firewall-gh87-BTaQU9/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml for sut TASK [linux-system-roles.firewall : Ensure ansible_facts used by role] ********* Thursday 21 July 2022 18:47:10 +0000 (0:00:00.042) 0:00:00.891 ********* ok: [sut] TASK [linux-system-roles.firewall : Install firewalld] ************************* Thursday 21 July 2022 18:47:10 +0000 (0:00:00.402) 0:00:01.294 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Install python-firewall] ******************* Thursday 21 July 2022 18:47:12 +0000 (0:00:01.915) 0:00:03.210 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** Thursday 21 July 2022 18:47:12 +0000 (0:00:00.051) 0:00:03.262 ********* ok: [sut] => { "changed": false, "rc": 0, "results": [] } MSG: Nothing to do TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** Thursday 21 July 2022 18:47:14 +0000 (0:00:01.753) 0:00:05.015 ********* changed: [sut] => { "changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "system.slice dbus.service dbus.socket basic.target sysinit.target polkit.service", "AllowIsolate": "no", "AllowedCPUs": "", "AllowedMemoryNodes": "", "AmbientCapabilities": "", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target network-pre.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "no", "CPUAffinity": "", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "nftables.service ipset.service iptables.service ebtables.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 }", "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 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "65536", "LimitMEMLOCKSoft": "65536", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "262144", "LimitNOFILESoft": "1024", "LimitNPROC": "14143", "LimitNPROCSoft": "14143", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "14143", "LimitSIGPENDINGSoft": "14143", "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", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "dbus.socket system.slice sysinit.target", "Restart": "no", "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": "22628", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "disabled", "UtmpMode": "init", "Wants": "network-pre.target", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0" } } TASK [linux-system-roles.firewall : Check if previous replaced is defined] ***** Thursday 21 July 2022 18:47:15 +0000 (0:00:01.753) 0:00:06.768 ********* ok: [sut] => { "ansible_facts": { "__firewall_previous_replaced": false, "__firewall_python_cmd": "/usr/bin/python3" }, "changed": false } TASK [linux-system-roles.firewall : Get config files, checksums before and remove] *** Thursday 21 July 2022 18:47:16 +0000 (0:00:00.056) 0:00:06.825 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Configure firewall] ************************ Thursday 21 July 2022 18:47:16 +0000 (0:00:00.048) 0:00:06.874 ********* TASK [linux-system-roles.firewall : Get config files, checksums after] ********* Thursday 21 July 2022 18:47:16 +0000 (0:00:00.048) 0:00:06.922 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Calculate what has changed] **************** Thursday 21 July 2022 18:47:16 +0000 (0:00:00.049) 0:00:06.972 ********* skipping: [sut] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Show diffs] ******************************** Thursday 21 July 2022 18:47:16 +0000 (0:00:00.050) 0:00:07.023 ********* skipping: [sut] => {} TASK [Remove custom zone] ****************************************************** Thursday 21 July 2022 18:47:16 +0000 (0:00:00.052) 0:00:07.075 ********* changed: [sut] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--delete-zone=custom" ], "delta": "0:00:00.770521", "end": "2022-07-21 18:47:17.397838", "failed_when_result": false, "rc": 112, "start": "2022-07-21 18:47:16.627317" } STDERR: Error: INVALID_ZONE: custom MSG: non-zero return code TASK [Reset internal zone to defaults] ***************************************** Thursday 21 July 2022 18:47:17 +0000 (0:00:01.176) 0:00:08.252 ********* changed: [sut] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=internal" ], "delta": "0:00:00.519216", "end": "2022-07-21 18:47:18.165431", "failed_when_result": false, "rc": 22, "start": "2022-07-21 18:47:17.646215" } STDERR: Error: NO_DEFAULTS: internal MSG: non-zero return code TASK [Reset trusted zone to defaults] ****************************************** Thursday 21 July 2022 18:47:18 +0000 (0:00:00.769) 0:00:09.021 ********* changed: [sut] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=trusted" ], "delta": "0:00:00.399476", "end": "2022-07-21 18:47:18.817004", "failed_when_result": false, "rc": 22, "start": "2022-07-21 18:47:18.417528" } STDERR: Error: NO_DEFAULTS: trusted MSG: non-zero return code TASK [Reset dmz zone to defaults] ********************************************** Thursday 21 July 2022 18:47:18 +0000 (0:00:00.651) 0:00:09.673 ********* changed: [sut] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=dmz" ], "delta": "0:00:00.401598", "end": "2022-07-21 18:47:19.475116", "failed_when_result": false, "rc": 22, "start": "2022-07-21 18:47:19.073518" } STDERR: Error: NO_DEFAULTS: dmz MSG: non-zero return code TASK [Reset drop zone to defaults] ********************************************* Thursday 21 July 2022 18:47:19 +0000 (0:00:00.658) 0:00:10.331 ********* changed: [sut] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=drop" ], "delta": "0:00:00.399154", "end": "2022-07-21 18:47:20.125848", "failed_when_result": false, "rc": 22, "start": "2022-07-21 18:47:19.726694" } STDERR: Error: NO_DEFAULTS: drop MSG: non-zero return code TASK [Reset public zone to defaults] ******************************************* Thursday 21 July 2022 18:47:20 +0000 (0:00:00.649) 0:00:10.981 ********* changed: [sut] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=public" ], "delta": "0:00:00.397703", "end": "2022-07-21 18:47:20.772962", "failed_when_result": false, "rc": 22, "start": "2022-07-21 18:47:20.375259" } STDERR: Error: NO_DEFAULTS: public MSG: non-zero return code TASK [Reset default zone to defaults] ****************************************** Thursday 21 July 2022 18:47:20 +0000 (0:00:00.648) 0:00:11.630 ********* changed: [sut] => { "changed": true, "cmd": "zone=$(firewall-cmd --get-default-zone)\nfirewall-cmd --permanent --load-zone-defaults=$zone\n", "delta": "0:00:00.789569", "end": "2022-07-21 18:47:21.814875", "failed_when_result": false, "rc": 22, "start": "2022-07-21 18:47:21.025306" } STDERR: Error: NO_DEFAULTS: public MSG: non-zero return code TASK [Create custom zone] ****************************************************** Thursday 21 July 2022 18:47:21 +0000 (0:00:01.041) 0:00:12.671 ********* changed: [sut] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--new-zone=custom" ], "delta": "0:00:00.392620", "end": "2022-07-21 18:47:22.460411", "failed_when_result": false, "rc": 0, "start": "2022-07-21 18:47:22.067791" } STDOUT: success TASK [Reload firewalld] ******************************************************** Thursday 21 July 2022 18:47:22 +0000 (0:00:00.646) 0:00:13.317 ********* changed: [sut] => { "changed": true, "cmd": [ "firewall-cmd", "--reload" ], "delta": "0:00:00.834381", "end": "2022-07-21 18:47:23.546567", "failed_when_result": false, "rc": 0, "start": "2022-07-21 18:47:22.712186" } STDOUT: success TASK [Permit traffic in default zone for https service] ************************ Thursday 21 July 2022 18:47:23 +0000 (0:00:01.084) 0:00:14.402 ********* changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Permit traffic in default zone for https service, again] ***************** Thursday 21 July 2022 18:47:24 +0000 (0:00:00.682) 0:00:15.085 ********* ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Permit traffic in default zone on port 8081/tcp] ************************* Thursday 21 July 2022 18:47:24 +0000 (0:00:00.545) 0:00:15.630 ********* changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Permit traffic in default zone on port 8081/tcp, again] ****************** Thursday 21 July 2022 18:47:25 +0000 (0:00:00.562) 0:00:16.193 ********* ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Allow port 161-162/udp in permanent default zone] ************************ Thursday 21 July 2022 18:47:25 +0000 (0:00:00.542) 0:00:16.736 ********* changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Allow port 161-162/udp in permanent default zone, again] ***************** Thursday 21 July 2022 18:47:26 +0000 (0:00:00.556) 0:00:17.292 ********* ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Do not permit traffic in default zone on port 8081/tcp] ****************** Thursday 21 July 2022 18:47:27 +0000 (0:00:00.546) 0:00:17.838 ********* changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Do not permit traffic in default zone on port 8081/tcp, again] *********** Thursday 21 July 2022 18:47:27 +0000 (0:00:00.551) 0:00:18.389 ********* ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Allow service http in permanent dmz zone] ******************************** Thursday 21 July 2022 18:47:28 +0000 (0:00:00.545) 0:00:18.935 ********* changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Allow service http in permanent dmz zone, again] ************************* Thursday 21 July 2022 18:47:28 +0000 (0:00:00.552) 0:00:19.487 ********* ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Allow service ftp with limitation using rich rule in permanent default zone] *** Thursday 21 July 2022 18:47:29 +0000 (0:00:00.541) 0:00:20.028 ********* changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Allow service ftp with limitation using rich rule in permanent default zone, again] *** Thursday 21 July 2022 18:47:29 +0000 (0:00:00.545) 0:00:20.573 ********* ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Allow source 192.0.2.0/24 in internal zone] ****************************** Thursday 21 July 2022 18:47:30 +0000 (0:00:00.543) 0:00:21.117 ********* changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Allow source 192.0.2.0/24 in internal zone, again] *********************** Thursday 21 July 2022 18:47:30 +0000 (0:00:00.544) 0:00:21.662 ********* ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Allow interface eth2 in permanent trusted zone] ************************** Thursday 21 July 2022 18:47:31 +0000 (0:00:00.541) 0:00:22.203 ********* changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Allow interface eth2 in permanent trusted zone, again] ******************* Thursday 21 July 2022 18:47:31 +0000 (0:00:00.567) 0:00:22.771 ********* ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Allow masquerading in permament dmz zone] ******************************** Thursday 21 July 2022 18:47:32 +0000 (0:00:00.556) 0:00:23.328 ********* changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Allow masquerading in permament dmz zone, again] ************************* Thursday 21 July 2022 18:47:33 +0000 (0:00:00.546) 0:00:23.874 ********* ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Ensure permanent custom zone exists (no change)] ************************* Thursday 21 July 2022 18:47:33 +0000 (0:00:00.540) 0:00:24.415 ********* ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Ensure ICMP block inversion in permanent drop zone] ********************** Thursday 21 July 2022 18:47:34 +0000 (0:00:00.540) 0:00:24.956 ********* changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Ensure ICMP block inversion in permanent drop zone, again] *************** Thursday 21 July 2022 18:47:34 +0000 (0:00:00.556) 0:00:25.512 ********* ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Block ICMP echo-request in permanent drop zone] ************************** Thursday 21 July 2022 18:47:35 +0000 (0:00:00.544) 0:00:26.057 ********* changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Block ICMP echo-request in permanent drop zone, again] ******************* Thursday 21 July 2022 18:47:35 +0000 (0:00:00.553) 0:00:26.610 ********* ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Ensure default target in permanent internal zone (no change)] ************ Thursday 21 July 2022 18:47:36 +0000 (0:00:00.544) 0:00:27.154 ********* ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Ensure target ACCEPT in permanent internal zone] ************************* Thursday 21 July 2022 18:47:36 +0000 (0:00:00.540) 0:00:27.695 ********* changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Ensure target ACCEPT in permanent internal zone, again] ****************** Thursday 21 July 2022 18:47:38 +0000 (0:00:01.153) 0:00:28.848 ********* ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Ensure default target in permanent internal zone] ************************ Thursday 21 July 2022 18:47:38 +0000 (0:00:00.543) 0:00:29.392 ********* changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Ensure default target in permanent internal zone, again] ***************** Thursday 21 July 2022 18:47:39 +0000 (0:00:01.044) 0:00:30.436 ********* ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Redirect port 443 to 8443 with Rich Rule in permanent and runtime public zone] *** Thursday 21 July 2022 18:47:40 +0000 (0:00:00.544) 0:00:30.981 ********* changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Redirect port 443 to 8443 with Rich Rule in permanent and runtime public zone, again] *** Thursday 21 July 2022 18:47:40 +0000 (0:00:00.575) 0:00:31.556 ********* ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Firewalld custom zone] *************************************************** Thursday 21 July 2022 18:47:41 +0000 (0:00:00.549) 0:00:32.106 ********* changed: [sut] => { "__firewall_changed": true, "changed": true } TASK [assert firewalld custom zone] ******************************************** Thursday 21 July 2022 18:47:42 +0000 (0:00:01.011) 0:00:33.118 ********* ok: [sut] => { "changed": false } MSG: All assertions passed TASK [Add masquerade to custom zone] ******************************************* Thursday 21 July 2022 18:47:42 +0000 (0:00:00.054) 0:00:33.172 ********* changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Add masquerade to custom zone, again] ************************************ Thursday 21 July 2022 18:47:42 +0000 (0:00:00.552) 0:00:33.725 ********* ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [Set the default zone to something other than dmz] ************************ Thursday 21 July 2022 18:47:43 +0000 (0:00:00.546) 0:00:34.271 ********* changed: [sut] => { "changed": true, "cmd": [ "firewall-cmd", "--set-default-zone", "public" ], "delta": "0:00:00.382338", "end": "2022-07-21 18:47:44.046930", "rc": 0, "start": "2022-07-21 18:47:43.664592" } STDOUT: success STDERR: Warning: ZONE_ALREADY_SET: public TASK [set default zone] ******************************************************** Thursday 21 July 2022 18:47:44 +0000 (0:00:00.605) 0:00:34.877 ********* changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [set default zone, again] ************************************************* Thursday 21 July 2022 18:47:44 +0000 (0:00:00.598) 0:00:35.475 ********* ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [add multiple custom services] ******************************************** Thursday 21 July 2022 18:47:45 +0000 (0:00:00.543) 0:00:36.019 ********* ok: [sut] => { "changed": false, "failed_when_result": false } MSG: can only add, modify, or remove one service at a time TASK [add custom service without details] ************************************** Thursday 21 July 2022 18:47:45 +0000 (0:00:00.440) 0:00:36.460 ********* changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [add custom service that already exists] ********************************** Thursday 21 July 2022 18:47:46 +0000 (0:00:01.090) 0:00:37.551 ********* ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [add description to custom service] *************************************** Thursday 21 July 2022 18:47:47 +0000 (0:00:00.564) 0:00:38.115 ********* changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [add short description to custom service] ********************************* Thursday 21 July 2022 18:47:48 +0000 (0:00:01.051) 0:00:39.166 ********* changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [add source_ports to custom service] ************************************** Thursday 21 July 2022 18:47:49 +0000 (0:00:01.075) 0:00:40.241 ********* changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [add source_ports to custom service again] ******************************** Thursday 21 July 2022 18:47:50 +0000 (0:00:01.059) 0:00:41.301 ********* ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [add invalid protocol to custom service] ********************************** Thursday 21 July 2022 18:47:51 +0000 (0:00:00.565) 0:00:41.867 ********* ok: [sut] => { "changed": false, "failed_when_result": false } MSG: INVALID_PROTOCOL: nonexistentprotocol TASK [add valid protocol to custom service] ************************************ Thursday 21 July 2022 18:47:51 +0000 (0:00:00.570) 0:00:42.437 ********* changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [remove valid protocol from customservice] ******************************** Thursday 21 July 2022 18:47:52 +0000 (0:00:01.078) 0:00:43.515 ********* changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [remove ports from custom service without deleting service] *************** Thursday 21 July 2022 18:47:53 +0000 (0:00:01.065) 0:00:44.581 ********* changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [add destination addresses] *********************************************** Thursday 21 July 2022 18:47:54 +0000 (0:00:01.060) 0:00:45.641 ********* changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [delete custom service] *************************************************** Thursday 21 July 2022 18:47:55 +0000 (0:00:01.059) 0:00:46.700 ********* changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [delete custom service again] ********************************************* Thursday 21 July 2022 18:47:56 +0000 (0:00:01.065) 0:00:47.766 ********* ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [add custom service with all the elements at once] ************************ Thursday 21 July 2022 18:47:57 +0000 (0:00:00.552) 0:00:48.319 ********* changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [add helper module that already is on customservice] ********************** Thursday 21 July 2022 18:47:58 +0000 (0:00:01.080) 0:00:49.400 ********* ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [forward port 40 to 0.0.0.0:8080 (string)] ******************************** Thursday 21 July 2022 18:47:59 +0000 (0:00:00.563) 0:00:49.963 ********* changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [forward same port again (string)] **************************************** Thursday 21 July 2022 18:47:59 +0000 (0:00:00.574) 0:00:50.537 ********* ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [disable forward port (string)] ******************************************* Thursday 21 July 2022 18:48:00 +0000 (0:00:00.547) 0:00:51.084 ********* changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [forward port (dict form)] ************************************************ Thursday 21 July 2022 18:48:00 +0000 (0:00:00.556) 0:00:51.641 ********* changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [forward port again (dict form)] ****************************************** Thursday 21 July 2022 18:48:01 +0000 (0:00:00.572) 0:00:52.214 ********* ok: [sut] => { "__firewall_changed": false, "changed": false, "failed_when_result": false } TASK [disable forward port (dict form)] **************************************** Thursday 21 July 2022 18:48:01 +0000 (0:00:00.570) 0:00:52.784 ********* changed: [sut] => { "__firewall_changed": true, "changed": true, "failed_when_result": false } TASK [Remove custom zone] ****************************************************** Thursday 21 July 2022 18:48:02 +0000 (0:00:00.562) 0:00:53.347 ********* changed: [sut] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--delete-zone=custom" ], "delta": "0:00:00.403693", "end": "2022-07-21 18:48:03.151069", "failed_when_result": false, "rc": 0, "start": "2022-07-21 18:48:02.747376" } STDOUT: success TASK [Remove customzone zone] ************************************************** Thursday 21 July 2022 18:48:03 +0000 (0:00:00.662) 0:00:54.010 ********* changed: [sut] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--delete-zone=customzone" ], "delta": "0:00:00.401678", "end": "2022-07-21 18:48:03.811420", "failed_when_result": false, "rc": 0, "start": "2022-07-21 18:48:03.409742" } STDOUT: success TASK [Reset internal zone to defaults] ***************************************** Thursday 21 July 2022 18:48:03 +0000 (0:00:00.662) 0:00:54.673 ********* changed: [sut] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=internal" ], "delta": "0:00:00.399877", "end": "2022-07-21 18:48:04.471025", "failed_when_result": false, "rc": 0, "start": "2022-07-21 18:48:04.071148" } STDOUT: success TASK [Reset trusted zone to defaults] ****************************************** Thursday 21 July 2022 18:48:04 +0000 (0:00:00.659) 0:00:55.332 ********* changed: [sut] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=trusted" ], "delta": "0:00:00.401756", "end": "2022-07-21 18:48:05.135555", "failed_when_result": false, "rc": 0, "start": "2022-07-21 18:48:04.733799" } STDOUT: success TASK [Reset dmz zone to defaults] ********************************************** Thursday 21 July 2022 18:48:05 +0000 (0:00:00.664) 0:00:55.996 ********* changed: [sut] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=dmz" ], "delta": "0:00:00.407744", "end": "2022-07-21 18:48:05.803462", "failed_when_result": false, "rc": 0, "start": "2022-07-21 18:48:05.395718" } STDOUT: success TASK [Reset drop zone to defaults] ********************************************* Thursday 21 July 2022 18:48:05 +0000 (0:00:00.667) 0:00:56.664 ********* changed: [sut] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=drop" ], "delta": "0:00:00.405761", "end": "2022-07-21 18:48:06.470829", "failed_when_result": false, "rc": 0, "start": "2022-07-21 18:48:06.065068" } STDOUT: success TASK [Reset public zone to defaults] ******************************************* Thursday 21 July 2022 18:48:06 +0000 (0:00:00.667) 0:00:57.331 ********* changed: [sut] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=public" ], "delta": "0:00:00.404608", "end": "2022-07-21 18:48:07.140740", "failed_when_result": false, "rc": 0, "start": "2022-07-21 18:48:06.736132" } STDOUT: success TASK [Reset default zone to defaults] ****************************************** Thursday 21 July 2022 18:48:07 +0000 (0:00:00.672) 0:00:58.003 ********* changed: [sut] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--load-zone-defaults=public" ], "delta": "0:00:00.401095", "end": "2022-07-21 18:48:07.804979", "failed_when_result": false, "rc": 22, "start": "2022-07-21 18:48:07.403884" } STDERR: Error: NO_DEFAULTS: public MSG: non-zero return code TASK [Reload firewalld] ******************************************************** Thursday 21 July 2022 18:48:07 +0000 (0:00:00.661) 0:00:58.665 ********* changed: [sut] => { "changed": true, "cmd": [ "firewall-cmd", "--reload" ], "delta": "0:00:00.835820", "end": "2022-07-21 18:48:08.901482", "failed_when_result": false, "rc": 0, "start": "2022-07-21 18:48:08.065662" } STDOUT: success PLAY RECAP ********************************************************************* sut : ok=84 changed=51 unreachable=0 failed=0 skipped=6 rescued=0 ignored=0 Thursday 21 July 2022 18:48:08 +0000 (0:00:01.086) 0:00:59.752 ********* =============================================================================== linux-system-roles.firewall : Install firewalld ------------------------- 1.92s linux-system-roles.firewall : Install python3-firewall ------------------ 1.75s linux-system-roles.firewall : Enable and start firewalld service -------- 1.75s Remove custom zone ------------------------------------------------------ 1.18s Ensure target ACCEPT in permanent internal zone ------------------------- 1.15s add custom service without details -------------------------------------- 1.09s Reload firewalld -------------------------------------------------------- 1.09s Reload firewalld -------------------------------------------------------- 1.08s add custom service with all the elements at once ------------------------ 1.08s add valid protocol to custom service ------------------------------------ 1.08s add short description to custom service --------------------------------- 1.08s delete custom service --------------------------------------------------- 1.07s remove valid protocol from customservice -------------------------------- 1.07s remove ports from custom service without deleting service --------------- 1.06s add source_ports to custom service -------------------------------------- 1.06s add destination addresses ----------------------------------------------- 1.06s add description to custom service --------------------------------------- 1.05s Ensure default target in permanent internal zone ------------------------ 1.04s Reset default zone to defaults ------------------------------------------ 1.04s Firewalld custom zone --------------------------------------------------- 1.01s ---^---^---^---^---^--- # STDERR: ---v---v---v---v---v--- /opt/ansible-2.9/lib/python3.6/site-packages/ansible/parsing/vault/__init__.py:44: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography and will be removed in a future release. from cryptography.exceptions import InvalidSignature ---^---^---^---^---^---