{"id":958875,"status":"failed","playbook":{"id":5470,"items":{"plays":1,"tasks":1,"results":1,"hosts":1,"files":1,"records":0},"arguments":{"version":null,"verbosity":0,"private_key_file":"/home/ssh-gateway/.ssh/id_rsa","remote_user":"root","connection":"ssh","timeout":null,"ssh_common_args":null,"sftp_extra_args":null,"scp_extra_args":null,"ssh_extra_args":null,"ask_pass":false,"connection_password_file":null,"force_handlers":false,"flush_cache":false,"become":false,"become_method":"sudo","become_user":null,"become_ask_pass":false,"become_password_file":null,"tags":["all"],"skip_tags":[],"check":false,"diff":false,"inventory":["/home/ssh-gateway/ansible/kuly/hosts-jelastic"],"listhosts":false,"subset":"hna11.j.layershift.co.uk","extra_vars":"Not saved by ARA as configured by 'ignored_arguments'","vault_ids":[],"ask_vault_pass":false,"vault_password_files":[],"forks":20,"module_path":null,"syntax":false,"listtasks":false,"listtags":false,"step":false,"start_at_task":null,"args":["RM10331-deploy_postmark_postfix.yaml"]},"labels":[{"id":1,"name":"remote_user:root"},{"id":2,"name":"check:False"},{"id":3,"name":"tags:all"},{"id":284,"name":"subset:hna11.j.layershift.co.uk"}],"started":"2026-04-17T11:46:15.711158+01:00","ended":"2026-04-17T11:46:19.786574+01:00","duration":"00:00:04.075416","name":null,"ansible_version":"2.16.13","client_version":"1.7.5","python_version":"3.10.10","server_version":"1.7.5","status":"failed","path":"/home/ssh-gateway/ansible/kuly/RM10331-deploy_postmark_postfix.yaml","controller":"ssh-gw-4.layershift.com","user":"root"},"play":{"id":6004,"items":{"tasks":1,"results":1},"started":"2026-04-17T11:46:15.861123+01:00","ended":"2026-04-17T11:46:19.685290+01:00","duration":"00:00:03.824167","name":"Playbook to install postmark and postfix","status":"completed"},"task":{"id":13337,"items":{"results":1},"path":"/home/ssh-gateway/ansible/kuly/RM10331-deploy_postmark_postfix.yaml","tags":["redeploy"],"started":"2026-04-17T11:46:15.918580+01:00","ended":"2026-04-17T11:46:19.632536+01:00","duration":"00:00:03.713956","name":"Remove postfix and sendmail","uuid":"001851d0-75dc-2b91-819a-000000000023","action":"ansible.builtin.shell","lineno":6,"handler":false,"status":"failed","warnings":[],"deprecations":[],"exceptions":[],"file":7628},"host":{"id":332405,"name":"hna11.j.layershift.co.uk","changed":0,"failed":1,"ok":0,"skipped":0,"unreachable":0},"delegated_to":[],"content":{"changed":false,"cmd":"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","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\n/bin/bash: line 3: dnf: command not found\n/bin/bash: line 4: /etc/postfix/main.cf: No such file or directory\n/bin/bash: line 5: /etc/postfix/main.cf: No such file or directory\n/bin/bash: line 6: /etc/postfix/main.cf: No such file or directory\n/bin/bash: line 7: /etc/postfix/main.cf: No such file or directory\n/bin/bash: line 8: /etc/postfix/main.cf: No such file or directory\n/bin/bash: line 9: /etc/postfix/main.cf: No such file or directory\n/bin/bash: line 10: /etc/postfix/main.cf: No such file or directory\n/bin/bash: line 11: /etc/postfix/main.cf: No such file or directory\n/bin/bash: line 12: /etc/postfix/sasl_passwd: No such file or directory\n/bin/bash: line 13: /etc/postfix/main.cf: No such file or directory\nchmod: cannot access \u2018/etc/postfix/sasl_passwd\u2019: No such file or directory\npostmap: fatal: open /etc/postfix/main.cf: No such file or directory\nCreated symlink from /etc/systemd/system/multi-user.target.wants/postfix.service to /usr/lib/systemd/system/postfix.service.\nJob 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":"\u25cf postfix.service - Postfix Mail Transport Agent\n   Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: disabled)\n   Active: failed (Result: exit-code) since Fri 2026-04-17 10:46:19 UTC; 3ms ago\n  Process: 312796 ExecStart=/usr/sbin/postfix start (code=exited, status=1/FAILURE)\n  Process: 312793 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS)\n  Process: 312761 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=0/SUCCESS)\n\nApr 17 10:46:17 hna11.j.layershift.co.uk systemd[1]: Starting Postfix Mail Transport Agent...\nApr 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\nApr 17 10:46:18 hna11.j.layershift.co.uk sendmail[312788]: alias database /etc/aliases rebuilt by root\nApr 17 10:46:18 hna11.j.layershift.co.uk sendmail[312788]: /etc/aliases: 77 aliases, longest 10 bytes, 778 bytes total\nApr 17 10:46:18 hna11.j.layershift.co.uk aliasesdb[312761]: /etc/aliases: 77 aliases, longest 10 bytes, 778 bytes total\nApr 17 10:46:18 hna11.j.layershift.co.uk postfix[312796]: fatal: open /etc/postfix/main.cf: No such file or directory\nApr 17 10:46:19 hna11.j.layershift.co.uk systemd[1]: postfix.service: control process exited, code=exited status=1\nApr 17 10:46:19 hna11.j.layershift.co.uk systemd[1]: Failed to start Postfix Mail Transport Agent.\nApr 17 10:46:19 hna11.j.layershift.co.uk systemd[1]: Unit postfix.service entered failed state.\nApr 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."]},"created":"2026-04-17T11:46:19.621063+01:00","updated":"2026-04-17T11:46:19.621093+01:00","started":"2026-04-17T11:46:15.971781+01:00","ended":"2026-04-17T11:46:19.556614+01:00","duration":"00:00:03.584833","changed":false,"ignore_errors":false}