ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmpfg344xeo executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: rhel-7_setup.yml ***************************************************** 1 plays in /cache/rhel-7_setup.yml PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /cache/rhel-7_setup.yml:5 Wednesday 15 June 2022 18:32:40 +0000 (0:00:00.019) 0:00:00.019 ******** ok: [/cache/rhel-7.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-7.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-7.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-7.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-7.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-7.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 15 June 2022 18:32:42 +0000 (0:00:01.400) 0:00:01.419 ******** =============================================================================== set up internal repositories -------------------------------------------- 1.40s /cache/rhel-7_setup.yml:5 ----------------------------------------------------- PLAYBOOK: tests_zone.yml ******************************************************* 1 plays in /tmp/tmpee_oh5lr/tests/tests_zone.yml PLAY [Test firewalld zones] **************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpee_oh5lr/tests/tests_zone.yml:1 Wednesday 15 June 2022 18:32:42 +0000 (0:00:00.016) 0:00:01.435 ******** ok: [/cache/rhel-7.qcow2] META: ran handlers TASK [Verify used firewalld zones] ********************************************* task path: /tmp/tmpee_oh5lr/tests/tests_zone.yml:10 Wednesday 15 June 2022 18:32:42 +0000 (0:00:00.937) 0:00:02.373 ******** TASK [linux-system-roles.firewall : include_tasks] ***************************** task path: /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/main.yml:1 Wednesday 15 June 2022 18:32:43 +0000 (0:00:00.054) 0:00:02.427 ******** included: /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml for /cache/rhel-7.qcow2 TASK [linux-system-roles.firewall : Ensure ansible_facts used by role] ********* task path: /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Wednesday 15 June 2022 18:32:43 +0000 (0:00:00.046) 0:00:02.474 ******** ok: [/cache/rhel-7.qcow2] TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 Wednesday 15 June 2022 18:32:43 +0000 (0:00:00.412) 0:00:02.886 ******** ok: [/cache/rhel-7.qcow2] => { "changed": false, "rc": 0, "results": [ "firewalld-0.6.3-13.el7_9.noarch providing firewalld is already installed" ] } TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Wednesday 15 June 2022 18:32:44 +0000 (0:00:00.663) 0:00:03.550 ******** ok: [/cache/rhel-7.qcow2] => { "changed": false, "rc": 0, "results": [ "python-firewall-0.6.3-13.el7_9.noarch providing python-firewall is already installed" ] } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Wednesday 15 June 2022 18:32:44 +0000 (0:00:00.513) 0:00:04.063 ******** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Wednesday 15 June 2022 18:32:44 +0000 (0:00:00.039) 0:00:04.102 ******** ok: [/cache/rhel-7.qcow2] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-06-15 14:32:39 EDT", "ActiveEnterTimestampMonotonic": "147089976", "ActiveExitTimestamp": "Wed 2022-06-15 14:32:38 EDT", "ActiveExitTimestampMonotonic": "146074061", "ActiveState": "active", "After": "basic.target system.slice dbus.service polkit.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-06-15 14:32:39 EDT", "AssertTimestampMonotonic": "146891532", "Before": "shutdown.target multi-user.target network-pre.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2022-06-15 14:32:39 EDT", "ConditionTimestampMonotonic": "146891532", "Conflicts": "ipset.service ip6tables.service shutdown.target iptables.service ebtables.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "EnvironmentFile": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "21533", "ExecMainStartTimestamp": "Wed 2022-06-15 14:32:39 EDT", "ExecMainStartTimestampMonotonic": "146892835", "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=[Wed 2022-06-15 14:32:39 EDT] ; stop_time=[n/a] ; pid=21533 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Wed 2022-06-15 14:32:39 EDT", "InactiveEnterTimestampMonotonic": "146889346", "InactiveExitTimestamp": "Wed 2022-06-15 14:32:39 EDT", "InactiveExitTimestampMonotonic": "146892885", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "7155", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "7155", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "21533", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "basic.target system.slice", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogTimestamp": "Wed 2022-06-15 14:32:39 EDT", "WatchdogTimestampMonotonic": "147089896", "WatchdogUSec": "0" } } TASK [linux-system-roles.firewall : Check if previous replaced is defined] ***** task path: /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/main.yml:9 Wednesday 15 June 2022 18:32:45 +0000 (0:00:00.673) 0:00:04.775 ******** ok: [/cache/rhel-7.qcow2] => { "ansible_facts": { "__firewall_previous_replaced": false, "__firewall_python_cmd": "/usr/bin/python" }, "changed": false } TASK [linux-system-roles.firewall : Get config files, checksums before and remove] *** task path: /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/main.yml:18 Wednesday 15 June 2022 18:32:45 +0000 (0:00:00.049) 0:00:04.825 ******** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/main.yml:40 Wednesday 15 June 2022 18:32:45 +0000 (0:00:00.034) 0:00:04.860 ******** ok: [/cache/rhel-7.qcow2] => (item={'zone': 'internal', 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "internal" } } ok: [/cache/rhel-7.qcow2] => (item={'zone': 'external', 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "external" } } ok: [/cache/rhel-7.qcow2] => (item={'zone': 'trusted', 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "trusted" } } TASK [linux-system-roles.firewall : gather firewalld configuration] ************ task path: /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/main.yml:69 Wednesday 15 June 2022 18:32:47 +0000 (0:00:01.638) 0:00:06.499 ******** ok: [/cache/rhel-7.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.firewall : update firewalld_config fact] ************** task path: /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/main.yml:75 Wednesday 15 June 2022 18:32:47 +0000 (0:00:00.441) 0:00:06.940 ******** ok: [/cache/rhel-7.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.firewall : Get config files, checksums after] ********* task path: /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/main.yml:84 Wednesday 15 June 2022 18:32:47 +0000 (0:00:00.073) 0:00:07.014 ******** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Calculate what has changed] **************** task path: /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/main.yml:92 Wednesday 15 June 2022 18:32:47 +0000 (0:00:00.039) 0:00:07.054 ******** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Show diffs] ******************************** task path: /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/main.yml:101 Wednesday 15 June 2022 18:32:47 +0000 (0:00:00.039) 0:00:07.094 ******** skipping: [/cache/rhel-7.qcow2] => {} META: role_complete for /cache/rhel-7.qcow2 TASK [Fail on missing zones] *************************************************** task path: /tmp/tmpee_oh5lr/tests/tests_zone.yml:22 Wednesday 15 June 2022 18:32:47 +0000 (0:00:00.041) 0:00:07.135 ******** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Setup firewalld] ********************************************************* task path: /tmp/tmpee_oh5lr/tests/tests_zone.yml:28 Wednesday 15 June 2022 18:32:47 +0000 (0:00:00.032) 0:00:07.167 ******** TASK [linux-system-roles.firewall : include_tasks] ***************************** task path: /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/main.yml:1 Wednesday 15 June 2022 18:32:47 +0000 (0:00:00.054) 0:00:07.222 ******** included: /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml for /cache/rhel-7.qcow2 TASK [linux-system-roles.firewall : Ensure ansible_facts used by role] ********* task path: /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Wednesday 15 June 2022 18:32:47 +0000 (0:00:00.043) 0:00:07.265 ******** ok: [/cache/rhel-7.qcow2] TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 Wednesday 15 June 2022 18:32:48 +0000 (0:00:00.439) 0:00:07.705 ******** ok: [/cache/rhel-7.qcow2] => { "changed": false, "rc": 0, "results": [ "firewalld-0.6.3-13.el7_9.noarch providing firewalld is already installed" ] } TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Wednesday 15 June 2022 18:32:48 +0000 (0:00:00.564) 0:00:08.269 ******** ok: [/cache/rhel-7.qcow2] => { "changed": false, "rc": 0, "results": [ "python-firewall-0.6.3-13.el7_9.noarch providing python-firewall is already installed" ] } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Wednesday 15 June 2022 18:32:49 +0000 (0:00:00.500) 0:00:08.770 ******** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Wednesday 15 June 2022 18:32:49 +0000 (0:00:00.038) 0:00:08.809 ******** ok: [/cache/rhel-7.qcow2] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-06-15 14:32:39 EDT", "ActiveEnterTimestampMonotonic": "147089976", "ActiveExitTimestamp": "Wed 2022-06-15 14:32:38 EDT", "ActiveExitTimestampMonotonic": "146074061", "ActiveState": "active", "After": "basic.target system.slice dbus.service polkit.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-06-15 14:32:39 EDT", "AssertTimestampMonotonic": "146891532", "Before": "shutdown.target multi-user.target network-pre.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2022-06-15 14:32:39 EDT", "ConditionTimestampMonotonic": "146891532", "Conflicts": "ipset.service ip6tables.service shutdown.target iptables.service ebtables.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "EnvironmentFile": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "21533", "ExecMainStartTimestamp": "Wed 2022-06-15 14:32:39 EDT", "ExecMainStartTimestampMonotonic": "146892835", "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=[Wed 2022-06-15 14:32:39 EDT] ; stop_time=[n/a] ; pid=21533 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Wed 2022-06-15 14:32:39 EDT", "InactiveEnterTimestampMonotonic": "146889346", "InactiveExitTimestamp": "Wed 2022-06-15 14:32:39 EDT", "InactiveExitTimestampMonotonic": "146892885", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "7155", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "7155", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "21533", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "basic.target system.slice", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogTimestamp": "Wed 2022-06-15 14:32:39 EDT", "WatchdogTimestampMonotonic": "147089896", "WatchdogUSec": "0" } } TASK [linux-system-roles.firewall : Check if previous replaced is defined] ***** task path: /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/main.yml:9 Wednesday 15 June 2022 18:32:49 +0000 (0:00:00.411) 0:00:09.220 ******** ok: [/cache/rhel-7.qcow2] => { "ansible_facts": { "__firewall_previous_replaced": true, "__firewall_python_cmd": "/usr/bin/python" }, "changed": false } TASK [linux-system-roles.firewall : Get config files, checksums before and remove] *** task path: /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/main.yml:18 Wednesday 15 June 2022 18:32:49 +0000 (0:00:00.048) 0:00:09.269 ******** ok: [/cache/rhel-7.qcow2] => { "changed": false, "rc": 0 } STDOUT: /etc/profile.d/lang.sh: line 19: warning: setlocale: LC_CTYPE: cannot change locale (C.UTF-8) STDERR: Shared connection to 127.0.0.3 closed. TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/main.yml:40 Wednesday 15 June 2022 18:32:50 +0000 (0:00:00.227) 0:00:09.496 ******** ok: [/cache/rhel-7.qcow2] => (item={'zone': 'internal', 'service': ['tftp', 'ftp'], 'port': ['443/tcp', '443/udp'], 'forward_port': ['447/tcp;;1.2.3.4', '448/tcp;;1.2.3.5'], 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "forward_port": [ "447/tcp;;1.2.3.4", "448/tcp;;1.2.3.5" ], "port": [ "443/tcp", "443/udp" ], "service": [ "tftp", "ftp" ], "state": "enabled", "zone": "internal" } } ok: [/cache/rhel-7.qcow2] => (item={'zone': 'internal', 'service': ['tftp', 'ftp'], 'port': ['443/tcp', '443/udp'], 'forward_port': ['447/tcp;;1.2.3.4', '448/tcp;;1.2.3.5'], 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "forward_port": [ "447/tcp;;1.2.3.4", "448/tcp;;1.2.3.5" ], "port": [ "443/tcp", "443/udp" ], "service": [ "tftp", "ftp" ], "state": "enabled", "zone": "internal" } } ok: [/cache/rhel-7.qcow2] => (item={'zone': 'customzone', 'permanent': True, 'state': 'present'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "permanent": true, "state": "present", "zone": "customzone" } } ok: [/cache/rhel-7.qcow2] => (item={'zone': 'customzone', 'permanent': True, 'masquerade': True, 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "masquerade": true, "permanent": true, "state": "enabled", "zone": "customzone" } } ok: [/cache/rhel-7.qcow2] => (item={'set_default_zone': 'dmz', 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "set_default_zone": "dmz", "state": "enabled" } } ok: [/cache/rhel-7.qcow2] => (item={'service': 'http', 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "service": "http", "state": "enabled" } } TASK [linux-system-roles.firewall : gather firewalld configuration] ************ task path: /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/main.yml:69 Wednesday 15 June 2022 18:32:53 +0000 (0:00:03.332) 0:00:12.829 ******** skipping: [/cache/rhel-7.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.firewall : update firewalld_config fact] ************** task path: /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/main.yml:75 Wednesday 15 June 2022 18:32:53 +0000 (0:00:00.039) 0:00:12.868 ******** skipping: [/cache/rhel-7.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.firewall : Get config files, checksums after] ********* task path: /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/main.yml:84 Wednesday 15 June 2022 18:32:53 +0000 (0:00:00.034) 0:00:12.903 ******** ok: [/cache/rhel-7.qcow2] => { "changed": false, "rc": 0 } STDOUT: /etc/profile.d/lang.sh: line 19: warning: setlocale: LC_CTYPE: cannot change locale (C.UTF-8) e2b071ca9b919b8fd60a4fe1e00e4f792ec2245359e8c48027020970791176d1 /etc/firewalld/zones/internal.xml 610e6e9bafe289c126adb751e772cd0224012f12738a8b8011454b1da8865c18 /etc/firewalld/zones/customzone.xml 1fbd6fcd1ca29e4438f7c982e2b9d595a93b93c1f9bdfbbf18745493df02e13e /etc/firewalld/zones/public.xml df2e066f9b8c0677c4887aa9a7032c4f94480408ff740036d98e648d11dd84c5 /etc/firewalld/zones/dmz.xml 958dce439fe299ce0b0fdb10c4c18412269fbab3f09660e4b210962728554953 /etc/firewalld/firewalld.conf STDERR: Shared connection to 127.0.0.3 closed. TASK [linux-system-roles.firewall : Calculate what has changed] **************** task path: /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/main.yml:92 Wednesday 15 June 2022 18:32:53 +0000 (0:00:00.276) 0:00:13.179 ******** changed: [/cache/rhel-7.qcow2] => { "ansible_facts": { "firewall_lib_result": { "changed": true } }, "changed": true } TASK [linux-system-roles.firewall : Show diffs] ******************************** task path: /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/main.yml:101 Wednesday 15 June 2022 18:32:53 +0000 (0:00:00.047) 0:00:13.227 ******** skipping: [/cache/rhel-7.qcow2] => {} META: role_complete for /cache/rhel-7.qcow2 TASK [Fail if no changes are done] ********************************************* task path: /tmp/tmpee_oh5lr/tests/tests_zone.yml:58 Wednesday 15 June 2022 18:32:53 +0000 (0:00:00.042) 0:00:13.270 ******** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Setup firewalld again] *************************************************** task path: /tmp/tmpee_oh5lr/tests/tests_zone.yml:64 Wednesday 15 June 2022 18:32:53 +0000 (0:00:00.032) 0:00:13.302 ******** TASK [linux-system-roles.firewall : include_tasks] ***************************** task path: /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/main.yml:1 Wednesday 15 June 2022 18:32:53 +0000 (0:00:00.057) 0:00:13.360 ******** included: /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml for /cache/rhel-7.qcow2 TASK [linux-system-roles.firewall : Ensure ansible_facts used by role] ********* task path: /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Wednesday 15 June 2022 18:32:54 +0000 (0:00:00.043) 0:00:13.403 ******** ok: [/cache/rhel-7.qcow2] TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 Wednesday 15 June 2022 18:32:54 +0000 (0:00:00.409) 0:00:13.812 ******** ok: [/cache/rhel-7.qcow2] => { "changed": false, "rc": 0, "results": [ "firewalld-0.6.3-13.el7_9.noarch providing firewalld is already installed" ] } TASK [linux-system-roles.firewall : Install python-firewall] ******************* task path: /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Wednesday 15 June 2022 18:32:54 +0000 (0:00:00.520) 0:00:14.333 ******** ok: [/cache/rhel-7.qcow2] => { "changed": false, "rc": 0, "results": [ "python-firewall-0.6.3-13.el7_9.noarch providing python-firewall is already installed" ] } TASK [linux-system-roles.firewall : Install python3-firewall] ****************** task path: /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Wednesday 15 June 2022 18:32:55 +0000 (0:00:00.550) 0:00:14.883 ******** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Enable and start firewalld service] ******** task path: /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Wednesday 15 June 2022 18:32:55 +0000 (0:00:00.039) 0:00:14.923 ******** ok: [/cache/rhel-7.qcow2] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-06-15 14:32:39 EDT", "ActiveEnterTimestampMonotonic": "147089976", "ActiveExitTimestamp": "Wed 2022-06-15 14:32:38 EDT", "ActiveExitTimestampMonotonic": "146074061", "ActiveState": "active", "After": "basic.target system.slice dbus.service polkit.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-06-15 14:32:39 EDT", "AssertTimestampMonotonic": "146891532", "Before": "shutdown.target multi-user.target network-pre.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2022-06-15 14:32:39 EDT", "ConditionTimestampMonotonic": "146891532", "Conflicts": "ipset.service ip6tables.service shutdown.target iptables.service ebtables.service", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "EnvironmentFile": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "21533", "ExecMainStartTimestamp": "Wed 2022-06-15 14:32:39 EDT", "ExecMainStartTimestampMonotonic": "146892835", "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=[Wed 2022-06-15 14:32:39 EDT] ; stop_time=[n/a] ; pid=21533 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Wed 2022-06-15 14:32:39 EDT", "InactiveEnterTimestampMonotonic": "146889346", "InactiveExitTimestamp": "Wed 2022-06-15 14:32:39 EDT", "InactiveExitTimestampMonotonic": "146892885", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "7155", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "7155", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "21533", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "basic.target system.slice", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogTimestamp": "Wed 2022-06-15 14:32:39 EDT", "WatchdogTimestampMonotonic": "147089896", "WatchdogUSec": "0" } } TASK [linux-system-roles.firewall : Check if previous replaced is defined] ***** task path: /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/main.yml:9 Wednesday 15 June 2022 18:32:55 +0000 (0:00:00.398) 0:00:15.322 ******** ok: [/cache/rhel-7.qcow2] => { "ansible_facts": { "__firewall_previous_replaced": true, "__firewall_python_cmd": "/usr/bin/python" }, "changed": false } TASK [linux-system-roles.firewall : Get config files, checksums before and remove] *** task path: /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/main.yml:18 Wednesday 15 June 2022 18:32:55 +0000 (0:00:00.052) 0:00:15.374 ******** ok: [/cache/rhel-7.qcow2] => { "changed": false, "rc": 0 } STDOUT: /etc/profile.d/lang.sh: line 19: warning: setlocale: LC_CTYPE: cannot change locale (C.UTF-8) e2b071ca9b919b8fd60a4fe1e00e4f792ec2245359e8c48027020970791176d1 /etc/firewalld/zones/internal.xml 610e6e9bafe289c126adb751e772cd0224012f12738a8b8011454b1da8865c18 /etc/firewalld/zones/customzone.xml 1fbd6fcd1ca29e4438f7c982e2b9d595a93b93c1f9bdfbbf18745493df02e13e /etc/firewalld/zones/public.xml df2e066f9b8c0677c4887aa9a7032c4f94480408ff740036d98e648d11dd84c5 /etc/firewalld/zones/dmz.xml 958dce439fe299ce0b0fdb10c4c18412269fbab3f09660e4b210962728554953 /etc/firewalld/firewalld.conf STDERR: Shared connection to 127.0.0.3 closed. TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/main.yml:40 Wednesday 15 June 2022 18:32:57 +0000 (0:00:01.281) 0:00:16.655 ******** ok: [/cache/rhel-7.qcow2] => (item={'zone': 'internal', 'service': ['tftp', 'ftp'], 'port': ['443/tcp', '443/udp'], 'forward_port': ['447/tcp;;1.2.3.4', '448/tcp;;1.2.3.5'], 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "forward_port": [ "447/tcp;;1.2.3.4", "448/tcp;;1.2.3.5" ], "port": [ "443/tcp", "443/udp" ], "service": [ "tftp", "ftp" ], "state": "enabled", "zone": "internal" } } ok: [/cache/rhel-7.qcow2] => (item={'zone': 'internal', 'service': ['tftp', 'ftp'], 'port': ['443/tcp', '443/udp'], 'forward_port': ['447/tcp;;1.2.3.4', '448/tcp;;1.2.3.5'], 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "forward_port": [ "447/tcp;;1.2.3.4", "448/tcp;;1.2.3.5" ], "port": [ "443/tcp", "443/udp" ], "service": [ "tftp", "ftp" ], "state": "enabled", "zone": "internal" } } ok: [/cache/rhel-7.qcow2] => (item={'zone': 'customzone', 'permanent': True, 'state': 'present'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "permanent": true, "state": "present", "zone": "customzone" } } ok: [/cache/rhel-7.qcow2] => (item={'zone': 'customzone', 'permanent': True, 'masquerade': True, 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "masquerade": true, "permanent": true, "state": "enabled", "zone": "customzone" } } ok: [/cache/rhel-7.qcow2] => (item={'set_default_zone': 'dmz', 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "set_default_zone": "dmz", "state": "enabled" } } ok: [/cache/rhel-7.qcow2] => (item={'service': 'http', 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "service": "http", "state": "enabled" } } TASK [linux-system-roles.firewall : gather firewalld configuration] ************ task path: /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/main.yml:69 Wednesday 15 June 2022 18:33:00 +0000 (0:00:03.318) 0:00:19.974 ******** skipping: [/cache/rhel-7.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.firewall : update firewalld_config fact] ************** task path: /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/main.yml:75 Wednesday 15 June 2022 18:33:00 +0000 (0:00:00.034) 0:00:20.009 ******** skipping: [/cache/rhel-7.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [linux-system-roles.firewall : Get config files, checksums after] ********* task path: /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/main.yml:84 Wednesday 15 June 2022 18:33:00 +0000 (0:00:00.032) 0:00:20.041 ******** ok: [/cache/rhel-7.qcow2] => { "changed": false, "rc": 0 } STDOUT: /etc/profile.d/lang.sh: line 19: warning: setlocale: LC_CTYPE: cannot change locale (C.UTF-8) e2b071ca9b919b8fd60a4fe1e00e4f792ec2245359e8c48027020970791176d1 /etc/firewalld/zones/internal.xml 610e6e9bafe289c126adb751e772cd0224012f12738a8b8011454b1da8865c18 /etc/firewalld/zones/customzone.xml 1fbd6fcd1ca29e4438f7c982e2b9d595a93b93c1f9bdfbbf18745493df02e13e /etc/firewalld/zones/public.xml df2e066f9b8c0677c4887aa9a7032c4f94480408ff740036d98e648d11dd84c5 /etc/firewalld/zones/dmz.xml 958dce439fe299ce0b0fdb10c4c18412269fbab3f09660e4b210962728554953 /etc/firewalld/firewalld.conf STDERR: Shared connection to 127.0.0.3 closed. TASK [linux-system-roles.firewall : Calculate what has changed] **************** task path: /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/main.yml:92 Wednesday 15 June 2022 18:33:00 +0000 (0:00:00.276) 0:00:20.318 ******** ok: [/cache/rhel-7.qcow2] => { "ansible_facts": { "firewall_lib_result": { "changed": false } }, "changed": false } TASK [linux-system-roles.firewall : Show diffs] ******************************** task path: /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/main.yml:101 Wednesday 15 June 2022 18:33:00 +0000 (0:00:00.046) 0:00:20.365 ******** skipping: [/cache/rhel-7.qcow2] => {} META: role_complete for /cache/rhel-7.qcow2 TASK [Fail on newly changes] *************************************************** task path: /tmp/tmpee_oh5lr/tests/tests_zone.yml:94 Wednesday 15 June 2022 18:33:01 +0000 (0:00:00.040) 0:00:20.405 ******** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify firewalld zone internal services] ********************************* task path: /tmp/tmpee_oh5lr/tests/tests_zone.yml:100 Wednesday 15 June 2022 18:33:01 +0000 (0:00:00.034) 0:00:20.440 ******** changed: [/cache/rhel-7.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-services" ], "delta": "0:00:00.268998", "end": "2022-06-15 14:33:01.744961", "failed_when_result": false, "rc": 0, "start": "2022-06-15 14:33:01.475963" } STDOUT: dhcpv6-client ftp mdns samba-client ssh tftp TASK [Verify firewalld zone internal ports] ************************************ task path: /tmp/tmpee_oh5lr/tests/tests_zone.yml:107 Wednesday 15 June 2022 18:33:01 +0000 (0:00:00.718) 0:00:21.159 ******** changed: [/cache/rhel-7.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-ports" ], "delta": "0:00:00.271427", "end": "2022-06-15 14:33:02.342894", "failed_when_result": false, "rc": 0, "start": "2022-06-15 14:33:02.071467" } STDOUT: 443/tcp 443/udp TASK [Verify firewalld zone internal forward ports] **************************** task path: /tmp/tmpee_oh5lr/tests/tests_zone.yml:114 Wednesday 15 June 2022 18:33:02 +0000 (0:00:00.596) 0:00:21.756 ******** changed: [/cache/rhel-7.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-forward-ports" ], "delta": "0:00:00.278769", "end": "2022-06-15 14:33:02.948845", "failed_when_result": false, "rc": 0, "start": "2022-06-15 14:33:02.670076" } STDOUT: port=447:proto=tcp:toport=:toaddr=1.2.3.4 port=448:proto=tcp:toport=:toaddr=1.2.3.5 TASK [Verify custom zone has masquerade added to it] *************************** task path: /tmp/tmpee_oh5lr/tests/tests_zone.yml:123 Wednesday 15 June 2022 18:33:02 +0000 (0:00:00.607) 0:00:22.363 ******** changed: [/cache/rhel-7.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=customzone", "--query-masquerade" ], "delta": "0:00:00.292534", "end": "2022-06-15 14:33:03.599534", "failed_when_result": false, "rc": 0, "start": "2022-06-15 14:33:03.307000" } STDOUT: yes TASK [Verify custom zone has masquerade added to it] *************************** task path: /tmp/tmpee_oh5lr/tests/tests_zone.yml:129 Wednesday 15 June 2022 18:33:03 +0000 (0:00:00.654) 0:00:23.018 ******** changed: [/cache/rhel-7.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--get-default-zone" ], "delta": "0:00:00.255759", "end": "2022-06-15 14:33:04.194795", "failed_when_result": false, "rc": 0, "start": "2022-06-15 14:33:03.939036" } STDOUT: dmz TASK [Verify that service http has been added to the default zone dmz] ********* task path: /tmp/tmpee_oh5lr/tests/tests_zone.yml:135 Wednesday 15 June 2022 18:33:04 +0000 (0:00:00.595) 0:00:23.613 ******** changed: [/cache/rhel-7.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--zone=dmz", "--query-service=http" ], "delta": "0:00:00.248699", "end": "2022-06-15 14:33:04.797098", "failed_when_result": false, "rc": 0, "start": "2022-06-15 14:33:04.548399" } STDOUT: yes TASK [Remove customzone zone] ************************************************** task path: /tmp/tmpee_oh5lr/tests/tests_zone.yml:147 Wednesday 15 June 2022 18:33:04 +0000 (0:00:00.601) 0:00:24.214 ******** changed: [/cache/rhel-7.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--delete-zone=customzone" ], "delta": "0:00:00.263321", "end": "2022-06-15 14:33:05.420947", "failed_when_result": false, "rc": 0, "start": "2022-06-15 14:33:05.157626" } STDOUT: success TASK [Reset to zone defaults] ************************************************** task path: /tmp/tmpee_oh5lr/tests/tests_zone.yml:152 Wednesday 15 June 2022 18:33:05 +0000 (0:00:00.620) 0:00:24.835 ******** changed: [/cache/rhel-7.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.266692", "end": "2022-06-15 14:33:07.006971", "rc": 0, "start": "2022-06-15 14:33:05.740279" } STDOUT: success success STDERR: Error: NO_DEFAULTS: external Error: NO_DEFAULTS: trusted META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-7.qcow2 : ok=39 changed=9 unreachable=0 failed=0 skipped=16 rescued=0 ignored=0 Wednesday 15 June 2022 18:33:07 +0000 (0:00:01.593) 0:00:26.429 ******** =============================================================================== linux-system-roles.firewall : Configure firewall ------------------------ 6.65s /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/main.yml:40 ---- linux-system-roles.firewall : Configure firewall ------------------------ 1.64s /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/main.yml:40 ---- Reset to zone defaults -------------------------------------------------- 1.59s /tmp/tmpee_oh5lr/tests/tests_zone.yml:152 ------------------------------------- linux-system-roles.firewall : Get config files, checksums before and remove --- 1.51s /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/main.yml:18 ---- set up internal repositories -------------------------------------------- 1.40s /cache/rhel-7_setup.yml:5 ----------------------------------------------------- Gathering Facts --------------------------------------------------------- 0.94s /tmp/tmpee_oh5lr/tests/tests_zone.yml:1 --------------------------------------- linux-system-roles.firewall : Enable and start firewalld service -------- 0.81s /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 ----- Verify firewalld zone internal services --------------------------------- 0.72s /tmp/tmpee_oh5lr/tests/tests_zone.yml:100 ------------------------------------- linux-system-roles.firewall : Enable and start firewalld service -------- 0.67s /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 ----- linux-system-roles.firewall : Install firewalld ------------------------- 0.66s /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 Verify custom zone has masquerade added to it --------------------------- 0.65s /tmp/tmpee_oh5lr/tests/tests_zone.yml:123 ------------------------------------- Remove customzone zone -------------------------------------------------- 0.62s /tmp/tmpee_oh5lr/tests/tests_zone.yml:147 ------------------------------------- Verify firewalld zone internal forward ports ---------------------------- 0.61s /tmp/tmpee_oh5lr/tests/tests_zone.yml:114 ------------------------------------- Verify that service http has been added to the default zone dmz --------- 0.60s /tmp/tmpee_oh5lr/tests/tests_zone.yml:135 ------------------------------------- Verify firewalld zone internal ports ------------------------------------ 0.60s /tmp/tmpee_oh5lr/tests/tests_zone.yml:107 ------------------------------------- Verify custom zone has masquerade added to it --------------------------- 0.60s /tmp/tmpee_oh5lr/tests/tests_zone.yml:129 ------------------------------------- linux-system-roles.firewall : Install firewalld ------------------------- 0.56s /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 linux-system-roles.firewall : Get config files, checksums after --------- 0.55s /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/main.yml:84 ---- linux-system-roles.firewall : Install python-firewall ------------------- 0.55s /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 linux-system-roles.firewall : Install firewalld ------------------------- 0.52s /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 ansible-playbook [core 2.12.6] config file = /etc/ansible/ansible.cfg configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python3.9/site-packages/ansible ansible collection location = /tmp/tmpfg344xeo executable location = /usr/bin/ansible-playbook python version = 3.9.13 (main, May 18 2022, 00:00:00) [GCC 11.3.1 20220421 (Red Hat 11.3.1-2)] jinja version = 2.11.3 libyaml = True Using /etc/ansible/ansible.cfg as config file Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'default', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. PLAYBOOK: rhel-7_setup.yml ***************************************************** 1 plays in /cache/rhel-7_setup.yml PLAY [Setup repos] ************************************************************* META: ran handlers TASK [set up internal repositories] ******************************************** task path: /cache/rhel-7_setup.yml:5 Wednesday 15 June 2022 18:35:40 +0000 (0:00:00.018) 0:00:00.018 ******** ok: [/cache/rhel-7.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-7.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-7.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-7.qcow2] => (item=None) => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } ok: [/cache/rhel-7.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-7.qcow2 : ok=1 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Wednesday 15 June 2022 18:35:42 +0000 (0:00:01.438) 0:00:01.456 ******** =============================================================================== set up internal repositories -------------------------------------------- 1.44s /cache/rhel-7_setup.yml:5 ----------------------------------------------------- PLAYBOOK: tests_zone.yml ******************************************************* 1 plays in /tmp/tmp8jexk4vc/tests/firewall/tests_zone.yml PLAY [Test firewalld zones] **************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp8jexk4vc/tests/firewall/tests_zone.yml:1 Wednesday 15 June 2022 18:35:42 +0000 (0:00:00.016) 0:00:01.472 ******** ok: [/cache/rhel-7.qcow2] META: ran handlers TASK [Verify used firewalld zones] ********************************************* task path: /tmp/tmp8jexk4vc/tests/firewall/tests_zone.yml:10 Wednesday 15 June 2022 18:35:43 +0000 (0:00:00.933) 0:00:02.406 ******** TASK [fedora.linux_system_roles.firewall : include_tasks] ********************** task path: /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:1 Wednesday 15 June 2022 18:35:43 +0000 (0:00:00.059) 0:00:02.465 ******** included: /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml for /cache/rhel-7.qcow2 TASK [fedora.linux_system_roles.firewall : Ensure ansible_facts used by role] *** task path: /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Wednesday 15 June 2022 18:35:43 +0000 (0:00:00.049) 0:00:02.515 ******** ok: [/cache/rhel-7.qcow2] TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 Wednesday 15 June 2022 18:35:43 +0000 (0:00:00.410) 0:00:02.926 ******** ok: [/cache/rhel-7.qcow2] => { "changed": false, "rc": 0, "results": [ "firewalld-0.6.3-13.el7_9.noarch providing firewalld is already installed" ] } TASK [fedora.linux_system_roles.firewall : Install python-firewall] ************ task path: /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:12 Wednesday 15 June 2022 18:35:44 +0000 (0:00:00.675) 0:00:03.601 ******** ok: [/cache/rhel-7.qcow2] => { "changed": false, "rc": 0, "results": [ "python-firewall-0.6.3-13.el7_9.noarch providing python-firewall is already installed" ] } TASK [fedora.linux_system_roles.firewall : Install python3-firewall] *********** task path: /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:18 Wednesday 15 June 2022 18:35:44 +0000 (0:00:00.507) 0:00:04.109 ******** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Enable and start firewalld service] *** task path: /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Wednesday 15 June 2022 18:35:45 +0000 (0:00:00.038) 0:00:04.147 ******** ok: [/cache/rhel-7.qcow2] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-06-15 14:35:39 EDT", "ActiveEnterTimestampMonotonic": "148046835", "ActiveExitTimestamp": "Wed 2022-06-15 14:35:38 EDT", "ActiveExitTimestampMonotonic": "147043938", "ActiveState": "active", "After": "polkit.service system.slice basic.target dbus.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-06-15 14:35:39 EDT", "AssertTimestampMonotonic": "147850268", "Before": "network-pre.target multi-user.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2022-06-15 14:35:39 EDT", "ConditionTimestampMonotonic": "147850268", "Conflicts": "ebtables.service ip6tables.service iptables.service ipset.service shutdown.target", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "EnvironmentFile": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "21527", "ExecMainStartTimestamp": "Wed 2022-06-15 14:35:39 EDT", "ExecMainStartTimestampMonotonic": "147851503", "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=[Wed 2022-06-15 14:35:39 EDT] ; stop_time=[n/a] ; pid=21527 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Wed 2022-06-15 14:35:39 EDT", "InactiveEnterTimestampMonotonic": "147848237", "InactiveExitTimestamp": "Wed 2022-06-15 14:35:39 EDT", "InactiveExitTimestampMonotonic": "147851538", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "7155", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "7155", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "21527", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "system.slice basic.target", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogTimestamp": "Wed 2022-06-15 14:35:39 EDT", "WatchdogTimestampMonotonic": "148046763", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.firewall : Check if previous replaced is defined] *** task path: /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:9 Wednesday 15 June 2022 18:35:45 +0000 (0:00:00.693) 0:00:04.840 ******** ok: [/cache/rhel-7.qcow2] => { "ansible_facts": { "__firewall_previous_replaced": false, "__firewall_python_cmd": "/usr/bin/python" }, "changed": false } TASK [fedora.linux_system_roles.firewall : Get config files, checksums before and remove] *** task path: /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:14 Wednesday 15 June 2022 18:35:45 +0000 (0:00:00.052) 0:00:04.893 ******** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Configure firewall] ***************** task path: /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:36 Wednesday 15 June 2022 18:35:45 +0000 (0:00:00.034) 0:00:04.927 ******** ok: [/cache/rhel-7.qcow2] => (item={'zone': 'internal', 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "internal" } } ok: [/cache/rhel-7.qcow2] => (item={'zone': 'external', 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "external" } } ok: [/cache/rhel-7.qcow2] => (item={'zone': 'trusted', 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "state": "enabled", "zone": "trusted" } } TASK [fedora.linux_system_roles.firewall : gather firewalld configuration] ***** task path: /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:63 Wednesday 15 June 2022 18:35:47 +0000 (0:00:01.684) 0:00:06.612 ******** ok: [/cache/rhel-7.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.firewall : update firewalld_config fact] ******* task path: /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:69 Wednesday 15 June 2022 18:35:47 +0000 (0:00:00.439) 0:00:07.051 ******** ok: [/cache/rhel-7.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.firewall : Get config files, checksums after] *** task path: /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:78 Wednesday 15 June 2022 18:35:47 +0000 (0:00:00.051) 0:00:07.102 ******** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Calculate what has changed] ********* task path: /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:86 Wednesday 15 June 2022 18:35:48 +0000 (0:00:00.035) 0:00:07.138 ******** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Show diffs] ************************* task path: /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:92 Wednesday 15 June 2022 18:35:48 +0000 (0:00:00.036) 0:00:07.174 ******** skipping: [/cache/rhel-7.qcow2] => {} META: role_complete for /cache/rhel-7.qcow2 TASK [Fail on missing zones] *************************************************** task path: /tmp/tmp8jexk4vc/tests/firewall/tests_zone.yml:22 Wednesday 15 June 2022 18:35:48 +0000 (0:00:00.046) 0:00:07.221 ******** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Setup firewalld] ********************************************************* task path: /tmp/tmp8jexk4vc/tests/firewall/tests_zone.yml:28 Wednesday 15 June 2022 18:35:48 +0000 (0:00:00.042) 0:00:07.263 ******** TASK [fedora.linux_system_roles.firewall : include_tasks] ********************** task path: /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:1 Wednesday 15 June 2022 18:35:48 +0000 (0:00:00.060) 0:00:07.324 ******** included: /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml for /cache/rhel-7.qcow2 TASK [fedora.linux_system_roles.firewall : Ensure ansible_facts used by role] *** task path: /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Wednesday 15 June 2022 18:35:48 +0000 (0:00:00.045) 0:00:07.370 ******** ok: [/cache/rhel-7.qcow2] TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 Wednesday 15 June 2022 18:35:48 +0000 (0:00:00.444) 0:00:07.815 ******** ok: [/cache/rhel-7.qcow2] => { "changed": false, "rc": 0, "results": [ "firewalld-0.6.3-13.el7_9.noarch providing firewalld is already installed" ] } TASK [fedora.linux_system_roles.firewall : Install python-firewall] ************ task path: /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:12 Wednesday 15 June 2022 18:35:49 +0000 (0:00:00.556) 0:00:08.371 ******** ok: [/cache/rhel-7.qcow2] => { "changed": false, "rc": 0, "results": [ "python-firewall-0.6.3-13.el7_9.noarch providing python-firewall is already installed" ] } TASK [fedora.linux_system_roles.firewall : Install python3-firewall] *********** task path: /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:18 Wednesday 15 June 2022 18:35:49 +0000 (0:00:00.513) 0:00:08.885 ******** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Enable and start firewalld service] *** task path: /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Wednesday 15 June 2022 18:35:49 +0000 (0:00:00.037) 0:00:08.922 ******** ok: [/cache/rhel-7.qcow2] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-06-15 14:35:39 EDT", "ActiveEnterTimestampMonotonic": "148046835", "ActiveExitTimestamp": "Wed 2022-06-15 14:35:38 EDT", "ActiveExitTimestampMonotonic": "147043938", "ActiveState": "active", "After": "polkit.service system.slice basic.target dbus.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-06-15 14:35:39 EDT", "AssertTimestampMonotonic": "147850268", "Before": "network-pre.target multi-user.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2022-06-15 14:35:39 EDT", "ConditionTimestampMonotonic": "147850268", "Conflicts": "ebtables.service ip6tables.service iptables.service ipset.service shutdown.target", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "EnvironmentFile": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "21527", "ExecMainStartTimestamp": "Wed 2022-06-15 14:35:39 EDT", "ExecMainStartTimestampMonotonic": "147851503", "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=[Wed 2022-06-15 14:35:39 EDT] ; stop_time=[n/a] ; pid=21527 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Wed 2022-06-15 14:35:39 EDT", "InactiveEnterTimestampMonotonic": "147848237", "InactiveExitTimestamp": "Wed 2022-06-15 14:35:39 EDT", "InactiveExitTimestampMonotonic": "147851538", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "7155", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "7155", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "21527", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "system.slice basic.target", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogTimestamp": "Wed 2022-06-15 14:35:39 EDT", "WatchdogTimestampMonotonic": "148046763", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.firewall : Check if previous replaced is defined] *** task path: /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:9 Wednesday 15 June 2022 18:35:50 +0000 (0:00:00.396) 0:00:09.319 ******** ok: [/cache/rhel-7.qcow2] => { "ansible_facts": { "__firewall_previous_replaced": true, "__firewall_python_cmd": "/usr/bin/python" }, "changed": false } TASK [fedora.linux_system_roles.firewall : Get config files, checksums before and remove] *** task path: /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:14 Wednesday 15 June 2022 18:35:50 +0000 (0:00:00.051) 0:00:09.371 ******** ok: [/cache/rhel-7.qcow2] => { "changed": false, "rc": 0 } STDOUT: /etc/profile.d/lang.sh: line 19: warning: setlocale: LC_CTYPE: cannot change locale (C.UTF-8) STDERR: Shared connection to 127.0.0.3 closed. TASK [fedora.linux_system_roles.firewall : Configure firewall] ***************** task path: /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:36 Wednesday 15 June 2022 18:35:50 +0000 (0:00:00.228) 0:00:09.600 ******** ok: [/cache/rhel-7.qcow2] => (item={'zone': 'internal', 'service': ['tftp', 'ftp'], 'port': ['443/tcp', '443/udp'], 'forward_port': ['447/tcp;;1.2.3.4', '448/tcp;;1.2.3.5'], 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "forward_port": [ "447/tcp;;1.2.3.4", "448/tcp;;1.2.3.5" ], "port": [ "443/tcp", "443/udp" ], "service": [ "tftp", "ftp" ], "state": "enabled", "zone": "internal" } } ok: [/cache/rhel-7.qcow2] => (item={'zone': 'internal', 'service': ['tftp', 'ftp'], 'port': ['443/tcp', '443/udp'], 'forward_port': ['447/tcp;;1.2.3.4', '448/tcp;;1.2.3.5'], 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "forward_port": [ "447/tcp;;1.2.3.4", "448/tcp;;1.2.3.5" ], "port": [ "443/tcp", "443/udp" ], "service": [ "tftp", "ftp" ], "state": "enabled", "zone": "internal" } } ok: [/cache/rhel-7.qcow2] => (item={'zone': 'customzone', 'permanent': True, 'state': 'present'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "permanent": true, "state": "present", "zone": "customzone" } } ok: [/cache/rhel-7.qcow2] => (item={'zone': 'customzone', 'permanent': True, 'masquerade': True, 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "masquerade": true, "permanent": true, "state": "enabled", "zone": "customzone" } } ok: [/cache/rhel-7.qcow2] => (item={'set_default_zone': 'dmz', 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "set_default_zone": "dmz", "state": "enabled" } } ok: [/cache/rhel-7.qcow2] => (item={'service': 'http', 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "service": "http", "state": "enabled" } } TASK [fedora.linux_system_roles.firewall : gather firewalld configuration] ***** task path: /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:63 Wednesday 15 June 2022 18:35:53 +0000 (0:00:03.311) 0:00:12.911 ******** skipping: [/cache/rhel-7.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.firewall : update firewalld_config fact] ******* task path: /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:69 Wednesday 15 June 2022 18:35:53 +0000 (0:00:00.037) 0:00:12.949 ******** skipping: [/cache/rhel-7.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.firewall : Get config files, checksums after] *** task path: /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:78 Wednesday 15 June 2022 18:35:53 +0000 (0:00:00.035) 0:00:12.985 ******** ok: [/cache/rhel-7.qcow2] => { "changed": false, "rc": 0 } STDOUT: /etc/profile.d/lang.sh: line 19: warning: setlocale: LC_CTYPE: cannot change locale (C.UTF-8) e2b071ca9b919b8fd60a4fe1e00e4f792ec2245359e8c48027020970791176d1 /etc/firewalld/zones/internal.xml 610e6e9bafe289c126adb751e772cd0224012f12738a8b8011454b1da8865c18 /etc/firewalld/zones/customzone.xml 1fbd6fcd1ca29e4438f7c982e2b9d595a93b93c1f9bdfbbf18745493df02e13e /etc/firewalld/zones/public.xml df2e066f9b8c0677c4887aa9a7032c4f94480408ff740036d98e648d11dd84c5 /etc/firewalld/zones/dmz.xml 958dce439fe299ce0b0fdb10c4c18412269fbab3f09660e4b210962728554953 /etc/firewalld/firewalld.conf STDERR: Shared connection to 127.0.0.3 closed. TASK [fedora.linux_system_roles.firewall : Calculate what has changed] ********* task path: /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:86 Wednesday 15 June 2022 18:35:54 +0000 (0:00:00.273) 0:00:13.259 ******** changed: [/cache/rhel-7.qcow2] => { "ansible_facts": { "firewall_lib_result": { "changed": true } }, "changed": true } TASK [fedora.linux_system_roles.firewall : Show diffs] ************************* task path: /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:92 Wednesday 15 June 2022 18:35:54 +0000 (0:00:00.051) 0:00:13.310 ******** skipping: [/cache/rhel-7.qcow2] => {} META: role_complete for /cache/rhel-7.qcow2 TASK [Fail if no changes are done] ********************************************* task path: /tmp/tmp8jexk4vc/tests/firewall/tests_zone.yml:56 Wednesday 15 June 2022 18:35:54 +0000 (0:00:00.045) 0:00:13.356 ******** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Setup firewalld again] *************************************************** task path: /tmp/tmp8jexk4vc/tests/firewall/tests_zone.yml:62 Wednesday 15 June 2022 18:35:54 +0000 (0:00:00.033) 0:00:13.389 ******** TASK [fedora.linux_system_roles.firewall : include_tasks] ********************** task path: /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:1 Wednesday 15 June 2022 18:35:54 +0000 (0:00:00.058) 0:00:13.447 ******** included: /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml for /cache/rhel-7.qcow2 TASK [fedora.linux_system_roles.firewall : Ensure ansible_facts used by role] *** task path: /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Wednesday 15 June 2022 18:35:54 +0000 (0:00:00.047) 0:00:13.495 ******** ok: [/cache/rhel-7.qcow2] TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 Wednesday 15 June 2022 18:35:54 +0000 (0:00:00.399) 0:00:13.894 ******** ok: [/cache/rhel-7.qcow2] => { "changed": false, "rc": 0, "results": [ "firewalld-0.6.3-13.el7_9.noarch providing firewalld is already installed" ] } TASK [fedora.linux_system_roles.firewall : Install python-firewall] ************ task path: /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:12 Wednesday 15 June 2022 18:35:55 +0000 (0:00:00.515) 0:00:14.410 ******** ok: [/cache/rhel-7.qcow2] => { "changed": false, "rc": 0, "results": [ "python-firewall-0.6.3-13.el7_9.noarch providing python-firewall is already installed" ] } TASK [fedora.linux_system_roles.firewall : Install python3-firewall] *********** task path: /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:18 Wednesday 15 June 2022 18:35:55 +0000 (0:00:00.513) 0:00:14.924 ******** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Enable and start firewalld service] *** task path: /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Wednesday 15 June 2022 18:35:55 +0000 (0:00:00.037) 0:00:14.961 ******** ok: [/cache/rhel-7.qcow2] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-06-15 14:35:39 EDT", "ActiveEnterTimestampMonotonic": "148046835", "ActiveExitTimestamp": "Wed 2022-06-15 14:35:38 EDT", "ActiveExitTimestampMonotonic": "147043938", "ActiveState": "active", "After": "polkit.service system.slice basic.target dbus.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-06-15 14:35:39 EDT", "AssertTimestampMonotonic": "147850268", "Before": "network-pre.target multi-user.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "18446744073709551615", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "18446744073709551615", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2022-06-15 14:35:39 EDT", "ConditionTimestampMonotonic": "147850268", "Conflicts": "ebtables.service ip6tables.service iptables.service ipset.service shutdown.target", "ControlGroup": "/system.slice/firewalld.service", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "man:firewalld(1)", "EnvironmentFile": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "21527", "ExecMainStartTimestamp": "Wed 2022-06-15 14:35:39 EDT", "ExecMainStartTimestampMonotonic": "147851503", "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=[Wed 2022-06-15 14:35:39 EDT] ; stop_time=[n/a] ; pid=21527 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Wed 2022-06-15 14:35:39 EDT", "InactiveEnterTimestampMonotonic": "147848237", "InactiveExitTimestamp": "Wed 2022-06-15 14:35:39 EDT", "InactiveExitTimestampMonotonic": "147851538", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "7155", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "7155", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "21527", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PermissionsStartOnly": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "ProtectHome": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "Requires": "system.slice basic.target", "Restart": "no", "RestartUSec": "100ms", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitInterval": "10000000", "StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares": "18446744073709551615", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "no", "TasksCurrent": "18446744073709551615", "TasksMax": "18446744073709551615", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "Wants": "network-pre.target", "WatchdogTimestamp": "Wed 2022-06-15 14:35:39 EDT", "WatchdogTimestampMonotonic": "148046763", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.firewall : Check if previous replaced is defined] *** task path: /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:9 Wednesday 15 June 2022 18:35:56 +0000 (0:00:00.410) 0:00:15.372 ******** ok: [/cache/rhel-7.qcow2] => { "ansible_facts": { "__firewall_previous_replaced": true, "__firewall_python_cmd": "/usr/bin/python" }, "changed": false } TASK [fedora.linux_system_roles.firewall : Get config files, checksums before and remove] *** task path: /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:14 Wednesday 15 June 2022 18:35:56 +0000 (0:00:00.050) 0:00:15.422 ******** ok: [/cache/rhel-7.qcow2] => { "changed": false, "rc": 0 } STDOUT: /etc/profile.d/lang.sh: line 19: warning: setlocale: LC_CTYPE: cannot change locale (C.UTF-8) e2b071ca9b919b8fd60a4fe1e00e4f792ec2245359e8c48027020970791176d1 /etc/firewalld/zones/internal.xml 610e6e9bafe289c126adb751e772cd0224012f12738a8b8011454b1da8865c18 /etc/firewalld/zones/customzone.xml 1fbd6fcd1ca29e4438f7c982e2b9d595a93b93c1f9bdfbbf18745493df02e13e /etc/firewalld/zones/public.xml df2e066f9b8c0677c4887aa9a7032c4f94480408ff740036d98e648d11dd84c5 /etc/firewalld/zones/dmz.xml 958dce439fe299ce0b0fdb10c4c18412269fbab3f09660e4b210962728554953 /etc/firewalld/firewalld.conf STDERR: Shared connection to 127.0.0.3 closed. TASK [fedora.linux_system_roles.firewall : Configure firewall] ***************** task path: /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:36 Wednesday 15 June 2022 18:35:57 +0000 (0:00:01.252) 0:00:16.674 ******** ok: [/cache/rhel-7.qcow2] => (item={'zone': 'internal', 'service': ['tftp', 'ftp'], 'port': ['443/tcp', '443/udp'], 'forward_port': ['447/tcp;;1.2.3.4', '448/tcp;;1.2.3.5'], 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "forward_port": [ "447/tcp;;1.2.3.4", "448/tcp;;1.2.3.5" ], "port": [ "443/tcp", "443/udp" ], "service": [ "tftp", "ftp" ], "state": "enabled", "zone": "internal" } } ok: [/cache/rhel-7.qcow2] => (item={'zone': 'internal', 'service': ['tftp', 'ftp'], 'port': ['443/tcp', '443/udp'], 'forward_port': ['447/tcp;;1.2.3.4', '448/tcp;;1.2.3.5'], 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "forward_port": [ "447/tcp;;1.2.3.4", "448/tcp;;1.2.3.5" ], "port": [ "443/tcp", "443/udp" ], "service": [ "tftp", "ftp" ], "state": "enabled", "zone": "internal" } } ok: [/cache/rhel-7.qcow2] => (item={'zone': 'customzone', 'permanent': True, 'state': 'present'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "permanent": true, "state": "present", "zone": "customzone" } } ok: [/cache/rhel-7.qcow2] => (item={'zone': 'customzone', 'permanent': True, 'masquerade': True, 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "masquerade": true, "permanent": true, "state": "enabled", "zone": "customzone" } } ok: [/cache/rhel-7.qcow2] => (item={'set_default_zone': 'dmz', 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "set_default_zone": "dmz", "state": "enabled" } } ok: [/cache/rhel-7.qcow2] => (item={'service': 'http', 'state': 'enabled'}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "service": "http", "state": "enabled" } } TASK [fedora.linux_system_roles.firewall : gather firewalld configuration] ***** task path: /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:63 Wednesday 15 June 2022 18:36:00 +0000 (0:00:03.377) 0:00:20.052 ******** skipping: [/cache/rhel-7.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.firewall : update firewalld_config fact] ******* task path: /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:69 Wednesday 15 June 2022 18:36:00 +0000 (0:00:00.035) 0:00:20.088 ******** skipping: [/cache/rhel-7.qcow2] => { "censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false } TASK [fedora.linux_system_roles.firewall : Get config files, checksums after] *** task path: /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:78 Wednesday 15 June 2022 18:36:01 +0000 (0:00:00.034) 0:00:20.122 ******** ok: [/cache/rhel-7.qcow2] => { "changed": false, "rc": 0 } STDOUT: /etc/profile.d/lang.sh: line 19: warning: setlocale: LC_CTYPE: cannot change locale (C.UTF-8) e2b071ca9b919b8fd60a4fe1e00e4f792ec2245359e8c48027020970791176d1 /etc/firewalld/zones/internal.xml 610e6e9bafe289c126adb751e772cd0224012f12738a8b8011454b1da8865c18 /etc/firewalld/zones/customzone.xml 1fbd6fcd1ca29e4438f7c982e2b9d595a93b93c1f9bdfbbf18745493df02e13e /etc/firewalld/zones/public.xml df2e066f9b8c0677c4887aa9a7032c4f94480408ff740036d98e648d11dd84c5 /etc/firewalld/zones/dmz.xml 958dce439fe299ce0b0fdb10c4c18412269fbab3f09660e4b210962728554953 /etc/firewalld/firewalld.conf STDERR: Shared connection to 127.0.0.3 closed. TASK [fedora.linux_system_roles.firewall : Calculate what has changed] ********* task path: /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:86 Wednesday 15 June 2022 18:36:01 +0000 (0:00:00.308) 0:00:20.431 ******** ok: [/cache/rhel-7.qcow2] => { "ansible_facts": { "firewall_lib_result": { "changed": false } }, "changed": false } TASK [fedora.linux_system_roles.firewall : Show diffs] ************************* task path: /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:92 Wednesday 15 June 2022 18:36:01 +0000 (0:00:00.080) 0:00:20.511 ******** skipping: [/cache/rhel-7.qcow2] => {} META: role_complete for /cache/rhel-7.qcow2 TASK [Fail on newly changes] *************************************************** task path: /tmp/tmp8jexk4vc/tests/firewall/tests_zone.yml:90 Wednesday 15 June 2022 18:36:01 +0000 (0:00:00.047) 0:00:20.559 ******** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [Verify firewalld zone internal services] ********************************* task path: /tmp/tmp8jexk4vc/tests/firewall/tests_zone.yml:96 Wednesday 15 June 2022 18:36:01 +0000 (0:00:00.036) 0:00:20.596 ******** changed: [/cache/rhel-7.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-services" ], "delta": "0:00:00.280147", "end": "2022-06-15 14:36:01.878431", "failed_when_result": false, "rc": 0, "start": "2022-06-15 14:36:01.598284" } STDOUT: dhcpv6-client ftp mdns samba-client ssh tftp TASK [Verify firewalld zone internal ports] ************************************ task path: /tmp/tmp8jexk4vc/tests/firewall/tests_zone.yml:101 Wednesday 15 June 2022 18:36:02 +0000 (0:00:00.735) 0:00:21.332 ******** changed: [/cache/rhel-7.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-ports" ], "delta": "0:00:00.267784", "end": "2022-06-15 14:36:02.496492", "failed_when_result": false, "rc": 0, "start": "2022-06-15 14:36:02.228708" } STDOUT: 443/tcp 443/udp TASK [Verify firewalld zone internal forward ports] **************************** task path: /tmp/tmp8jexk4vc/tests/firewall/tests_zone.yml:106 Wednesday 15 June 2022 18:36:02 +0000 (0:00:00.614) 0:00:21.946 ******** changed: [/cache/rhel-7.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=internal", "--list-forward-ports" ], "delta": "0:00:00.271444", "end": "2022-06-15 14:36:03.130865", "failed_when_result": false, "rc": 0, "start": "2022-06-15 14:36:02.859421" } STDOUT: port=447:proto=tcp:toport=:toaddr=1.2.3.4 port=448:proto=tcp:toport=:toaddr=1.2.3.5 TASK [Verify custom zone has masquerade added to it] *************************** task path: /tmp/tmp8jexk4vc/tests/firewall/tests_zone.yml:111 Wednesday 15 June 2022 18:36:03 +0000 (0:00:00.633) 0:00:22.579 ******** changed: [/cache/rhel-7.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--zone=customzone", "--query-masquerade" ], "delta": "0:00:00.287580", "end": "2022-06-15 14:36:03.773618", "failed_when_result": false, "rc": 0, "start": "2022-06-15 14:36:03.486038" } STDOUT: yes TASK [Verify custom zone has masquerade added to it] *************************** task path: /tmp/tmp8jexk4vc/tests/firewall/tests_zone.yml:116 Wednesday 15 June 2022 18:36:04 +0000 (0:00:00.645) 0:00:23.225 ******** changed: [/cache/rhel-7.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--get-default-zone" ], "delta": "0:00:00.249663", "end": "2022-06-15 14:36:04.378232", "failed_when_result": false, "rc": 0, "start": "2022-06-15 14:36:04.128569" } STDOUT: dmz TASK [Verify that service http has been added to the default zone dmz] ********* task path: /tmp/tmp8jexk4vc/tests/firewall/tests_zone.yml:121 Wednesday 15 June 2022 18:36:04 +0000 (0:00:00.602) 0:00:23.828 ******** changed: [/cache/rhel-7.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--zone=dmz", "--query-service=http" ], "delta": "0:00:00.255905", "end": "2022-06-15 14:36:04.982599", "failed_when_result": false, "rc": 0, "start": "2022-06-15 14:36:04.726694" } STDOUT: yes TASK [Remove customzone zone] ************************************************** task path: /tmp/tmp8jexk4vc/tests/firewall/tests_zone.yml:132 Wednesday 15 June 2022 18:36:05 +0000 (0:00:00.604) 0:00:24.432 ******** changed: [/cache/rhel-7.qcow2] => { "changed": true, "cmd": [ "firewall-cmd", "--permanent", "--delete-zone=customzone" ], "delta": "0:00:00.290801", "end": "2022-06-15 14:36:05.595664", "failed_when_result": false, "rc": 0, "start": "2022-06-15 14:36:05.304863" } STDOUT: success TASK [Reset to zone defaults] ************************************************** task path: /tmp/tmp8jexk4vc/tests/firewall/tests_zone.yml:137 Wednesday 15 June 2022 18:36:05 +0000 (0:00:00.617) 0:00:25.049 ******** changed: [/cache/rhel-7.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.307614", "end": "2022-06-15 14:36:07.231970", "rc": 0, "start": "2022-06-15 14:36:05.924356" } STDOUT: success success STDERR: Error: NO_DEFAULTS: external Error: NO_DEFAULTS: trusted META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-7.qcow2 : ok=39 changed=9 unreachable=0 failed=0 skipped=16 rescued=0 ignored=0 Wednesday 15 June 2022 18:36:07 +0000 (0:00:01.637) 0:00:26.687 ******** =============================================================================== fedora.linux_system_roles.firewall : Configure firewall ----------------- 6.69s /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:36 fedora.linux_system_roles.firewall : Configure firewall ----------------- 1.68s /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:36 Reset to zone defaults -------------------------------------------------- 1.64s /tmp/tmp8jexk4vc/tests/firewall/tests_zone.yml:137 ---------------------------- fedora.linux_system_roles.firewall : Get config files, checksums before and remove --- 1.48s /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:14 set up internal repositories -------------------------------------------- 1.44s /cache/rhel-7_setup.yml:5 ----------------------------------------------------- Gathering Facts --------------------------------------------------------- 0.93s /tmp/tmp8jexk4vc/tests/firewall/tests_zone.yml:1 ------------------------------ fedora.linux_system_roles.firewall : Enable and start firewalld service --- 0.81s /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Verify firewalld zone internal services --------------------------------- 0.74s /tmp/tmp8jexk4vc/tests/firewall/tests_zone.yml:96 ----------------------------- fedora.linux_system_roles.firewall : Enable and start firewalld service --- 0.69s /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 fedora.linux_system_roles.firewall : Install firewalld ------------------ 0.68s /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 Verify custom zone has masquerade added to it --------------------------- 0.65s /tmp/tmp8jexk4vc/tests/firewall/tests_zone.yml:111 ---------------------------- Verify firewalld zone internal forward ports ---------------------------- 0.63s /tmp/tmp8jexk4vc/tests/firewall/tests_zone.yml:106 ---------------------------- Remove customzone zone -------------------------------------------------- 0.62s /tmp/tmp8jexk4vc/tests/firewall/tests_zone.yml:132 ---------------------------- Verify firewalld zone internal ports ------------------------------------ 0.61s /tmp/tmp8jexk4vc/tests/firewall/tests_zone.yml:101 ---------------------------- Verify that service http has been added to the default zone dmz --------- 0.60s /tmp/tmp8jexk4vc/tests/firewall/tests_zone.yml:121 ---------------------------- Verify custom zone has masquerade added to it --------------------------- 0.60s /tmp/tmp8jexk4vc/tests/firewall/tests_zone.yml:116 ---------------------------- fedora.linux_system_roles.firewall : Get config files, checksums after --- 0.58s /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:78 fedora.linux_system_roles.firewall : Install firewalld ------------------ 0.56s /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 fedora.linux_system_roles.firewall : Install firewalld ------------------ 0.52s /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 fedora.linux_system_roles.firewall : Install python-firewall ------------ 0.51s /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:12