{"id":958876,"status":"failed","playbook":{"id":5471,"items":{"plays":1,"tasks":1,"results":1,"hosts":1,"files":1,"records":0},"arguments":{"version":null,"verbosity":2,"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:43.068930+01:00","ended":"2026-04-17T11:46:47.135127+01:00","duration":"00:00:04.066197","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":6005,"items":{"tasks":1,"results":1},"started":"2026-04-17T11:46:43.201993+01:00","ended":"2026-04-17T11:46:47.035000+01:00","duration":"00:00:03.833007","name":"Playbook to install postmark and postfix","status":"completed"},"task":{"id":13338,"items":{"results":1},"path":"/home/ssh-gateway/ansible/kuly/RM10331-deploy_postmark_postfix.yaml","tags":["redeploy"],"started":"2026-04-17T11:46:43.254936+01:00","ended":"2026-04-17T11:46:46.984840+01:00","duration":"00:00:03.729904","name":"Remove postfix and sendmail","uuid":"001851d0-75dc-bbdc-4574-000000000023","action":"ansible.builtin.shell","lineno":6,"handler":false,"status":"failed","warnings":[],"deprecations":[],"exceptions":[],"file":7629},"host":{"id":332406,"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.096111","end":"2026-04-17 10:46:46.910901","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:43.814790","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\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","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:46 UTC; 3ms ago\n  Process: 313692 ExecStart=/usr/sbin/postfix start (code=exited, status=1/FAILURE)\n  Process: 313689 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS)\n  Process: 313359 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=0/SUCCESS)\n\nApr 17 10:46:44 hna11.j.layershift.co.uk systemd[1]: Starting Postfix Mail Transport Agent...\nApr 17 10:46:44 hna11.j.layershift.co.uk aliasesdb[313359]: /usr/sbin/postconf: fatal: open /etc/postfix/main.cf: No such file or directory\nApr 17 10:46:45 hna11.j.layershift.co.uk sendmail[313685]: alias database /etc/aliases rebuilt by root\nApr 17 10:46:45 hna11.j.layershift.co.uk sendmail[313685]: /etc/aliases: 77 aliases, longest 10 bytes, 778 bytes total\nApr 17 10:46:45 hna11.j.layershift.co.uk aliasesdb[313359]: /etc/aliases: 77 aliases, longest 10 bytes, 778 bytes total\nApr 17 10:46:45 hna11.j.layershift.co.uk postfix[313692]: fatal: open /etc/postfix/main.cf: No such file or directory\nApr 17 10:46:46 hna11.j.layershift.co.uk systemd[1]: postfix.service: control process exited, code=exited status=1\nApr 17 10:46:46 hna11.j.layershift.co.uk systemd[1]: Failed to start Postfix Mail Transport Agent.\nApr 17 10:46:46 hna11.j.layershift.co.uk systemd[1]: Unit postfix.service entered failed state.\nApr 17 10:46:46 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:46 UTC; 3ms ago","  Process: 313692 ExecStart=/usr/sbin/postfix start (code=exited, status=1/FAILURE)","  Process: 313689 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS)","  Process: 313359 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=0/SUCCESS)","","Apr 17 10:46:44 hna11.j.layershift.co.uk systemd[1]: Starting Postfix Mail Transport Agent...","Apr 17 10:46:44 hna11.j.layershift.co.uk aliasesdb[313359]: /usr/sbin/postconf: fatal: open /etc/postfix/main.cf: No such file or directory","Apr 17 10:46:45 hna11.j.layershift.co.uk sendmail[313685]: alias database /etc/aliases rebuilt by root","Apr 17 10:46:45 hna11.j.layershift.co.uk sendmail[313685]: /etc/aliases: 77 aliases, longest 10 bytes, 778 bytes total","Apr 17 10:46:45 hna11.j.layershift.co.uk aliasesdb[313359]: /etc/aliases: 77 aliases, longest 10 bytes, 778 bytes total","Apr 17 10:46:45 hna11.j.layershift.co.uk postfix[313692]: fatal: open /etc/postfix/main.cf: No such file or directory","Apr 17 10:46:46 hna11.j.layershift.co.uk systemd[1]: postfix.service: control process exited, code=exited status=1","Apr 17 10:46:46 hna11.j.layershift.co.uk systemd[1]: Failed to start Postfix Mail Transport Agent.","Apr 17 10:46:46 hna11.j.layershift.co.uk systemd[1]: Unit postfix.service entered failed state.","Apr 17 10:46:46 hna11.j.layershift.co.uk systemd[1]: postfix.service failed."]},"created":"2026-04-17T11:46:46.975984+01:00","updated":"2026-04-17T11:46:46.976014+01:00","started":"2026-04-17T11:46:43.304961+01:00","ended":"2026-04-17T11:46:46.919542+01:00","duration":"00:00:03.614581","changed":false,"ignore_errors":false}