ansible-playbook 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Nov 14 2023, 16:14:06) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] Using /etc/ansible/ansible.cfg as config file [WARNING]: running playbook inside collection fedora.linux_system_roles Skipping callback 'actionable', as we already have a stdout callback. Skipping callback 'counter_enabled', as we already have a stdout callback. Skipping callback 'debug', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'dense', as we already have a stdout callback. Skipping callback 'full_skip', as we already have a stdout callback. Skipping callback 'json', as we already have a stdout callback. Skipping callback 'minimal', as we already have a stdout callback. Skipping callback 'null', as we already have a stdout callback. Skipping callback 'oneline', as we already have a stdout callback. Skipping callback 'selective', as we already have a stdout callback. Skipping callback 'skippy', as we already have a stdout callback. Skipping callback 'stderr', as we already have a stdout callback. Skipping callback 'unixy', as we already have a stdout callback. Skipping callback 'yaml', as we already have a stdout callback. PLAYBOOK: tests_set_banner.yml ************************************************* 1 plays in /tmp/collections-IDa/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_banner.yml PLAY [Set smtpd banner] ******************************************************** TASK [Gathering Facts] ********************************************************* task path: /tmp/collections-IDa/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_banner.yml:1 Tuesday 27 August 2024 09:54:21 -0400 (0:00:00.024) 0:00:00.024 ******** ok: [managed_node1] META: ran handlers TASK [fedora.linux_system_roles.postfix : Install Postfix] ********************* task path: /tmp/collections-IDa/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:2 Tuesday 27 August 2024 09:54:22 -0400 (0:00:01.572) 0:00:01.597 ******** ok: [managed_node1] => { "changed": false, "changes": { "installed": [], "updated": [] }, "rc": 0, "results": [ "All packages providing postfix are up to date", "" ] } TASK [fedora.linux_system_roles.postfix : Enable Postfix] ********************** task path: /tmp/collections-IDa/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:5 Tuesday 27 August 2024 09:54:29 -0400 (0:00:06.569) 0:00:08.166 ******** ok: [managed_node1] => { "changed": false, "enabled": true, "name": "postfix", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2024-08-27 09:51:53 EDT", "ActiveEnterTimestampMonotonic": "20107774", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "syslog.target system.slice systemd-journald.socket basic.target network.target", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Tue 2024-08-27 09:51:52 EDT", "AssertTimestampMonotonic": "18908644", "Before": "multi-user.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "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": "Tue 2024-08-27 09:51:52 EDT", "ConditionTimestampMonotonic": "18908642", "Conflicts": "sendmail.service exim.service shutdown.target", "ControlGroup": "/system.slice/postfix.service", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "Postfix Mail Transport Agent", "DevicePolicy": "auto", "EnvironmentFile": "/etc/sysconfig/network (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "1186", "ExecMainStartTimestamp": "Tue 2024-08-27 09:51:53 EDT", "ExecMainStartTimestampMonotonic": "20107731", "ExecMainStatus": "0", "ExecReload": "{ path=/usr/sbin/postfix ; argv[]=/usr/sbin/postfix reload ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/sbin/postfix ; argv[]=/usr/sbin/postfix start ; ignore_errors=no ; start_time=[Tue 2024-08-27 09:51:52 EDT] ; stop_time=[Tue 2024-08-27 09:51:53 EDT] ; pid=871 ; code=exited ; status=0 }", "ExecStartPre": "{ path=/usr/libexec/postfix/chroot-update ; argv[]=/usr/libexec/postfix/chroot-update ; ignore_errors=yes ; start_time=[Tue 2024-08-27 09:51:52 EDT] ; stop_time=[Tue 2024-08-27 09:51:52 EDT] ; pid=863 ; code=exited ; status=0 }", "ExecStop": "{ path=/usr/sbin/postfix ; argv[]=/usr/sbin/postfix stop ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/postfix.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "postfix.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Tue 2024-08-27 09:51:52 EDT", "InactiveExitTimestampMonotonic": "18909661", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "14311", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "14311", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "1186", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "postfix.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/var/spool/postfix/pid/master.pid", "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": "inherit", "StandardInput": "null", "StandardOutput": "journal", "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": "forking", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Tue 2024-08-27 09:51:53 EDT", "WatchdogTimestampMonotonic": "20107748", "WatchdogUSec": "0" } } TASK [fedora.linux_system_roles.postfix : Backup configuration] **************** task path: /tmp/collections-IDa/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:8 Tuesday 27 August 2024 09:54:30 -0400 (0:00:00.630) 0:00:08.797 ******** changed: [managed_node1] => { "changed": true, "cmd": "cp /etc/postfix/main.cf /etc/postfix/main.cf.`date -Iseconds`", "delta": "0:00:01.006810", "end": "2024-08-27 09:54:31.547412", "rc": 0, "start": "2024-08-27 09:54:30.540602" } TASK [fedora.linux_system_roles.postfix : Add header 1 to configuration file] *** task path: /tmp/collections-IDa/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:12 Tuesday 27 August 2024 09:54:31 -0400 (0:00:01.429) 0:00:10.227 ******** changed: [managed_node1] => { "backup": "", "changed": true } MSG: line added TASK [fedora.linux_system_roles.postfix : Add header 2 to configuration file] *** task path: /tmp/collections-IDa/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:20 Tuesday 27 August 2024 09:54:32 -0400 (0:00:00.442) 0:00:10.669 ******** changed: [managed_node1] => { "backup": "", "changed": true } MSG: line added TASK [fedora.linux_system_roles.postfix : Configure Postfix] ******************* task path: /tmp/collections-IDa/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:28 Tuesday 27 August 2024 09:54:32 -0400 (0:00:00.281) 0:00:10.951 ******** changed: [managed_node1] => (item={u'key': u'smtpd_banner', u'value': u'test'}) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "postconf", "-e", "smtpd_banner=test" ], "delta": "0:00:00.048497", "end": "2024-08-27 09:54:32.620220", "item": { "key": "smtpd_banner", "value": "test" }, "rc": 0, "start": "2024-08-27 09:54:32.571723" } NOTIFIED HANDLER fedora.linux_system_roles.postfix : check postfix for managed_node1 NOTIFIED HANDLER fedora.linux_system_roles.postfix : restart postfix for managed_node1 TASK [Get smtpd banner] ******************************************************** task path: /tmp/collections-IDa/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_banner.yml:11 Tuesday 27 August 2024 09:54:32 -0400 (0:00:00.347) 0:00:11.298 ******** changed: [managed_node1] => { "changed": true, "cmd": [ "postconf", "smtpd_banner" ], "delta": "0:00:01.510532", "end": "2024-08-27 09:54:34.400733", "rc": 0, "start": "2024-08-27 09:54:32.890201" } STDOUT: smtpd_banner = test TASK [assert] ****************************************************************** task path: /tmp/collections-IDa/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_banner.yml:15 Tuesday 27 August 2024 09:54:34 -0400 (0:00:01.778) 0:00:13.077 ******** ok: [managed_node1] => { "changed": false } MSG: All assertions passed RUNNING HANDLER [fedora.linux_system_roles.postfix : check postfix] ************ task path: /tmp/collections-IDa/ansible_collections/fedora/linux_system_roles/roles/postfix/handlers/main.yml:2 Tuesday 27 August 2024 09:54:34 -0400 (0:00:00.033) 0:00:13.111 ******** changed: [managed_node1] => { "changed": true, "cmd": [ "postfix", "check" ], "delta": "0:00:00.224241", "end": "2024-08-27 09:54:34.934079", "rc": 0, "start": "2024-08-27 09:54:34.709838" } RUNNING HANDLER [fedora.linux_system_roles.postfix : restart postfix] ********** task path: /tmp/collections-IDa/ansible_collections/fedora/linux_system_roles/roles/postfix/handlers/main.yml:7 Tuesday 27 August 2024 09:54:34 -0400 (0:00:00.489) 0:00:13.600 ******** changed: [managed_node1] => { "changed": true, "name": "postfix", "state": "started", "status": { "ActiveEnterTimestamp": "Tue 2024-08-27 09:51:53 EDT", "ActiveEnterTimestampMonotonic": "20107774", "ActiveExitTimestampMonotonic": "0", "ActiveState": "active", "After": "syslog.target system.slice systemd-journald.socket basic.target network.target", "AllowIsolate": "no", "AmbientCapabilities": "0", "AssertResult": "yes", "AssertTimestamp": "Tue 2024-08-27 09:51:52 EDT", "AssertTimestampMonotonic": "18908644", "Before": "multi-user.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "18446744073709551615", "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": "Tue 2024-08-27 09:51:52 EDT", "ConditionTimestampMonotonic": "18908642", "Conflicts": "sendmail.service exim.service shutdown.target", "ControlGroup": "/system.slice/postfix.service", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "Postfix Mail Transport Agent", "DevicePolicy": "auto", "EnvironmentFile": "/etc/sysconfig/network (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "1186", "ExecMainStartTimestamp": "Tue 2024-08-27 09:51:53 EDT", "ExecMainStartTimestampMonotonic": "20107731", "ExecMainStatus": "0", "ExecReload": "{ path=/usr/sbin/postfix ; argv[]=/usr/sbin/postfix reload ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart": "{ path=/usr/sbin/postfix ; argv[]=/usr/sbin/postfix start ; ignore_errors=no ; start_time=[Tue 2024-08-27 09:51:52 EDT] ; stop_time=[Tue 2024-08-27 09:51:53 EDT] ; pid=871 ; code=exited ; status=0 }", "ExecStartPre": "{ path=/usr/libexec/postfix/chroot-update ; argv[]=/usr/libexec/postfix/chroot-update ; ignore_errors=yes ; start_time=[Tue 2024-08-27 09:51:52 EDT] ; stop_time=[Tue 2024-08-27 09:51:52 EDT] ; pid=863 ; code=exited ; status=0 }", "ExecStop": "{ path=/usr/sbin/postfix ; argv[]=/usr/sbin/postfix stop ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/usr/lib/systemd/system/postfix.service", "GuessMainPID": "yes", "IOScheduling": "0", "Id": "postfix.service", "IgnoreOnIsolate": "no", "IgnoreOnSnapshot": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic": "0", "InactiveExitTimestamp": "Tue 2024-08-27 09:51:52 EDT", "InactiveExitTimestampMonotonic": "18909661", "JobTimeoutAction": "none", "JobTimeoutUSec": "0", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "18446744073709551615", "LimitCORE": "18446744073709551615", "LimitCPU": "18446744073709551615", "LimitDATA": "18446744073709551615", "LimitFSIZE": "18446744073709551615", "LimitLOCKS": "18446744073709551615", "LimitMEMLOCK": "65536", "LimitMSGQUEUE": "819200", "LimitNICE": "0", "LimitNOFILE": "4096", "LimitNPROC": "14311", "LimitRSS": "18446744073709551615", "LimitRTPRIO": "0", "LimitRTTIME": "18446744073709551615", "LimitSIGPENDING": "14311", "LimitSTACK": "18446744073709551615", "LoadState": "loaded", "MainPID": "1186", "MemoryAccounting": "no", "MemoryCurrent": "18446744073709551615", "MemoryLimit": "18446744073709551615", "MountFlags": "0", "Names": "postfix.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/var/spool/postfix/pid/master.pid", "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": "inherit", "StandardInput": "null", "StandardOutput": "journal", "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": "forking", "UMask": "0022", "UnitFilePreset": "disabled", "UnitFileState": "enabled", "WantedBy": "multi-user.target", "WatchdogTimestamp": "Tue 2024-08-27 09:51:53 EDT", "WatchdogTimestampMonotonic": "20107748", "WatchdogUSec": "0" } } META: ran handlers META: ran handlers PLAY RECAP ********************************************************************* managed_node1 : ok=11 changed=7 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0 Tuesday 27 August 2024 09:54:35 -0400 (0:00:00.732) 0:00:14.332 ******** =============================================================================== fedora.linux_system_roles.postfix : Install Postfix --------------------- 6.57s /tmp/collections-IDa/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:2 Get smtpd banner -------------------------------------------------------- 1.78s /tmp/collections-IDa/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_banner.yml:11 Gathering Facts --------------------------------------------------------- 1.57s /tmp/collections-IDa/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_banner.yml:1 fedora.linux_system_roles.postfix : Backup configuration ---------------- 1.43s /tmp/collections-IDa/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:8 fedora.linux_system_roles.postfix : restart postfix --------------------- 0.73s /tmp/collections-IDa/ansible_collections/fedora/linux_system_roles/roles/postfix/handlers/main.yml:7 fedora.linux_system_roles.postfix : Enable Postfix ---------------------- 0.63s /tmp/collections-IDa/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:5 fedora.linux_system_roles.postfix : check postfix ----------------------- 0.49s /tmp/collections-IDa/ansible_collections/fedora/linux_system_roles/roles/postfix/handlers/main.yml:2 fedora.linux_system_roles.postfix : Add header 1 to configuration file --- 0.44s /tmp/collections-IDa/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:12 fedora.linux_system_roles.postfix : Configure Postfix ------------------- 0.35s /tmp/collections-IDa/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:28 fedora.linux_system_roles.postfix : Add header 2 to configuration file --- 0.28s /tmp/collections-IDa/ansible_collections/fedora/linux_system_roles/roles/postfix/tasks/main.yml:20 assert ------------------------------------------------------------------ 0.03s /tmp/collections-IDa/ansible_collections/fedora/linux_system_roles/tests/postfix/tests_set_banner.yml:15