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:25 +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:26 +0000 (0:00:01.397) 0:00:01.416 ******** =============================================================================== set up internal repositories -------------------------------------------- 1.40s /cache/rhel-7_setup.yml:5 ----------------------------------------------------- PLAYBOOK: tests_target.yml ***************************************************** 1 plays in /tmp/tmpee_oh5lr/tests/tests_target.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpee_oh5lr/tests/tests_target.yml:1 Wednesday 15 June 2022 18:32:26 +0000 (0:00:00.011) 0:00:01.427 ******** ok: [/cache/rhel-7.qcow2] META: ran handlers TASK [Call role to change target settings] ************************************* task path: /tmp/tmpee_oh5lr/tests/tests_target.yml:5 Wednesday 15 June 2022 18:32:27 +0000 (0:00:00.926) 0:00:02.353 ******** 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:27 +0000 (0:00:00.034) 0:00:02.388 ******** 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:27 +0000 (0:00:00.028) 0:00:02.416 ******** 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:27 +0000 (0:00:00.399) 0:00:02.816 ******** 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:28 +0000 (0:00:00.647) 0:00:03.463 ******** 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:29 +0000 (0:00:00.499) 0:00:03.963 ******** 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:29 +0000 (0:00:00.024) 0:00:03.987 ******** ok: [/cache/rhel-7.qcow2] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-06-15 14:32:24 EDT", "ActiveEnterTimestampMonotonic": "131536051", "ActiveExitTimestamp": "Wed 2022-06-15 14:32:23 EDT", "ActiveExitTimestampMonotonic": "130590188", "ActiveState": "active", "After": "basic.target system.slice dbus.service polkit.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-06-15 14:32:23 EDT", "AssertTimestampMonotonic": "131348460", "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:23 EDT", "ConditionTimestampMonotonic": "131348460", "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": "19940", "ExecMainStartTimestamp": "Wed 2022-06-15 14:32:23 EDT", "ExecMainStartTimestampMonotonic": "131349209", "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:23 EDT] ; stop_time=[n/a] ; pid=19940 ; 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:23 EDT", "InactiveEnterTimestampMonotonic": "131347713", "InactiveExitTimestamp": "Wed 2022-06-15 14:32:23 EDT", "InactiveExitTimestampMonotonic": "131349252", "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": "19940", "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:24 EDT", "WatchdogTimestampMonotonic": "131535966", "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:29 +0000 (0:00:00.650) 0:00:04.638 ******** 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:29 +0000 (0:00:00.046) 0:00:04.685 ******** 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:29 +0000 (0:00:00.029) 0:00:04.715 ******** ok: [/cache/rhel-7.qcow2] => (item={'set_default_zone': 'public', 'permanent': True}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "permanent": true, "set_default_zone": "public" } } changed: [/cache/rhel-7.qcow2] => (item={'target': 'DROP', 'state': 'enabled', 'permanent': True}) => { "__firewall_changed": true, "ansible_loop_var": "item", "changed": true, "item": { "permanent": true, "state": "enabled", "target": "DROP" } } 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:31 +0000 (0:00:01.337) 0:00:06.052 ******** 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:31 +0000 (0:00:00.435) 0:00:06.488 ******** 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:31 +0000 (0:00:00.045) 0:00:06.533 ******** 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:31 +0000 (0:00:00.030) 0:00:06.564 ******** 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:31 +0000 (0:00:00.031) 0:00:06.596 ******** skipping: [/cache/rhel-7.qcow2] => {} META: role_complete for /cache/rhel-7.qcow2 TASK [Get target setting] ****************************************************** task path: /tmp/tmpee_oh5lr/tests/tests_target.yml:16 Wednesday 15 June 2022 18:32:31 +0000 (0:00:00.045) 0:00:06.641 ******** ok: [/cache/rhel-7.qcow2] => { "changed": false, "cmd": [ "firewall-cmd", "--info-zone=public" ], "delta": "0:00:00.260219", "end": "2022-06-15 14:32:32.383323", "rc": 0, "start": "2022-06-15 14:32:32.123104" } STDOUT: public (active) target: DROP icmp-block-inversion: no interfaces: eth0 sources: services: dhcpv6-client ssh ports: protocols: masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: TASK [Verify target setting] *************************************************** task path: /tmp/tmpee_oh5lr/tests/tests_target.yml:21 Wednesday 15 June 2022 18:32:32 +0000 (0:00:00.705) 0:00:07.347 ******** ok: [/cache/rhel-7.qcow2] => { "changed": false } MSG: All assertions passed TASK [Call role to reset target settings] ************************************** task path: /tmp/tmpee_oh5lr/tests/tests_target.yml:27 Wednesday 15 June 2022 18:32:32 +0000 (0:00:00.033) 0:00:07.380 ******** 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:32 +0000 (0:00:00.039) 0:00:07.420 ******** 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:32 +0000 (0:00:00.028) 0:00:07.449 ******** 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:32 +0000 (0:00:00.446) 0:00:07.896 ******** 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:33 +0000 (0:00:00.519) 0:00:08.415 ******** 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:33 +0000 (0:00:00.525) 0:00:08.941 ******** 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:34 +0000 (0:00:00.025) 0:00:08.966 ******** ok: [/cache/rhel-7.qcow2] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-06-15 14:32:24 EDT", "ActiveEnterTimestampMonotonic": "131536051", "ActiveExitTimestamp": "Wed 2022-06-15 14:32:23 EDT", "ActiveExitTimestampMonotonic": "130590188", "ActiveState": "active", "After": "basic.target system.slice dbus.service polkit.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-06-15 14:32:23 EDT", "AssertTimestampMonotonic": "131348460", "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:23 EDT", "ConditionTimestampMonotonic": "131348460", "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": "19940", "ExecMainStartTimestamp": "Wed 2022-06-15 14:32:23 EDT", "ExecMainStartTimestampMonotonic": "131349209", "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:23 EDT] ; stop_time=[n/a] ; pid=19940 ; 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:23 EDT", "InactiveEnterTimestampMonotonic": "131347713", "InactiveExitTimestamp": "Wed 2022-06-15 14:32:23 EDT", "InactiveExitTimestampMonotonic": "131349252", "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": "19940", "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:24 EDT", "WatchdogTimestampMonotonic": "131535966", "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:34 +0000 (0:00:00.420) 0:00:09.387 ******** 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:34 +0000 (0:00:00.075) 0:00:09.463 ******** 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:34 +0000 (0:00:00.079) 0:00:09.542 ******** changed: [/cache/rhel-7.qcow2] => (item={'target': 'DROP', 'state': 'absent', 'permanent': True}) => { "__firewall_changed": true, "ansible_loop_var": "item", "changed": true, "item": { "permanent": true, "state": "absent", "target": "DROP" } } 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:35 +0000 (0:00:00.726) 0:00:10.268 ******** 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:35 +0000 (0:00:00.299) 0:00:10.568 ******** 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:35 +0000 (0:00:00.053) 0:00:10.622 ******** 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:35 +0000 (0:00:00.033) 0:00:10.656 ******** 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:35 +0000 (0:00:00.032) 0:00:10.689 ******** skipping: [/cache/rhel-7.qcow2] => {} META: role_complete for /cache/rhel-7.qcow2 TASK [Get target setting] ****************************************************** task path: /tmp/tmpee_oh5lr/tests/tests_target.yml:36 Wednesday 15 June 2022 18:32:35 +0000 (0:00:00.041) 0:00:10.730 ******** ok: [/cache/rhel-7.qcow2] => { "changed": false, "cmd": [ "firewall-cmd", "--info-zone=public" ], "delta": "0:00:00.256767", "end": "2022-06-15 14:32:36.318667", "rc": 0, "start": "2022-06-15 14:32:36.061900" } STDOUT: public (active) target: default icmp-block-inversion: no interfaces: eth0 sources: services: dhcpv6-client ssh ports: protocols: masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: TASK [Verify target setting was reset] ***************************************** task path: /tmp/tmpee_oh5lr/tests/tests_target.yml:41 Wednesday 15 June 2022 18:32:36 +0000 (0:00:00.550) 0:00:11.280 ******** ok: [/cache/rhel-7.qcow2] => { "changed": false } MSG: All assertions passed TASK [Cleanup] ***************************************************************** task path: /tmp/tmpee_oh5lr/tests/tests_target.yml:47 Wednesday 15 June 2022 18:32:36 +0000 (0:00:00.032) 0:00:11.312 ******** 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:36 +0000 (0:00:00.043) 0:00:11.356 ******** 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:36 +0000 (0:00:00.026) 0:00:11.382 ******** 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:36 +0000 (0:00:00.401) 0:00:11.784 ******** 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:37 +0000 (0:00:00.500) 0:00:12.285 ******** 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:37 +0000 (0:00:00.515) 0:00:12.800 ******** 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:37 +0000 (0:00:00.026) 0:00:12.826 ******** ok: [/cache/rhel-7.qcow2] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-06-15 14:32:24 EDT", "ActiveEnterTimestampMonotonic": "131536051", "ActiveExitTimestamp": "Wed 2022-06-15 14:32:23 EDT", "ActiveExitTimestampMonotonic": "130590188", "ActiveState": "active", "After": "basic.target system.slice dbus.service polkit.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-06-15 14:32:23 EDT", "AssertTimestampMonotonic": "131348460", "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:23 EDT", "ConditionTimestampMonotonic": "131348460", "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": "19940", "ExecMainStartTimestamp": "Wed 2022-06-15 14:32:23 EDT", "ExecMainStartTimestampMonotonic": "131349209", "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:23 EDT] ; stop_time=[n/a] ; pid=19940 ; 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:23 EDT", "InactiveEnterTimestampMonotonic": "131347713", "InactiveExitTimestamp": "Wed 2022-06-15 14:32:23 EDT", "InactiveExitTimestampMonotonic": "131349252", "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": "19940", "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:24 EDT", "WatchdogTimestampMonotonic": "131535966", "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:38 +0000 (0:00:00.388) 0:00:13.215 ******** 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:38 +0000 (0:00:00.048) 0:00:13.264 ******** 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) 1fbd6fcd1ca29e4438f7c982e2b9d595a93b93c1f9bdfbbf18745493df02e13e /etc/firewalld/zones/public.xml 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:39 +0000 (0:00:01.263) 0:00:14.527 ******** 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:39 +0000 (0:00:00.035) 0:00:14.563 ******** 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:39 +0000 (0:00:00.033) 0:00:14.596 ******** 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:39 +0000 (0:00:00.033) 0:00:14.630 ******** 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 : 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:39 +0000 (0:00:00.229) 0:00:14.860 ******** 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:39 +0000 (0:00:00.046) 0:00:14.906 ******** skipping: [/cache/rhel-7.qcow2] => {} META: role_complete for /cache/rhel-7.qcow2 META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-7.qcow2 : ok=33 changed=3 unreachable=0 failed=0 skipped=15 rescued=0 ignored=0 Wednesday 15 June 2022 18:32:40 +0000 (0:00:00.052) 0:00:14.959 ******** =============================================================================== set up internal repositories -------------------------------------------- 1.40s /cache/rhel-7_setup.yml:5 ----------------------------------------------------- linux-system-roles.firewall : Configure firewall ------------------------ 1.34s /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/main.yml:40 ---- linux-system-roles.firewall : Get config files, checksums before and remove --- 1.26s /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/main.yml:18 ---- Gathering Facts --------------------------------------------------------- 0.93s /tmp/tmpee_oh5lr/tests/tests_target.yml:1 ------------------------------------- linux-system-roles.firewall : Configure firewall ------------------------ 0.73s /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/main.yml:40 ---- Get target setting ------------------------------------------------------ 0.71s /tmp/tmpee_oh5lr/tests/tests_target.yml:16 ------------------------------------ linux-system-roles.firewall : Enable and start firewalld service -------- 0.65s /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 ----- linux-system-roles.firewall : Install firewalld ------------------------- 0.65s /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 Get target setting ------------------------------------------------------ 0.55s /tmp/tmpee_oh5lr/tests/tests_target.yml:36 ------------------------------------ linux-system-roles.firewall : Install python-firewall ------------------- 0.53s /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 linux-system-roles.firewall : Install python-firewall ------------------- 0.52s /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 linux-system-roles.firewall : Install firewalld ------------------------- 0.50s /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 linux-system-roles.firewall : Install python-firewall ------------------- 0.50s /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 linux-system-roles.firewall : Ensure ansible_facts used by role --------- 0.45s /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 linux-system-roles.firewall : gather firewalld configuration ------------ 0.44s /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/main.yml:69 ---- linux-system-roles.firewall : Enable and start firewalld service -------- 0.42s /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 ----- linux-system-roles.firewall : Ensure ansible_facts used by role --------- 0.40s /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 linux-system-roles.firewall : Ensure ansible_facts used by role --------- 0.40s /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 linux-system-roles.firewall : Enable and start firewalld service -------- 0.39s /tmp/tmpee_oh5lr/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 ----- 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:25 +0000 (0:00:00.017) 0:00:00.017 ******** 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:26 +0000 (0:00:01.399) 0:00:01.417 ******** =============================================================================== set up internal repositories -------------------------------------------- 1.40s /cache/rhel-7_setup.yml:5 ----------------------------------------------------- PLAYBOOK: tests_target.yml ***************************************************** 1 plays in /tmp/tmp8jexk4vc/tests/firewall/tests_target.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp8jexk4vc/tests/firewall/tests_target.yml:1 Wednesday 15 June 2022 18:35:26 +0000 (0:00:00.012) 0:00:01.429 ******** ok: [/cache/rhel-7.qcow2] META: ran handlers TASK [Call role to change target settings] ************************************* task path: /tmp/tmp8jexk4vc/tests/firewall/tests_target.yml:5 Wednesday 15 June 2022 18:35:27 +0000 (0:00:00.919) 0:00:02.348 ******** 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:27 +0000 (0:00:00.038) 0:00:02.386 ******** 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:27 +0000 (0:00:00.029) 0:00:02.415 ******** 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:28 +0000 (0:00:00.505) 0:00:02.921 ******** 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:28 +0000 (0:00:00.653) 0:00:03.574 ******** 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:29 +0000 (0:00:00.496) 0:00:04.070 ******** 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:29 +0000 (0:00:00.027) 0:00:04.097 ******** ok: [/cache/rhel-7.qcow2] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-06-15 14:35:23 EDT", "ActiveEnterTimestampMonotonic": "132342415", "ActiveExitTimestamp": "Wed 2022-06-15 14:35:22 EDT", "ActiveExitTimestampMonotonic": "131359833", "ActiveState": "active", "After": "polkit.service system.slice basic.target dbus.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-06-15 14:35:23 EDT", "AssertTimestampMonotonic": "132151028", "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:23 EDT", "ConditionTimestampMonotonic": "132151028", "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": "19934", "ExecMainStartTimestamp": "Wed 2022-06-15 14:35:23 EDT", "ExecMainStartTimestampMonotonic": "132151877", "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:23 EDT] ; stop_time=[n/a] ; pid=19934 ; 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:23 EDT", "InactiveEnterTimestampMonotonic": "132150489", "InactiveExitTimestamp": "Wed 2022-06-15 14:35:23 EDT", "InactiveExitTimestampMonotonic": "132151918", "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": "19934", "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:23 EDT", "WatchdogTimestampMonotonic": "132342344", "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:29 +0000 (0:00:00.663) 0:00:04.761 ******** 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:29 +0000 (0:00:00.048) 0:00:04.809 ******** 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:30 +0000 (0:00:00.032) 0:00:04.842 ******** ok: [/cache/rhel-7.qcow2] => (item={'set_default_zone': 'public', 'permanent': True}) => { "__firewall_changed": false, "ansible_loop_var": "item", "changed": false, "item": { "permanent": true, "set_default_zone": "public" } } changed: [/cache/rhel-7.qcow2] => (item={'target': 'DROP', 'state': 'enabled', 'permanent': True}) => { "__firewall_changed": true, "ansible_loop_var": "item", "changed": true, "item": { "permanent": true, "state": "enabled", "target": "DROP" } } 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:31 +0000 (0:00:01.399) 0:00:06.241 ******** 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:31 +0000 (0:00:00.441) 0:00:06.682 ******** 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:31 +0000 (0:00:00.074) 0:00:06.757 ******** 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:31 +0000 (0:00:00.032) 0:00:06.789 ******** 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:31 +0000 (0:00:00.036) 0:00:06.826 ******** skipping: [/cache/rhel-7.qcow2] => {} META: role_complete for /cache/rhel-7.qcow2 TASK [Get target setting] ****************************************************** task path: /tmp/tmp8jexk4vc/tests/firewall/tests_target.yml:16 Wednesday 15 June 2022 18:35:32 +0000 (0:00:00.048) 0:00:06.875 ******** ok: [/cache/rhel-7.qcow2] => { "changed": false, "cmd": [ "firewall-cmd", "--info-zone=public" ], "delta": "0:00:00.264717", "end": "2022-06-15 14:35:32.407083", "rc": 0, "start": "2022-06-15 14:35:32.142366" } STDOUT: public (active) target: DROP icmp-block-inversion: no interfaces: eth0 sources: services: dhcpv6-client ssh ports: protocols: masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: TASK [Verify target setting] *************************************************** task path: /tmp/tmp8jexk4vc/tests/firewall/tests_target.yml:21 Wednesday 15 June 2022 18:35:32 +0000 (0:00:00.697) 0:00:07.572 ******** ok: [/cache/rhel-7.qcow2] => { "changed": false } MSG: All assertions passed TASK [Call role to reset target settings] ************************************** task path: /tmp/tmp8jexk4vc/tests/firewall/tests_target.yml:27 Wednesday 15 June 2022 18:35:32 +0000 (0:00:00.034) 0:00:07.607 ******** 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:32 +0000 (0:00:00.040) 0:00:07.648 ******** 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:32 +0000 (0:00:00.031) 0:00:07.679 ******** 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:33 +0000 (0:00:00.408) 0:00:08.088 ******** 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:33 +0000 (0:00:00.565) 0:00:08.653 ******** 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:34 +0000 (0:00:00.519) 0:00:09.173 ******** 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:34 +0000 (0:00:00.065) 0:00:09.238 ******** ok: [/cache/rhel-7.qcow2] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-06-15 14:35:23 EDT", "ActiveEnterTimestampMonotonic": "132342415", "ActiveExitTimestamp": "Wed 2022-06-15 14:35:22 EDT", "ActiveExitTimestampMonotonic": "131359833", "ActiveState": "active", "After": "polkit.service system.slice basic.target dbus.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-06-15 14:35:23 EDT", "AssertTimestampMonotonic": "132151028", "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:23 EDT", "ConditionTimestampMonotonic": "132151028", "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": "19934", "ExecMainStartTimestamp": "Wed 2022-06-15 14:35:23 EDT", "ExecMainStartTimestampMonotonic": "132151877", "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:23 EDT] ; stop_time=[n/a] ; pid=19934 ; 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:23 EDT", "InactiveEnterTimestampMonotonic": "132150489", "InactiveExitTimestamp": "Wed 2022-06-15 14:35:23 EDT", "InactiveExitTimestampMonotonic": "132151918", "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": "19934", "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:23 EDT", "WatchdogTimestampMonotonic": "132342344", "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:34 +0000 (0:00:00.387) 0:00:09.626 ******** 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:34 +0000 (0:00:00.050) 0:00:09.676 ******** 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:34 +0000 (0:00:00.031) 0:00:09.707 ******** changed: [/cache/rhel-7.qcow2] => (item={'target': 'DROP', 'state': 'absent', 'permanent': True}) => { "__firewall_changed": true, "ansible_loop_var": "item", "changed": true, "item": { "permanent": true, "state": "absent", "target": "DROP" } } 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:35 +0000 (0:00:00.720) 0:00:10.428 ******** 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:35 +0000 (0:00:00.312) 0:00:10.741 ******** 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:35 +0000 (0:00:00.049) 0:00:10.791 ******** 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:35 +0000 (0:00:00.032) 0:00:10.824 ******** 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:36 +0000 (0:00:00.034) 0:00:10.858 ******** skipping: [/cache/rhel-7.qcow2] => {} META: role_complete for /cache/rhel-7.qcow2 TASK [Get target setting] ****************************************************** task path: /tmp/tmp8jexk4vc/tests/firewall/tests_target.yml:36 Wednesday 15 June 2022 18:35:36 +0000 (0:00:00.040) 0:00:10.899 ******** ok: [/cache/rhel-7.qcow2] => { "changed": false, "cmd": [ "firewall-cmd", "--info-zone=public" ], "delta": "0:00:00.263583", "end": "2022-06-15 14:35:36.296144", "rc": 0, "start": "2022-06-15 14:35:36.032561" } STDOUT: public (active) target: default icmp-block-inversion: no interfaces: eth0 sources: services: dhcpv6-client ssh ports: protocols: masquerade: no forward-ports: source-ports: icmp-blocks: rich rules: TASK [Verify target setting was reset] ***************************************** task path: /tmp/tmp8jexk4vc/tests/firewall/tests_target.yml:41 Wednesday 15 June 2022 18:35:36 +0000 (0:00:00.560) 0:00:11.460 ******** ok: [/cache/rhel-7.qcow2] => { "changed": false } MSG: All assertions passed TASK [Cleanup] ***************************************************************** task path: /tmp/tmp8jexk4vc/tests/firewall/tests_target.yml:47 Wednesday 15 June 2022 18:35:36 +0000 (0:00:00.032) 0:00:11.492 ******** 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:36 +0000 (0:00:00.047) 0:00:11.540 ******** 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:36 +0000 (0:00:00.030) 0:00:11.570 ******** 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:37 +0000 (0:00:00.411) 0:00:11.982 ******** 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:37 +0000 (0:00:00.500) 0:00:12.482 ******** 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:38 +0000 (0:00:00.493) 0:00:12.975 ******** 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:38 +0000 (0:00:00.026) 0:00:13.002 ******** ok: [/cache/rhel-7.qcow2] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Wed 2022-06-15 14:35:23 EDT", "ActiveEnterTimestampMonotonic": "132342415", "ActiveExitTimestamp": "Wed 2022-06-15 14:35:22 EDT", "ActiveExitTimestampMonotonic": "131359833", "ActiveState": "active", "After": "polkit.service system.slice basic.target dbus.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Wed 2022-06-15 14:35:23 EDT", "AssertTimestampMonotonic": "132151028", "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:23 EDT", "ConditionTimestampMonotonic": "132151028", "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": "19934", "ExecMainStartTimestamp": "Wed 2022-06-15 14:35:23 EDT", "ExecMainStartTimestampMonotonic": "132151877", "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:23 EDT] ; stop_time=[n/a] ; pid=19934 ; 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:23 EDT", "InactiveEnterTimestampMonotonic": "132150489", "InactiveExitTimestamp": "Wed 2022-06-15 14:35:23 EDT", "InactiveExitTimestampMonotonic": "132151918", "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": "19934", "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:23 EDT", "WatchdogTimestampMonotonic": "132342344", "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:38 +0000 (0:00:00.393) 0:00:13.396 ******** 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:38 +0000 (0:00:00.049) 0:00:13.445 ******** 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) 1fbd6fcd1ca29e4438f7c982e2b9d595a93b93c1f9bdfbbf18745493df02e13e /etc/firewalld/zones/public.xml 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:39 +0000 (0:00:01.247) 0:00:14.693 ******** 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:39 +0000 (0:00:00.037) 0:00:14.730 ******** 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:39 +0000 (0:00:00.034) 0:00:14.764 ******** 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:39 +0000 (0:00:00.035) 0:00:14.799 ******** 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 : 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:40 +0000 (0:00:00.235) 0:00:15.034 ******** 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:40 +0000 (0:00:00.047) 0:00:15.082 ******** skipping: [/cache/rhel-7.qcow2] => {} META: role_complete for /cache/rhel-7.qcow2 META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* /cache/rhel-7.qcow2 : ok=33 changed=3 unreachable=0 failed=0 skipped=15 rescued=0 ignored=0 Wednesday 15 June 2022 18:35:40 +0000 (0:00:00.050) 0:00:15.133 ******** =============================================================================== set up internal repositories -------------------------------------------- 1.40s /cache/rhel-7_setup.yml:5 ----------------------------------------------------- fedora.linux_system_roles.firewall : Configure firewall ----------------- 1.40s /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:36 fedora.linux_system_roles.firewall : Get config files, checksums before and remove --- 1.25s /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:14 Gathering Facts --------------------------------------------------------- 0.92s /tmp/tmp8jexk4vc/tests/firewall/tests_target.yml:1 ---------------------------- fedora.linux_system_roles.firewall : Configure firewall ----------------- 0.72s /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:36 Get target setting ------------------------------------------------------ 0.70s /tmp/tmp8jexk4vc/tests/firewall/tests_target.yml:16 --------------------------- fedora.linux_system_roles.firewall : Enable and start firewalld service --- 0.66s /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 fedora.linux_system_roles.firewall : Install firewalld ------------------ 0.65s /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 fedora.linux_system_roles.firewall : Install firewalld ------------------ 0.57s /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 Get target setting ------------------------------------------------------ 0.56s /tmp/tmp8jexk4vc/tests/firewall/tests_target.yml:36 --------------------------- fedora.linux_system_roles.firewall : Install python-firewall ------------ 0.52s /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:12 fedora.linux_system_roles.firewall : Ensure ansible_facts used by role --- 0.51s /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 fedora.linux_system_roles.firewall : Install firewalld ------------------ 0.50s /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 fedora.linux_system_roles.firewall : Install python-firewall ------------ 0.50s /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:12 fedora.linux_system_roles.firewall : Install python-firewall ------------ 0.49s /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:12 fedora.linux_system_roles.firewall : gather firewalld configuration ----- 0.44s /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:63 fedora.linux_system_roles.firewall : Ensure ansible_facts used by role --- 0.41s /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 fedora.linux_system_roles.firewall : Ensure ansible_facts used by role --- 0.41s /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 fedora.linux_system_roles.firewall : Enable and start firewalld service --- 0.39s /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 fedora.linux_system_roles.firewall : Enable and start firewalld service --- 0.39s /tmp/tmpfg344xeo/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3