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/tmp6awxn9b3 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 Friday 22 July 2022 00:23:55 +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 Friday 22 July 2022 00:23:57 +0000 (0:00:01.400) 0:00:01.418 *********** =============================================================================== set up internal repositories -------------------------------------------- 1.40s /cache/rhel-7_setup.yml:5 ----------------------------------------------------- PLAYBOOK: tests_target.yml ***************************************************** 1 plays in /tmp/tmpgfts__k2/tests/tests_target.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmpgfts__k2/tests/tests_target.yml:1 Friday 22 July 2022 00:23:57 +0000 (0:00:00.011) 0:00:01.429 *********** ok: [/cache/rhel-7.qcow2] META: ran handlers TASK [Call role to change target settings] ************************************* task path: /tmp/tmpgfts__k2/tests/tests_target.yml:5 Friday 22 July 2022 00:23:57 +0000 (0:00:00.931) 0:00:02.361 *********** TASK [linux-system-roles.firewall : include_tasks] ***************************** task path: /tmp/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/main.yml:1 Friday 22 July 2022 00:23:58 +0000 (0:00:00.034) 0:00:02.396 *********** included: /tmp/tmpgfts__k2/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/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Friday 22 July 2022 00:23:58 +0000 (0:00:00.027) 0:00:02.423 *********** ok: [/cache/rhel-7.qcow2] TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 Friday 22 July 2022 00:23:58 +0000 (0:00:00.412) 0:00:02.836 *********** 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/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Friday 22 July 2022 00:23:59 +0000 (0:00:00.646) 0:00:03.483 *********** 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/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Friday 22 July 2022 00:23:59 +0000 (0:00:00.489) 0:00:03.973 *********** 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/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Friday 22 July 2022 00:23:59 +0000 (0:00:00.024) 0:00:03.997 *********** ok: [/cache/rhel-7.qcow2] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Thu 2022-07-21 20:23:11 EDT", "ActiveEnterTimestampMonotonic": "152107707", "ActiveExitTimestamp": "Thu 2022-07-21 20:23:10 EDT", "ActiveExitTimestampMonotonic": "151161654", "ActiveState": "active", "After": "dbus.service basic.target system.slice polkit.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Thu 2022-07-21 20:23:11 EDT", "AssertTimestampMonotonic": "151913760", "Before": "multi-user.target shutdown.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": "Thu 2022-07-21 20:23:11 EDT", "ConditionTimestampMonotonic": "151913760", "Conflicts": "ebtables.service shutdown.target ip6tables.service iptables.service ipset.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": "22135", "ExecMainStartTimestamp": "Thu 2022-07-21 20:23:11 EDT", "ExecMainStartTimestampMonotonic": "151914646", "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=[Thu 2022-07-21 20:23:11 EDT] ; stop_time=[n/a] ; pid=22135 ; 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": "Thu 2022-07-21 20:23:11 EDT", "InactiveEnterTimestampMonotonic": "151913167", "InactiveExitTimestamp": "Thu 2022-07-21 20:23:11 EDT", "InactiveExitTimestampMonotonic": "151914679", "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": "7150", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "7150", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "22135", "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": "Thu 2022-07-21 20:23:11 EDT", "WatchdogTimestampMonotonic": "152107331", "WatchdogUSec": "0" } } TASK [linux-system-roles.firewall : Check if previous replaced is defined] ***** task path: /tmp/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/main.yml:9 Friday 22 July 2022 00:24:00 +0000 (0:00:00.654) 0:00:04.652 *********** 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/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/main.yml:18 Friday 22 July 2022 00:24:00 +0000 (0:00:00.045) 0:00:04.698 *********** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/main.yml:40 Friday 22 July 2022 00:24:00 +0000 (0:00:00.031) 0:00:04.730 *********** 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 : Get config files, checksums after] ********* task path: /tmp/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/main.yml:77 Friday 22 July 2022 00:24:01 +0000 (0:00:01.368) 0:00:06.099 *********** 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/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/main.yml:85 Friday 22 July 2022 00:24:01 +0000 (0:00:00.033) 0:00:06.132 *********** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Show diffs] ******************************** task path: /tmp/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/main.yml:94 Friday 22 July 2022 00:24:01 +0000 (0:00:00.033) 0:00:06.166 *********** skipping: [/cache/rhel-7.qcow2] => {} META: role_complete for /cache/rhel-7.qcow2 TASK [Get target setting] ****************************************************** task path: /tmp/tmpgfts__k2/tests/tests_target.yml:16 Friday 22 July 2022 00:24:01 +0000 (0:00:00.039) 0:00:06.205 *********** ok: [/cache/rhel-7.qcow2] => { "changed": false, "cmd": [ "firewall-cmd", "--info-zone=public" ], "delta": "0:00:00.256760", "end": "2022-07-21 20:24:02.766346", "rc": 0, "start": "2022-07-21 20:24:02.509586" } 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/tmpgfts__k2/tests/tests_target.yml:21 Friday 22 July 2022 00:24:02 +0000 (0:00:00.681) 0:00:06.886 *********** ok: [/cache/rhel-7.qcow2] => { "changed": false } MSG: All assertions passed TASK [Call role to reset target settings] ************************************** task path: /tmp/tmpgfts__k2/tests/tests_target.yml:27 Friday 22 July 2022 00:24:02 +0000 (0:00:00.037) 0:00:06.924 *********** TASK [linux-system-roles.firewall : include_tasks] ***************************** task path: /tmp/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/main.yml:1 Friday 22 July 2022 00:24:02 +0000 (0:00:00.036) 0:00:06.960 *********** included: /tmp/tmpgfts__k2/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/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Friday 22 July 2022 00:24:02 +0000 (0:00:00.027) 0:00:06.988 *********** ok: [/cache/rhel-7.qcow2] TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 Friday 22 July 2022 00:24:03 +0000 (0:00:00.403) 0:00:07.391 *********** 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/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Friday 22 July 2022 00:24:03 +0000 (0:00:00.497) 0:00:07.888 *********** 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/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Friday 22 July 2022 00:24:04 +0000 (0:00:00.502) 0:00:08.391 *********** 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/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Friday 22 July 2022 00:24:04 +0000 (0:00:00.023) 0:00:08.415 *********** ok: [/cache/rhel-7.qcow2] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Thu 2022-07-21 20:23:11 EDT", "ActiveEnterTimestampMonotonic": "152107707", "ActiveExitTimestamp": "Thu 2022-07-21 20:23:10 EDT", "ActiveExitTimestampMonotonic": "151161654", "ActiveState": "active", "After": "dbus.service basic.target system.slice polkit.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Thu 2022-07-21 20:23:11 EDT", "AssertTimestampMonotonic": "151913760", "Before": "multi-user.target shutdown.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": "Thu 2022-07-21 20:23:11 EDT", "ConditionTimestampMonotonic": "151913760", "Conflicts": "ebtables.service shutdown.target ip6tables.service iptables.service ipset.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": "22135", "ExecMainStartTimestamp": "Thu 2022-07-21 20:23:11 EDT", "ExecMainStartTimestampMonotonic": "151914646", "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=[Thu 2022-07-21 20:23:11 EDT] ; stop_time=[n/a] ; pid=22135 ; 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": "Thu 2022-07-21 20:23:11 EDT", "InactiveEnterTimestampMonotonic": "151913167", "InactiveExitTimestamp": "Thu 2022-07-21 20:23:11 EDT", "InactiveExitTimestampMonotonic": "151914679", "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": "7150", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "7150", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "22135", "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": "Thu 2022-07-21 20:23:11 EDT", "WatchdogTimestampMonotonic": "152107331", "WatchdogUSec": "0" } } TASK [linux-system-roles.firewall : Check if previous replaced is defined] ***** task path: /tmp/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/main.yml:9 Friday 22 July 2022 00:24:04 +0000 (0:00:00.438) 0:00:08.853 *********** 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/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/main.yml:18 Friday 22 July 2022 00:24:04 +0000 (0:00:00.047) 0:00:08.901 *********** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/main.yml:40 Friday 22 July 2022 00:24:04 +0000 (0:00:00.040) 0:00:08.941 *********** 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 : Get config files, checksums after] ********* task path: /tmp/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/main.yml:77 Friday 22 July 2022 00:24:05 +0000 (0:00:00.775) 0:00:09.717 *********** 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/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/main.yml:85 Friday 22 July 2022 00:24:05 +0000 (0:00:00.033) 0:00:09.751 *********** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [linux-system-roles.firewall : Show diffs] ******************************** task path: /tmp/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/main.yml:94 Friday 22 July 2022 00:24:05 +0000 (0:00:00.031) 0:00:09.783 *********** skipping: [/cache/rhel-7.qcow2] => {} META: role_complete for /cache/rhel-7.qcow2 TASK [Get target setting] ****************************************************** task path: /tmp/tmpgfts__k2/tests/tests_target.yml:36 Friday 22 July 2022 00:24:05 +0000 (0:00:00.039) 0:00:09.822 *********** ok: [/cache/rhel-7.qcow2] => { "changed": false, "cmd": [ "firewall-cmd", "--info-zone=public" ], "delta": "0:00:00.261958", "end": "2022-07-21 20:24:06.288855", "rc": 0, "start": "2022-07-21 20:24:06.026897" } 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/tmpgfts__k2/tests/tests_target.yml:41 Friday 22 July 2022 00:24:06 +0000 (0:00:00.584) 0:00:10.406 *********** ok: [/cache/rhel-7.qcow2] => { "changed": false } MSG: All assertions passed TASK [Cleanup] ***************************************************************** task path: /tmp/tmpgfts__k2/tests/tests_target.yml:47 Friday 22 July 2022 00:24:06 +0000 (0:00:00.032) 0:00:10.439 *********** TASK [linux-system-roles.firewall : include_tasks] ***************************** task path: /tmp/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/main.yml:1 Friday 22 July 2022 00:24:06 +0000 (0:00:00.040) 0:00:10.479 *********** included: /tmp/tmpgfts__k2/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/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 Friday 22 July 2022 00:24:06 +0000 (0:00:00.027) 0:00:10.506 *********** ok: [/cache/rhel-7.qcow2] TASK [linux-system-roles.firewall : Install firewalld] ************************* task path: /tmp/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 Friday 22 July 2022 00:24:06 +0000 (0:00:00.437) 0:00:10.944 *********** 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/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 Friday 22 July 2022 00:24:07 +0000 (0:00:00.488) 0:00:11.432 *********** 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/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:19 Friday 22 July 2022 00:24:07 +0000 (0:00:00.509) 0:00:11.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/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 Friday 22 July 2022 00:24:07 +0000 (0:00:00.025) 0:00:11.967 *********** ok: [/cache/rhel-7.qcow2] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Thu 2022-07-21 20:23:11 EDT", "ActiveEnterTimestampMonotonic": "152107707", "ActiveExitTimestamp": "Thu 2022-07-21 20:23:10 EDT", "ActiveExitTimestampMonotonic": "151161654", "ActiveState": "active", "After": "dbus.service basic.target system.slice polkit.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Thu 2022-07-21 20:23:11 EDT", "AssertTimestampMonotonic": "151913760", "Before": "multi-user.target shutdown.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": "Thu 2022-07-21 20:23:11 EDT", "ConditionTimestampMonotonic": "151913760", "Conflicts": "ebtables.service shutdown.target ip6tables.service iptables.service ipset.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": "22135", "ExecMainStartTimestamp": "Thu 2022-07-21 20:23:11 EDT", "ExecMainStartTimestampMonotonic": "151914646", "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=[Thu 2022-07-21 20:23:11 EDT] ; stop_time=[n/a] ; pid=22135 ; 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": "Thu 2022-07-21 20:23:11 EDT", "InactiveEnterTimestampMonotonic": "151913167", "InactiveExitTimestamp": "Thu 2022-07-21 20:23:11 EDT", "InactiveExitTimestampMonotonic": "151914679", "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": "7150", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "7150", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "22135", "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": "Thu 2022-07-21 20:23:11 EDT", "WatchdogTimestampMonotonic": "152107331", "WatchdogUSec": "0" } } TASK [linux-system-roles.firewall : Check if previous replaced is defined] ***** task path: /tmp/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/main.yml:9 Friday 22 July 2022 00:24:07 +0000 (0:00:00.383) 0:00:12.350 *********** 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/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/main.yml:18 Friday 22 July 2022 00:24:08 +0000 (0:00:00.046) 0:00:12.397 *********** 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 94ab11c4e18dab5f883072983452331155deff3e66417f85d5272fd296284857 /etc/firewalld/services/http.xml STDERR: Shared connection to 127.0.0.3 closed. TASK [linux-system-roles.firewall : Configure firewall] ************************ task path: /tmp/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/main.yml:40 Friday 22 July 2022 00:24:09 +0000 (0:00:01.207) 0:00:13.605 *********** TASK [linux-system-roles.firewall : Get config files, checksums after] ********* task path: /tmp/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/main.yml:77 Friday 22 July 2022 00:24:09 +0000 (0:00:00.034) 0:00:13.639 *********** 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/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/main.yml:85 Friday 22 July 2022 00:24:09 +0000 (0:00:00.227) 0:00:13.867 *********** changed: [/cache/rhel-7.qcow2] => { "ansible_facts": { "firewall_lib_result": { "changed": true } }, "changed": true } TASK [linux-system-roles.firewall : Show diffs] ******************************** task path: /tmp/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/main.yml:94 Friday 22 July 2022 00:24:09 +0000 (0:00:00.044) 0:00:13.911 *********** 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=29 changed=3 unreachable=0 failed=0 skipped=13 rescued=0 ignored=0 Friday 22 July 2022 00:24:09 +0000 (0:00:00.049) 0:00:13.960 *********** =============================================================================== set up internal repositories -------------------------------------------- 1.40s /cache/rhel-7_setup.yml:5 ----------------------------------------------------- linux-system-roles.firewall : Configure firewall ------------------------ 1.37s /tmp/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/main.yml:40 ---- linux-system-roles.firewall : Get config files, checksums before and remove --- 1.21s /tmp/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/main.yml:18 ---- Gathering Facts --------------------------------------------------------- 0.93s /tmp/tmpgfts__k2/tests/tests_target.yml:1 ------------------------------------- linux-system-roles.firewall : Configure firewall ------------------------ 0.78s /tmp/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/main.yml:40 ---- Get target setting ------------------------------------------------------ 0.68s /tmp/tmpgfts__k2/tests/tests_target.yml:16 ------------------------------------ linux-system-roles.firewall : Enable and start firewalld service -------- 0.65s /tmp/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 ----- linux-system-roles.firewall : Install firewalld ------------------------- 0.65s /tmp/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 Get target setting ------------------------------------------------------ 0.58s /tmp/tmpgfts__k2/tests/tests_target.yml:36 ------------------------------------ linux-system-roles.firewall : Install python-firewall ------------------- 0.51s /tmp/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 linux-system-roles.firewall : Install python-firewall ------------------- 0.50s /tmp/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 linux-system-roles.firewall : Install firewalld ------------------------- 0.50s /tmp/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 linux-system-roles.firewall : Install python-firewall ------------------- 0.49s /tmp/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:13 linux-system-roles.firewall : Install firewalld ------------------------- 0.49s /tmp/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:8 linux-system-roles.firewall : Enable and start firewalld service -------- 0.44s /tmp/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 ----- linux-system-roles.firewall : Ensure ansible_facts used by role --------- 0.44s /tmp/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 linux-system-roles.firewall : Ensure ansible_facts used by role --------- 0.41s /tmp/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 linux-system-roles.firewall : Ensure ansible_facts used by role --------- 0.40s /tmp/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/firewalld.yml:2 linux-system-roles.firewall : Enable and start firewalld service -------- 0.38s /tmp/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/main.yml:3 ----- linux-system-roles.firewall : Get config files, checksums after --------- 0.23s /tmp/tmpgfts__k2/tests/roles/linux-system-roles.firewall/tasks/main.yml:77 ---- 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/tmp6awxn9b3 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 Friday 22 July 2022 00:28:00 +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 Friday 22 July 2022 00:28:02 +0000 (0:00:01.362) 0:00:01.380 *********** =============================================================================== set up internal repositories -------------------------------------------- 1.36s /cache/rhel-7_setup.yml:5 ----------------------------------------------------- PLAYBOOK: tests_target.yml ***************************************************** 1 plays in /tmp/tmp0a1kbiv1/tests/firewall/tests_target.yml PLAY [all] ********************************************************************* TASK [Gathering Facts] ********************************************************* task path: /tmp/tmp0a1kbiv1/tests/firewall/tests_target.yml:1 Friday 22 July 2022 00:28:02 +0000 (0:00:00.031) 0:00:01.412 *********** ok: [/cache/rhel-7.qcow2] META: ran handlers TASK [Call role to change target settings] ************************************* task path: /tmp/tmp0a1kbiv1/tests/firewall/tests_target.yml:5 Friday 22 July 2022 00:28:03 +0000 (0:00:00.920) 0:00:02.332 *********** TASK [fedora.linux_system_roles.firewall : include_tasks] ********************** task path: /tmp/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:1 Friday 22 July 2022 00:28:03 +0000 (0:00:00.036) 0:00:02.369 *********** included: /tmp/tmp6awxn9b3/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/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Friday 22 July 2022 00:28:03 +0000 (0:00:00.029) 0:00:02.398 *********** ok: [/cache/rhel-7.qcow2] TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 Friday 22 July 2022 00:28:03 +0000 (0:00:00.411) 0:00:02.809 *********** 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/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:12 Friday 22 July 2022 00:28:04 +0000 (0:00:00.657) 0:00:03.467 *********** 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/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:18 Friday 22 July 2022 00:28:04 +0000 (0:00:00.493) 0:00:03.960 *********** 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/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Friday 22 July 2022 00:28:04 +0000 (0:00:00.022) 0:00:03.983 *********** ok: [/cache/rhel-7.qcow2] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Thu 2022-07-21 20:27:16 EDT", "ActiveEnterTimestampMonotonic": "156288405", "ActiveExitTimestamp": "Thu 2022-07-21 20:27:15 EDT", "ActiveExitTimestampMonotonic": "155299998", "ActiveState": "active", "After": "basic.target dbus.service system.slice polkit.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Thu 2022-07-21 20:27:16 EDT", "AssertTimestampMonotonic": "156086912", "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": "Thu 2022-07-21 20:27:16 EDT", "ConditionTimestampMonotonic": "156086910", "Conflicts": "iptables.service ipset.service ip6tables.service ebtables.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": "22138", "ExecMainStartTimestamp": "Thu 2022-07-21 20:27:16 EDT", "ExecMainStartTimestampMonotonic": "156088222", "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=[Thu 2022-07-21 20:27:16 EDT] ; stop_time=[n/a] ; pid=22138 ; 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": "Thu 2022-07-21 20:27:16 EDT", "InactiveEnterTimestampMonotonic": "156085308", "InactiveExitTimestamp": "Thu 2022-07-21 20:27:16 EDT", "InactiveExitTimestampMonotonic": "156088290", "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": "7150", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "7150", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "22138", "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": "Thu 2022-07-21 20:27:16 EDT", "WatchdogTimestampMonotonic": "156288336", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.firewall : Check if previous replaced is defined] *** task path: /tmp/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:9 Friday 22 July 2022 00:28:05 +0000 (0:00:00.632) 0:00:04.616 *********** 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/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:14 Friday 22 July 2022 00:28:05 +0000 (0:00:00.044) 0:00:04.661 *********** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Configure firewall] ***************** task path: /tmp/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:36 Friday 22 July 2022 00:28:05 +0000 (0:00:00.029) 0:00:04.690 *********** 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 : Get config files, checksums after] *** task path: /tmp/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:71 Friday 22 July 2022 00:28:07 +0000 (0:00:01.372) 0:00:06.063 *********** 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/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:79 Friday 22 July 2022 00:28:07 +0000 (0:00:00.033) 0:00:06.096 *********** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Show diffs] ************************* task path: /tmp/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:85 Friday 22 July 2022 00:28:07 +0000 (0:00:00.035) 0:00:06.132 *********** skipping: [/cache/rhel-7.qcow2] => {} META: role_complete for /cache/rhel-7.qcow2 TASK [Get target setting] ****************************************************** task path: /tmp/tmp0a1kbiv1/tests/firewall/tests_target.yml:16 Friday 22 July 2022 00:28:07 +0000 (0:00:00.039) 0:00:06.172 *********** ok: [/cache/rhel-7.qcow2] => { "changed": false, "cmd": [ "firewall-cmd", "--info-zone=public" ], "delta": "0:00:00.259471", "end": "2022-07-21 20:28:07.502806", "rc": 0, "start": "2022-07-21 20:28:07.243335" } 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/tmp0a1kbiv1/tests/firewall/tests_target.yml:21 Friday 22 July 2022 00:28:07 +0000 (0:00:00.677) 0:00:06.849 *********** ok: [/cache/rhel-7.qcow2] => { "changed": false } MSG: All assertions passed TASK [Call role to reset target settings] ************************************** task path: /tmp/tmp0a1kbiv1/tests/firewall/tests_target.yml:27 Friday 22 July 2022 00:28:07 +0000 (0:00:00.030) 0:00:06.880 *********** TASK [fedora.linux_system_roles.firewall : include_tasks] ********************** task path: /tmp/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:1 Friday 22 July 2022 00:28:07 +0000 (0:00:00.047) 0:00:06.927 *********** included: /tmp/tmp6awxn9b3/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/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Friday 22 July 2022 00:28:07 +0000 (0:00:00.027) 0:00:06.955 *********** ok: [/cache/rhel-7.qcow2] TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 Friday 22 July 2022 00:28:08 +0000 (0:00:00.416) 0:00:07.372 *********** 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/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:12 Friday 22 July 2022 00:28:08 +0000 (0:00:00.502) 0:00:07.874 *********** 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/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:18 Friday 22 July 2022 00:28:09 +0000 (0:00:00.537) 0:00:08.412 *********** 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/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Friday 22 July 2022 00:28:09 +0000 (0:00:00.024) 0:00:08.437 *********** ok: [/cache/rhel-7.qcow2] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Thu 2022-07-21 20:27:16 EDT", "ActiveEnterTimestampMonotonic": "156288405", "ActiveExitTimestamp": "Thu 2022-07-21 20:27:15 EDT", "ActiveExitTimestampMonotonic": "155299998", "ActiveState": "active", "After": "basic.target dbus.service system.slice polkit.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Thu 2022-07-21 20:27:16 EDT", "AssertTimestampMonotonic": "156086912", "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": "Thu 2022-07-21 20:27:16 EDT", "ConditionTimestampMonotonic": "156086910", "Conflicts": "iptables.service ipset.service ip6tables.service ebtables.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": "22138", "ExecMainStartTimestamp": "Thu 2022-07-21 20:27:16 EDT", "ExecMainStartTimestampMonotonic": "156088222", "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=[Thu 2022-07-21 20:27:16 EDT] ; stop_time=[n/a] ; pid=22138 ; 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": "Thu 2022-07-21 20:27:16 EDT", "InactiveEnterTimestampMonotonic": "156085308", "InactiveExitTimestamp": "Thu 2022-07-21 20:27:16 EDT", "InactiveExitTimestampMonotonic": "156088290", "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": "7150", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "7150", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "22138", "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": "Thu 2022-07-21 20:27:16 EDT", "WatchdogTimestampMonotonic": "156288336", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.firewall : Check if previous replaced is defined] *** task path: /tmp/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:9 Friday 22 July 2022 00:28:09 +0000 (0:00:00.413) 0:00:08.850 *********** 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/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:14 Friday 22 July 2022 00:28:09 +0000 (0:00:00.047) 0:00:08.898 *********** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Configure firewall] ***************** task path: /tmp/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:36 Friday 22 July 2022 00:28:09 +0000 (0:00:00.029) 0:00:08.928 *********** 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 : Get config files, checksums after] *** task path: /tmp/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:71 Friday 22 July 2022 00:28:10 +0000 (0:00:00.771) 0:00:09.699 *********** 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/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:79 Friday 22 July 2022 00:28:10 +0000 (0:00:00.031) 0:00:09.731 *********** skipping: [/cache/rhel-7.qcow2] => { "changed": false, "skip_reason": "Conditional result was False" } TASK [fedora.linux_system_roles.firewall : Show diffs] ************************* task path: /tmp/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:85 Friday 22 July 2022 00:28:10 +0000 (0:00:00.029) 0:00:09.761 *********** skipping: [/cache/rhel-7.qcow2] => {} META: role_complete for /cache/rhel-7.qcow2 TASK [Get target setting] ****************************************************** task path: /tmp/tmp0a1kbiv1/tests/firewall/tests_target.yml:36 Friday 22 July 2022 00:28:10 +0000 (0:00:00.036) 0:00:09.797 *********** ok: [/cache/rhel-7.qcow2] => { "changed": false, "cmd": [ "firewall-cmd", "--info-zone=public" ], "delta": "0:00:00.259677", "end": "2022-07-21 20:28:11.009886", "rc": 0, "start": "2022-07-21 20:28:10.750209" } 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/tmp0a1kbiv1/tests/firewall/tests_target.yml:41 Friday 22 July 2022 00:28:11 +0000 (0:00:00.559) 0:00:10.357 *********** ok: [/cache/rhel-7.qcow2] => { "changed": false } MSG: All assertions passed TASK [Cleanup] ***************************************************************** task path: /tmp/tmp0a1kbiv1/tests/firewall/tests_target.yml:47 Friday 22 July 2022 00:28:11 +0000 (0:00:00.031) 0:00:10.388 *********** TASK [fedora.linux_system_roles.firewall : include_tasks] ********************** task path: /tmp/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:1 Friday 22 July 2022 00:28:11 +0000 (0:00:00.041) 0:00:10.430 *********** included: /tmp/tmp6awxn9b3/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/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Friday 22 July 2022 00:28:11 +0000 (0:00:00.027) 0:00:10.457 *********** ok: [/cache/rhel-7.qcow2] TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 Friday 22 July 2022 00:28:11 +0000 (0:00:00.446) 0:00:10.904 *********** 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/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:12 Friday 22 July 2022 00:28:12 +0000 (0:00:00.499) 0:00:11.404 *********** 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/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:18 Friday 22 July 2022 00:28:12 +0000 (0:00:00.499) 0:00:11.904 *********** 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/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Friday 22 July 2022 00:28:12 +0000 (0:00:00.025) 0:00:11.929 *********** ok: [/cache/rhel-7.qcow2] => { "changed": false, "enabled": true, "name": "firewalld", "state": "started", "status": { "ActiveEnterTimestamp": "Thu 2022-07-21 20:27:16 EDT", "ActiveEnterTimestampMonotonic": "156288405", "ActiveExitTimestamp": "Thu 2022-07-21 20:27:15 EDT", "ActiveExitTimestampMonotonic": "155299998", "ActiveState": "active", "After": "basic.target dbus.service system.slice polkit.service", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Thu 2022-07-21 20:27:16 EDT", "AssertTimestampMonotonic": "156086912", "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": "Thu 2022-07-21 20:27:16 EDT", "ConditionTimestampMonotonic": "156086910", "Conflicts": "iptables.service ipset.service ip6tables.service ebtables.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": "22138", "ExecMainStartTimestamp": "Thu 2022-07-21 20:27:16 EDT", "ExecMainStartTimestampMonotonic": "156088222", "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=[Thu 2022-07-21 20:27:16 EDT] ; stop_time=[n/a] ; pid=22138 ; 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": "Thu 2022-07-21 20:27:16 EDT", "InactiveEnterTimestampMonotonic": "156085308", "InactiveExitTimestamp": "Thu 2022-07-21 20:27:16 EDT", "InactiveExitTimestampMonotonic": "156088290", "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": "7150", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "7150", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "22138", "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": "Thu 2022-07-21 20:27:16 EDT", "WatchdogTimestampMonotonic": "156288336", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.firewall : Check if previous replaced is defined] *** task path: /tmp/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:9 Friday 22 July 2022 00:28:13 +0000 (0:00:00.388) 0:00:12.318 *********** 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/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:14 Friday 22 July 2022 00:28:13 +0000 (0:00:00.049) 0:00:12.367 *********** 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 94ab11c4e18dab5f883072983452331155deff3e66417f85d5272fd296284857 /etc/firewalld/services/http.xml STDERR: Shared connection to 127.0.0.3 closed. TASK [fedora.linux_system_roles.firewall : Configure firewall] ***************** task path: /tmp/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:36 Friday 22 July 2022 00:28:14 +0000 (0:00:01.229) 0:00:13.597 *********** TASK [fedora.linux_system_roles.firewall : Get config files, checksums after] *** task path: /tmp/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:71 Friday 22 July 2022 00:28:14 +0000 (0:00:00.036) 0:00:13.633 *********** 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/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:79 Friday 22 July 2022 00:28:14 +0000 (0:00:00.219) 0:00:13.852 *********** 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/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:85 Friday 22 July 2022 00:28:14 +0000 (0:00:00.047) 0:00:13.899 *********** 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=29 changed=3 unreachable=0 failed=0 skipped=13 rescued=0 ignored=0 Friday 22 July 2022 00:28:14 +0000 (0:00:00.048) 0:00:13.948 *********** =============================================================================== fedora.linux_system_roles.firewall : Configure firewall ----------------- 1.37s /tmp/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:36 set up internal repositories -------------------------------------------- 1.36s /cache/rhel-7_setup.yml:5 ----------------------------------------------------- fedora.linux_system_roles.firewall : Get config files, checksums before and remove --- 1.23s /tmp/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:14 Gathering Facts --------------------------------------------------------- 0.92s /tmp/tmp0a1kbiv1/tests/firewall/tests_target.yml:1 ---------------------------- fedora.linux_system_roles.firewall : Configure firewall ----------------- 0.77s /tmp/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:36 Get target setting ------------------------------------------------------ 0.68s /tmp/tmp0a1kbiv1/tests/firewall/tests_target.yml:16 --------------------------- fedora.linux_system_roles.firewall : Install firewalld ------------------ 0.66s /tmp/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 fedora.linux_system_roles.firewall : Enable and start firewalld service --- 0.63s /tmp/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 Get target setting ------------------------------------------------------ 0.56s /tmp/tmp0a1kbiv1/tests/firewall/tests_target.yml:36 --------------------------- fedora.linux_system_roles.firewall : Install python-firewall ------------ 0.54s /tmp/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:12 fedora.linux_system_roles.firewall : Install firewalld ------------------ 0.50s /tmp/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 fedora.linux_system_roles.firewall : Install python-firewall ------------ 0.50s /tmp/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:12 fedora.linux_system_roles.firewall : Install firewalld ------------------ 0.50s /tmp/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:7 fedora.linux_system_roles.firewall : Install python-firewall ------------ 0.49s /tmp/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:12 fedora.linux_system_roles.firewall : Ensure ansible_facts used by role --- 0.45s /tmp/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 fedora.linux_system_roles.firewall : Ensure ansible_facts used by role --- 0.42s /tmp/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 fedora.linux_system_roles.firewall : Enable and start firewalld service --- 0.41s /tmp/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 fedora.linux_system_roles.firewall : Ensure ansible_facts used by role --- 0.41s /tmp/tmp6awxn9b3/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/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:3 fedora.linux_system_roles.firewall : Get config files, checksums after --- 0.22s /tmp/tmp6awxn9b3/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:71