Execution
Date
17 Apr 2026 11:46:15 +0100
Duration
00:00:04.07
Controller
ssh-gw-4.layershift.com
User
root
Versions
Ansible
2.16.13
ara
1.7.5 / 1.7.5
Python
3.10.10
Summary
1
Hosts
1
Tasks
1
Results
1
Plays
1
Files
0
Records
Task result details
-
StatusFAILED
-
Duration00:00:03.58
-
PlayPlaybook to install postmark and postfix
-
TaskRemove postfix and sendmail
-
Date17 Apr 2026 11:46:19 +0100
-
Module / Actionansible.builtin.shell (/home/ssh-gateway/ansible/kuly/RM10331-deploy_postmark_postfix.yaml:6)
-
Tags
- redeploy
| Field | Value |
|---|---|
| changed |
False |
| cmd |
set -o pipefail dnf -y remove postfix sendmail rm -rf /etc/postfix/ dnf -y install postfix cyrus-sasl-plain s-nail echo -e "\n#Sending all emails through postmark" >> /etc/postfix/main.cf echo "relayhost = [smtp.postmarkapp.com]:587" >> /etc/postfix/main.cf echo "smtp_sasl_auth_enable = yes" >> /etc/postfix/main.cf echo "smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd" >> /etc/postfix/main.cf echo "smtp_sasl_security_options = noanonymous" >> /etc/postfix/main.cf echo "smtp_tls_security_level = may" >> /etc/postfix/main.cf echo "smtp_tls_loglevel = 1" >> /etc/postfix/main.cf echo "smtp_always_send_ehlo = yes" >> /etc/postfix/main.cf echo "[smtp.postmarkapp.com]:587 PM-T-mdmonitor-VLXylaXkYUznVO0nZVOX1:0ZnmCrZdSdpJGPGqoyQ2jukwGTrcyUb8Q5KI" > /etc/postfix/sasl_passwd echo "#end postmark" >> /etc/postfix/main.cf chmod 600 /etc/postfix/sasl_passwd postmap /etc/postfix/sasl_passwd systemctl enable --now postfix.service systemctl --no-pager status postfix.service |
| delta |
0:00:03.110843 |
| end |
2026-04-17 10:46:19.545228 |
| invocation |
{ "module_args": { "_raw_params": "set -o pipefail\ndnf -y remove postfix sendmail\nrm -rf /etc/postfix/\ndnf -y install postfix cyrus-sasl-plain s-nail\necho -e \"\\n#Sending all emails through postmark\" >> /etc/postfix/main.cf\necho \"relayhost = [smtp.postmarkapp.com]:587\" >> /etc/postfix/main.cf\necho \"smtp_sasl_auth_enable = yes\" >> /etc/postfix/main.cf\necho \"smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd\" >> /etc/postfix/main.cf\necho \"smtp_sasl_security_options = noanonymous\" >> /etc/postfix/main.cf\necho \"smtp_tls_security_level = may\" >> /etc/postfix/main.cf\necho \"smtp_tls_loglevel = 1\" >> /etc/postfix/main.cf\necho \"smtp_always_send_ehlo = yes\" >> /etc/postfix/main.cf\necho \"[smtp.postmarkapp.com]:587 PM-T-mdmonitor-VLXylaXkYUznVO0nZVOX1:0ZnmCrZdSdpJGPGqoyQ2jukwGTrcyUb8Q5KI\" > /etc/postfix/sasl_passwd\necho \"#end postmark\" >> /etc/postfix/main.cf\nchmod 600 /etc/postfix/sasl_passwd\npostmap /etc/postfix/sasl_passwd\nsystemctl enable --now postfix.service\nsystemctl --no-pager status postfix.service\n", "_uses_shell": true, "argv": null, "chdir": null, "creates": null, "executable": "/bin/bash", "expand_argument_vars": true, "removes": null, "stdin": null, "stdin_add_newline": true, "strip_empty_ends": true } } |
| msg |
non-zero return code |
| rc |
3 |
| start |
2026-04-17 10:46:16.434385 |
| stderr |
/bin/bash: line 1: dnf: command not found /bin/bash: line 3: dnf: command not found /bin/bash: line 4: /etc/postfix/main.cf: No such file or directory /bin/bash: line 5: /etc/postfix/main.cf: No such file or directory /bin/bash: line 6: /etc/postfix/main.cf: No such file or directory /bin/bash: line 7: /etc/postfix/main.cf: No such file or directory /bin/bash: line 8: /etc/postfix/main.cf: No such file or directory /bin/bash: line 9: /etc/postfix/main.cf: No such file or directory /bin/bash: line 10: /etc/postfix/main.cf: No such file or directory /bin/bash: line 11: /etc/postfix/main.cf: No such file or directory /bin/bash: line 12: /etc/postfix/sasl_passwd: No such file or directory /bin/bash: line 13: /etc/postfix/main.cf: No such file or directory chmod: cannot access ‘/etc/postfix/sasl_passwd’: No such file or directory postmap: fatal: open /etc/postfix/main.cf: No such file or directory Created symlink from /etc/systemd/system/multi-user.target.wants/postfix.service to /usr/lib/systemd/system/postfix.service. Job for postfix.service failed because the control process exited with error code. See "systemctl status postfix.service" and "journalctl -xe" for details. |
| stderr_lines |
[ "/bin/bash: line 1: dnf: command not found", "/bin/bash: line 3: dnf: command not found", "/bin/bash: line 4: /etc/postfix/main.cf: No such file or directory", "/bin/bash: line 5: /etc/postfix/main.cf: No such file or directory", "/bin/bash: line 6: /etc/postfix/main.cf: No such file or directory", "/bin/bash: line 7: /etc/postfix/main.cf: No such file or directory", "/bin/bash: line 8: /etc/postfix/main.cf: No such file or directory", "/bin/bash: line 9: /etc/postfix/main.cf: No such file or directory", "/bin/bash: line 10: /etc/postfix/main.cf: No such file or directory", "/bin/bash: line 11: /etc/postfix/main.cf: No such file or directory", "/bin/bash: line 12: /etc/postfix/sasl_passwd: No such file or directory", "/bin/bash: line 13: /etc/postfix/main.cf: No such file or directory", "chmod: cannot access \u2018/etc/postfix/sasl_passwd\u2019: No such file or directory", "postmap: fatal: open /etc/postfix/main.cf: No such file or directory", "Created symlink from /etc/systemd/system/multi-user.target.wants/postfix.service to /usr/lib/systemd/system/postfix.service.", "Job for postfix.service failed because the control process exited with error code. See \"systemctl status postfix.service\" and \"journalctl -xe\" for details." ] |
| stdout |
● postfix.service - Postfix Mail Transport Agent Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Fri 2026-04-17 10:46:19 UTC; 3ms ago Process: 312796 ExecStart=/usr/sbin/postfix start (code=exited, status=1/FAILURE) Process: 312793 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS) Process: 312761 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=0/SUCCESS) Apr 17 10:46:17 hna11.j.layershift.co.uk systemd[1]: Starting Postfix Mail Transport Agent... Apr 17 10:46:17 hna11.j.layershift.co.uk aliasesdb[312761]: /usr/sbin/postconf: fatal: open /etc/postfix/main.cf: No such file or directory Apr 17 10:46:18 hna11.j.layershift.co.uk sendmail[312788]: alias database /etc/aliases rebuilt by root Apr 17 10:46:18 hna11.j.layershift.co.uk sendmail[312788]: /etc/aliases: 77 aliases, longest 10 bytes, 778 bytes total Apr 17 10:46:18 hna11.j.layershift.co.uk aliasesdb[312761]: /etc/aliases: 77 aliases, longest 10 bytes, 778 bytes total Apr 17 10:46:18 hna11.j.layershift.co.uk postfix[312796]: fatal: open /etc/postfix/main.cf: No such file or directory Apr 17 10:46:19 hna11.j.layershift.co.uk systemd[1]: postfix.service: control process exited, code=exited status=1 Apr 17 10:46:19 hna11.j.layershift.co.uk systemd[1]: Failed to start Postfix Mail Transport Agent. Apr 17 10:46:19 hna11.j.layershift.co.uk systemd[1]: Unit postfix.service entered failed state. Apr 17 10:46:19 hna11.j.layershift.co.uk systemd[1]: postfix.service failed. |
| stdout_lines |
[ "\u25cf postfix.service - Postfix Mail Transport Agent", " Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: disabled)", " Active: failed (Result: exit-code) since Fri 2026-04-17 10:46:19 UTC; 3ms ago", " Process: 312796 ExecStart=/usr/sbin/postfix start (code=exited, status=1/FAILURE)", " Process: 312793 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS)", " Process: 312761 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=0/SUCCESS)", "", "Apr 17 10:46:17 hna11.j.layershift.co.uk systemd[1]: Starting Postfix Mail Transport Agent...", "Apr 17 10:46:17 hna11.j.layershift.co.uk aliasesdb[312761]: /usr/sbin/postconf: fatal: open /etc/postfix/main.cf: No such file or directory", "Apr 17 10:46:18 hna11.j.layershift.co.uk sendmail[312788]: alias database /etc/aliases rebuilt by root", "Apr 17 10:46:18 hna11.j.layershift.co.uk sendmail[312788]: /etc/aliases: 77 aliases, longest 10 bytes, 778 bytes total", "Apr 17 10:46:18 hna11.j.layershift.co.uk aliasesdb[312761]: /etc/aliases: 77 aliases, longest 10 bytes, 778 bytes total", "Apr 17 10:46:18 hna11.j.layershift.co.uk postfix[312796]: fatal: open /etc/postfix/main.cf: No such file or directory", "Apr 17 10:46:19 hna11.j.layershift.co.uk systemd[1]: postfix.service: control process exited, code=exited status=1", "Apr 17 10:46:19 hna11.j.layershift.co.uk systemd[1]: Failed to start Postfix Mail Transport Agent.", "Apr 17 10:46:19 hna11.j.layershift.co.uk systemd[1]: Unit postfix.service entered failed state.", "Apr 17 10:46:19 hna11.j.layershift.co.uk systemd[1]: postfix.service failed." ] |