[DEPRECATION WARNING]: ANSIBLE_COLLECTIONS_PATHS option, does not fit var naming standard, use the singular form ANSIBLE_COLLECTIONS_PATH instead. This feature will be removed from ansible-core in version 2.19. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. ansible-playbook [core 2.17.4] config file = None configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.12/site-packages/ansible ansible collection location = /tmp/collections-PRj executable location = /usr/local/bin/ansible-playbook python version = 3.12.5 (main, Aug 23 2024, 00:00:00) [GCC 11.5.0 20240719 (Red Hat 11.5.0-2)] (/usr/bin/python3.12) jinja version = 3.1.4 libyaml = True No config file found; using defaults running playbook inside collection fedora.linux_system_roles redirecting (type: callback) ansible.builtin.profile_tasks to ansible.posix.profile_tasks 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: tests_previous_replaced.yml ****************************************** 1 plays in /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_previous_replaced.yml PLAY [Test setting previous=replaced with postfix_conf] ************************ TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_previous_replaced.yml:2 Tuesday 10 September 2024 03:23:29 -0400 (0:00:00.006) 0:00:00.006 ***** [WARNING]: Platform linux on host managed-node2 is using the discovered Python interpreter at /usr/bin/python3.12, but future installation of another Python interpreter could change the meaning of that path. See https://docs.ansible.com/ansible- core/2.17/reference_appendices/interpreter_discovery.html for more information. ok: [managed-node2] TASK [Run the role with previous=replaced only] ******************************** task path: /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_previous_replaced.yml:5 Tuesday 10 September 2024 03:23:32 -0400 (0:00:02.280) 0:00:02.286 ***** included: fedora.linux_system_roles.postfix for managed-node2 TASK [fedora.linux_system_roles.postfix : Ensure ansible_facts required by role] *** task path: /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:2 Tuesday 10 September 2024 03:23:32 -0400 (0:00:00.073) 0:00:02.359 ***** included: /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml for managed-node2 TASK [fedora.linux_system_roles.postfix : Ensure ansible_facts used by role are present] *** task path: /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:3 Tuesday 10 September 2024 03:23:32 -0400 (0:00:00.017) 0:00:02.377 ***** skipping: [managed-node2] => {"changed": false, "false_condition": "__postfix_required_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False"} TASK [fedora.linux_system_roles.postfix : Check if system is ostree] *********** task path: /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:11 Tuesday 10 September 2024 03:23:32 -0400 (0:00:00.036) 0:00:02.414 ***** ok: [managed-node2] => {"changed": false, "stat": {"exists": false}} TASK [fedora.linux_system_roles.postfix : Set flag to indicate system is ostree] *** task path: /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:16 Tuesday 10 September 2024 03:23:32 -0400 (0:00:00.539) 0:00:02.954 ***** ok: [managed-node2] => {"ansible_facts": {"__postfix_is_ostree": false}, "changed": false} TASK [fedora.linux_system_roles.postfix : Set platform/version specific variables] *** task path: /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:20 Tuesday 10 September 2024 03:23:32 -0400 (0:00:00.031) 0:00:02.985 ***** ok: [managed-node2] => (item=RedHat.yml) => {"ansible_facts": {"__postfix_smtp_services": ["smtp", "smtps", "submission"]}, "ansible_included_var_files": ["/tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/postfix/vars/RedHat.yml"], "ansible_loop_var": "item", "changed": false, "item": "RedHat.yml"} skipping: [managed-node2] => (item=CentOS.yml) => {"ansible_loop_var": "item", "changed": false, "false_condition": "__postfix_vars_file is file", "item": "CentOS.yml", "skip_reason": "Conditional result was False"} ok: [managed-node2] => (item=CentOS_9.yml) => {"ansible_facts": {"__postfix_smtp_services": ["smtp", "smtps", "smtp-submission"]}, "ansible_included_var_files": ["/tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/postfix/vars/CentOS_9.yml"], "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml"} ok: [managed-node2] => (item=CentOS_9.yml) => {"ansible_facts": {"__postfix_smtp_services": ["smtp", "smtps", "smtp-submission"]}, "ansible_included_var_files": ["/tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/postfix/vars/CentOS_9.yml"], "ansible_loop_var": "item", "changed": false, "item": "CentOS_9.yml"} TASK [fedora.linux_system_roles.postfix : Get status of package(s) ['postfix']] *** task path: /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:16 Tuesday 10 September 2024 03:23:32 -0400 (0:00:00.055) 0:00:03.041 ***** ok: [managed-node2] => (item=postfix) => {"ansible_loop_var": "item", "changed": false, "cmd": ["rpm", "-V", "postfix"], "delta": "0:00:00.008451", "end": "2024-09-10 03:23:33.182492", "failed_when_result": false, "item": "postfix", "msg": "non-zero return code", "rc": 1, "start": "2024-09-10 03:23:33.174041", "stderr": "", "stderr_lines": [], "stdout": "package postfix is not installed", "stdout_lines": ["package postfix is not installed"]} TASK [fedora.linux_system_roles.postfix : Remove package(s) to reset original confs ['postfix']] *** task path: /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:23 Tuesday 10 September 2024 03:23:33 -0400 (0:00:00.442) 0:00:03.483 ***** skipping: [managed-node2] => {"changed": false, "false_condition": "__postfix_packages_status.results | rejectattr('stdout', 'match', '^package .* is not installed') | selectattr('stdout', 'search', ' /etc/postfix/.*[.]cf($|\\n)') | list | length > 0", "skip_reason": "Conditional result was False"} TASK [fedora.linux_system_roles.postfix : Get status of config files] ********** task path: /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:38 Tuesday 10 September 2024 03:23:33 -0400 (0:00:00.048) 0:00:03.532 ***** skipping: [managed-node2] => (item=postfix) => {"ansible_loop_var": "item", "changed": false, "false_condition": "__postfix_is_ostree | d(false)", "item": "postfix", "skip_reason": "Conditional result was False"} skipping: [managed-node2] => {"changed": false, "msg": "All items skipped"} TASK [fedora.linux_system_roles.postfix : Remove config files - make empty] **** task path: /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:45 Tuesday 10 September 2024 03:23:33 -0400 (0:00:00.037) 0:00:03.569 ***** skipping: [managed-node2] => {"changed": false, "skipped_reason": "No items in the list"} TASK [fedora.linux_system_roles.postfix : Configure firewall] ****************** task path: /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:54 Tuesday 10 September 2024 03:23:33 -0400 (0:00:00.032) 0:00:03.602 ***** included: /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/firewall.yml for managed-node2 TASK [Ensure the postfix ports status with the firewall role] ****************** task path: /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/firewall.yml:3 Tuesday 10 September 2024 03:23:33 -0400 (0:00:00.016) 0:00:03.618 ***** included: fedora.linux_system_roles.firewall for managed-node2 TASK [fedora.linux_system_roles.firewall : Setup firewalld] ******************** task path: /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:2 Tuesday 10 September 2024 03:23:33 -0400 (0:00:00.066) 0:00:03.685 ***** included: /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml for managed-node2 TASK [fedora.linux_system_roles.firewall : Ensure ansible_facts used by role] *** task path: /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:2 Tuesday 10 September 2024 03:23:33 -0400 (0:00:00.024) 0:00:03.709 ***** skipping: [managed-node2] => {"changed": false, "false_condition": "__firewall_required_facts | difference(ansible_facts.keys() | list) | length > 0", "skip_reason": "Conditional result was False"} TASK [fedora.linux_system_roles.firewall : Check if system is ostree] ********** task path: /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:10 Tuesday 10 September 2024 03:23:33 -0400 (0:00:00.033) 0:00:03.742 ***** ok: [managed-node2] => {"changed": false, "stat": {"exists": false}} TASK [fedora.linux_system_roles.firewall : Set flag to indicate system is ostree] *** task path: /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:15 Tuesday 10 September 2024 03:23:33 -0400 (0:00:00.327) 0:00:04.070 ***** ok: [managed-node2] => {"ansible_facts": {"__firewall_is_ostree": false}, "changed": false} TASK [fedora.linux_system_roles.firewall : Check if transactional-update exists in /sbin] *** task path: /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:22 Tuesday 10 September 2024 03:23:33 -0400 (0:00:00.023) 0:00:04.094 ***** ok: [managed-node2] => {"changed": false, "stat": {"exists": false}} TASK [fedora.linux_system_roles.firewall : Set flag if transactional-update exists] *** task path: /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:27 Tuesday 10 September 2024 03:23:34 -0400 (0:00:00.348) 0:00:04.443 ***** ok: [managed-node2] => {"ansible_facts": {"__firewall_is_transactional": false}, "changed": false} TASK [fedora.linux_system_roles.firewall : Install firewalld] ****************** task path: /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:31 Tuesday 10 September 2024 03:23:34 -0400 (0:00:00.024) 0:00:04.467 ***** ok: [managed-node2] => {"changed": false, "msg": "Nothing to do", "rc": 0, "results": []} TASK [fedora.linux_system_roles.firewall : Notify user that reboot is needed to apply changes] *** task path: /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:43 Tuesday 10 September 2024 03:23:38 -0400 (0:00:04.600) 0:00:09.068 ***** skipping: [managed-node2] => {"false_condition": "__firewall_is_transactional | d(false)"} TASK [fedora.linux_system_roles.firewall : Reboot transactional update systems] *** task path: /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:48 Tuesday 10 September 2024 03:23:38 -0400 (0:00:00.035) 0:00:09.103 ***** skipping: [managed-node2] => {"changed": false, "false_condition": "__firewall_is_transactional | d(false)", "skip_reason": "Conditional result was False"} TASK [fedora.linux_system_roles.firewall : Fail if reboot is needed and not set] *** task path: /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:53 Tuesday 10 September 2024 03:23:38 -0400 (0:00:00.039) 0:00:09.143 ***** skipping: [managed-node2] => {"changed": false, "false_condition": "__firewall_is_transactional | d(false)", "skip_reason": "Conditional result was False"} TASK [fedora.linux_system_roles.firewall : Collect service facts] ************** task path: /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:5 Tuesday 10 September 2024 03:23:38 -0400 (0:00:00.047) 0:00:09.190 ***** skipping: [managed-node2] => {"changed": false, "false_condition": "firewall_disable_conflicting_services | bool", "skip_reason": "Conditional result was False"} TASK [fedora.linux_system_roles.firewall : Attempt to stop and disable conflicting services] *** task path: /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:9 Tuesday 10 September 2024 03:23:38 -0400 (0:00:00.044) 0:00:09.235 ***** skipping: [managed-node2] => (item=nftables) => {"ansible_loop_var": "item", "changed": false, "false_condition": "firewall_disable_conflicting_services | bool", "item": "nftables", "skip_reason": "Conditional result was False"} skipping: [managed-node2] => (item=iptables) => {"ansible_loop_var": "item", "changed": false, "false_condition": "firewall_disable_conflicting_services | bool", "item": "iptables", "skip_reason": "Conditional result was False"} skipping: [managed-node2] => (item=ufw) => {"ansible_loop_var": "item", "changed": false, "false_condition": "firewall_disable_conflicting_services | bool", "item": "ufw", "skip_reason": "Conditional result was False"} skipping: [managed-node2] => {"changed": false, "msg": "All items skipped"} TASK [fedora.linux_system_roles.firewall : Unmask firewalld service] *********** task path: /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:22 Tuesday 10 September 2024 03:23:39 -0400 (0:00:00.058) 0:00:09.293 ***** ok: [managed-node2] => {"changed": false, "name": "firewalld", "status": {"AccessSELinuxContext": "system_u:object_r:firewalld_unit_file_t:s0", "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "system.slice dbus.socket sysinit.target dbus-broker.service polkit.service basic.target", "AllowIsolate": "no", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target network-pre.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target ip6tables.service iptables.service ebtables.service ipset.service", "ControlGroupId": "0", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "\"man:firewalld(1)\"", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecReloadEx": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExitType": "main", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "13964", "LimitNPROCSoft": "13964", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "13964", "LimitSIGPENDINGSoft": "13964", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "ReloadSignal": "1", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "sysinit.target system.slice dbus.socket", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "22342", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "1min 30s", "TimeoutStopFailureMode": "terminate", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "disabled", "UtmpMode": "init", "Wants": "network-pre.target", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "infinity"}} TASK [fedora.linux_system_roles.firewall : Enable and start firewalld service] *** task path: /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:28 Tuesday 10 September 2024 03:23:39 -0400 (0:00:00.834) 0:00:10.127 ***** changed: [managed-node2] => {"changed": true, "enabled": true, "name": "firewalld", "state": "started", "status": {"AccessSELinuxContext": "system_u:object_r:firewalld_unit_file_t:s0", "ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic": "0", "ActiveState": "inactive", "After": "sysinit.target dbus-broker.service system.slice dbus.socket basic.target polkit.service", "AllowIsolate": "no", "AssertResult": "no", "AssertTimestampMonotonic": "0", "Before": "shutdown.target network-pre.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "BusName": "org.fedoraproject.FirewallD1", "CPUAccounting": "yes", "CPUAffinityFromNUMA": "no", "CPUQuotaPerSecUSec": "infinity", "CPUQuotaPeriodUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanFreeze": "yes", "CanIsolate": "no", "CanReload": "yes", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend cap_audit_read cap_perfmon cap_bpf cap_checkpoint_restore", "CleanResult": "success", "CollectMode": "inactive", "ConditionResult": "no", "ConditionTimestampMonotonic": "0", "ConfigurationDirectoryMode": "0755", "Conflicts": "ebtables.service ipset.service ip6tables.service shutdown.target iptables.service", "ControlGroupId": "0", "ControlPID": "0", "CoredumpFilter": "0x33", "DefaultDependencies": "yes", "DefaultMemoryLow": "0", "DefaultMemoryMin": "0", "Delegate": "no", "Description": "firewalld - dynamic firewall daemon", "DevicePolicy": "auto", "Documentation": "\"man:firewalld(1)\"", "DynamicUser": "no", "EnvironmentFiles": "/etc/sysconfig/firewalld (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "0", "ExecMainStartTimestampMonotonic": "0", "ExecMainStatus": "0", "ExecReload": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecReloadEx": "{ path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStartEx": "{ path=/usr/sbin/firewalld ; argv[]=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS ; flags= ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExitType": "main", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FinalKillSignal": "9", "FragmentPath": "/usr/lib/systemd/system/firewalld.service", "FreezerState": "running", "GID": "[not set]", "GuessMainPID": "yes", "IOAccounting": "no", "IOReadBytes": "18446744073709551615", "IOReadOperations": "18446744073709551615", "IOSchedulingClass": "2", "IOSchedulingPriority": "4", "IOWeight": "[not set]", "IOWriteBytes": "18446744073709551615", "IOWriteOperations": "18446744073709551615", "IPAccounting": "no", "IPEgressBytes": "[no data]", "IPEgressPackets": "[no data]", "IPIngressBytes": "[no data]", "IPIngressPackets": "[no data]", "Id": "firewalld.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestampMonotonic": "0", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "mixed", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "infinity", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "8388608", "LimitMEMLOCKSoft": "8388608", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "524288", "LimitNOFILESoft": "1024", "LimitNPROC": "13964", "LimitNPROCSoft": "13964", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "13964", "LimitSIGPENDINGSoft": "13964", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogRateLimitBurst": "0", "LogRateLimitIntervalUSec": "0", "LogsDirectoryMode": "0755", "MainPID": "0", "ManagedOOMMemoryPressure": "auto", "ManagedOOMMemoryPressureLimit": "0", "ManagedOOMPreference": "none", "ManagedOOMSwap": "auto", "MemoryAccounting": "yes", "MemoryAvailable": "infinity", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemoryMin": "0", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "NFileDescriptorStore": "0", "NRestarts": "0", "NUMAPolicy": "n/a", "Names": "firewalld.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMPolicy": "stop", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "OnSuccessJobMode": "fail", "Perpetual": "no", "PrivateDevices": "no", "PrivateIPC": "no", "PrivateMounts": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProcSubset": "all", "ProtectClock": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectHostname": "no", "ProtectKernelLogs": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectProc": "default", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "ReloadResult": "success", "ReloadSignal": "1", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "sysinit.target dbus.socket system.slice", "Restart": "no", "RestartKillSignal": "15", "RestartUSec": "100ms", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "RuntimeRandomizedExtraUSec": "0", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "null", "StandardInput": "null", "StandardOutput": "null", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestampMonotonic": "0", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "dead", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "2147483646", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "[not set]", "TasksMax": "22342", "TimeoutAbortUSec": "1min 30s", "TimeoutCleanUSec": "infinity", "TimeoutStartFailureMode": "terminate", "TimeoutStartUSec": "1min 30s", "TimeoutStopFailureMode": "terminate", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "dbus", "UID": "[not set]", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "disabled", "UtmpMode": "init", "Wants": "network-pre.target", "WatchdogSignal": "6", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "infinity"}} TASK [fedora.linux_system_roles.firewall : Check if previous replaced is defined] *** task path: /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:34 Tuesday 10 September 2024 03:23:40 -0400 (0:00:00.887) 0:00:11.015 ***** ok: [managed-node2] => {"ansible_facts": {"__firewall_previous_replaced": false, "__firewall_python_cmd": "/usr/bin/python3.12", "__firewall_report_changed": true}, "changed": false} TASK [fedora.linux_system_roles.firewall : Get config files, checksums before and remove] *** task path: /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:43 Tuesday 10 September 2024 03:23:40 -0400 (0:00:00.043) 0:00:11.059 ***** skipping: [managed-node2] => {"changed": false, "false_condition": "__firewall_previous_replaced | bool", "skip_reason": "Conditional result was False"} TASK [fedora.linux_system_roles.firewall : Tell firewall module it is able to report changed] *** task path: /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:55 Tuesday 10 September 2024 03:23:40 -0400 (0:00:00.058) 0:00:11.117 ***** skipping: [managed-node2] => {"changed": false, "false_condition": "__firewall_previous_replaced | bool", "skip_reason": "Conditional result was False"} TASK [fedora.linux_system_roles.firewall : Configure firewall] ***************** task path: /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:71 Tuesday 10 September 2024 03:23:40 -0400 (0:00:00.058) 0:00:11.176 ***** failed: [managed-node2] (item={'service': 'smtp', 'state': 'enabled'}) => {"ansible_loop_var": "item", "changed": false, "item": {"service": "smtp", "state": "enabled"}, "msg": "No firewall backend could be imported."} failed: [managed-node2] (item={'service': 'smtps', 'state': 'enabled'}) => {"ansible_loop_var": "item", "changed": false, "item": {"service": "smtps", "state": "enabled"}, "msg": "No firewall backend could be imported."} failed: [managed-node2] (item={'service': 'smtp-submission', 'state': 'enabled'}) => {"ansible_loop_var": "item", "changed": false, "item": {"service": "smtp-submission", "state": "enabled"}, "msg": "No firewall backend could be imported."} PLAY RECAP ********************************************************************* managed-node2 : ok=18 changed=1 unreachable=0 failed=1 skipped=12 rescued=0 ignored=0 Tuesday 10 September 2024 03:23:42 -0400 (0:00:01.310) 0:00:12.486 ***** =============================================================================== fedora.linux_system_roles.firewall : Install firewalld ------------------ 4.60s /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:31 Gathering Facts --------------------------------------------------------- 2.28s /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_previous_replaced.yml:2 fedora.linux_system_roles.firewall : Configure firewall ----------------- 1.31s /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:71 fedora.linux_system_roles.firewall : Enable and start firewalld service --- 0.89s /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:28 fedora.linux_system_roles.firewall : Unmask firewalld service ----------- 0.83s /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:22 fedora.linux_system_roles.postfix : Check if system is ostree ----------- 0.54s /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:11 fedora.linux_system_roles.postfix : Get status of package(s) ['postfix'] --- 0.44s /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:16 fedora.linux_system_roles.firewall : Check if transactional-update exists in /sbin --- 0.35s /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:22 fedora.linux_system_roles.firewall : Check if system is ostree ---------- 0.33s /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:10 Run the role with previous=replaced only -------------------------------- 0.07s /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_previous_replaced.yml:5 Ensure the postfix ports status with the firewall role ------------------ 0.07s /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/firewall.yml:3 fedora.linux_system_roles.firewall : Tell firewall module it is able to report changed --- 0.06s /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:55 fedora.linux_system_roles.firewall : Get config files, checksums before and remove --- 0.06s /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:43 fedora.linux_system_roles.firewall : Attempt to stop and disable conflicting services --- 0.06s /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:9 fedora.linux_system_roles.postfix : Set platform/version specific variables --- 0.06s /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/set_facts.yml:20 fedora.linux_system_roles.postfix : Remove package(s) to reset original confs ['postfix'] --- 0.05s /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:23 fedora.linux_system_roles.firewall : Fail if reboot is needed and not set --- 0.05s /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:53 fedora.linux_system_roles.firewall : Collect service facts -------------- 0.04s /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:5 fedora.linux_system_roles.firewall : Check if previous replaced is defined --- 0.04s /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/main.yml:34 fedora.linux_system_roles.firewall : Reboot transactional update systems --- 0.04s /tmp/collections-PRj/ansible_collections/fedora/linux_system_roles/roles/firewall/tasks/firewalld.yml:48