{"id":958881,"status":"ok","playbook":{"id":5474,"items":{"plays":1,"tasks":2,"results":2,"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":"hna13.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":286,"name":"subset:hna13.j.layershift.co.uk"}],"started":"2026-04-17T11:48:16.657394+01:00","ended":"2026-04-17T11:48:26.605108+01:00","duration":"00:00:09.947714","name":null,"ansible_version":"2.16.13","client_version":"1.7.5","python_version":"3.10.10","server_version":"1.7.5","status":"completed","path":"/home/ssh-gateway/ansible/kuly/RM10331-deploy_postmark_postfix.yaml","controller":"ssh-gw-4.layershift.com","user":"root"},"play":{"id":6008,"items":{"tasks":2,"results":2},"started":"2026-04-17T11:48:16.898728+01:00","ended":"2026-04-17T11:48:26.509084+01:00","duration":"00:00:09.610356","name":"Playbook to install postmark and postfix","status":"completed"},"task":{"id":13343,"items":{"results":1},"path":"/home/ssh-gateway/ansible/kuly/RM10331-deploy_postmark_postfix.yaml","tags":["redeploy"],"started":"2026-04-17T11:48:16.951954+01:00","ended":"2026-04-17T11:48:25.740562+01:00","duration":"00:00:08.788608","name":"Remove postfix and sendmail","uuid":"001851d0-75dc-818e-d9bf-000000000023","action":"ansible.builtin.shell","lineno":6,"handler":false,"status":"completed","warnings":[],"deprecations":[],"exceptions":[],"file":7632},"host":{"id":332409,"name":"hna13.j.layershift.co.uk","changed":0,"failed":0,"ok":2,"skipped":0,"unreachable":0},"delegated_to":[],"content":{"changed":false,"cmd":"set -o pipefail\nyum -y remove postfix sendmail\nrm -rf /etc/postfix/\nyum -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:08.254085","end":"2026-04-17 10:48:25.687678","invocation":{"module_args":{"_raw_params":"set -o pipefail\nyum -y remove postfix sendmail\nrm -rf /etc/postfix/\nyum -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":"","rc":0,"start":"2026-04-17 10:48:17.433593","stderr":"Created symlink from /etc/systemd/system/multi-user.target.wants/postfix.service to /usr/lib/systemd/system/postfix.service.","stderr_lines":["Created symlink from /etc/systemd/system/multi-user.target.wants/postfix.service to /usr/lib/systemd/system/postfix.service."],"stdout":"Loaded plugins: fastestmirror, langpacks, priorities, va, virtuozzo, vzlinux,\n              : yum-plugin-readykernel, yum-plugin-rk-repo\nResolving Dependencies\n--> Running transaction check\n---> Package postfix.x86_64 2:2.10.1-9.vl7 will be erased\n---> Package sendmail.x86_64 0:8.14.7-6.vl7 will be erased\n--> Processing Dependency: sendmail = 8.14.7-6.vl7 for package: sendmail-cf-8.14.7-6.vl7.noarch\n--> Running transaction check\n---> Package sendmail-cf.noarch 0:8.14.7-6.vl7 will be erased\n--> Finished Dependency Resolution\nLoading mirror speeds from cached hostfile\n * epel: d2lzkl7pfhq30w.cloudfront.net\n * jelastic-app: repo-mirror2.jelastic.com\n\nDependencies Resolved\n\n================================================================================\n Package            Arch          Version                Repository        Size\n================================================================================\nRemoving:\n postfix            x86_64        2:2.10.1-9.vl7         installed         12 M\n sendmail           x86_64        8.14.7-6.vl7           installed        1.7 M\nRemoving for dependencies:\n sendmail-cf        noarch        8.14.7-6.vl7           installed        938 k\n\nTransaction Summary\n================================================================================\nRemove  2 Packages (+1 Dependent package)\n\nInstalled size: 15 M\nDownloading packages:\nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n  Erasing    : sendmail-cf-8.14.7-6.vl7.noarch                              1/3 \n  Erasing    : sendmail-8.14.7-6.vl7.x86_64                                 2/3 \n  Erasing    : 2:postfix-2.10.1-9.vl7.x86_64                                3/3 \n  Verifying  : sendmail-8.14.7-6.vl7.x86_64                                 1/3 \n  Verifying  : sendmail-cf-8.14.7-6.vl7.noarch                              2/3 \n  Verifying  : 2:postfix-2.10.1-9.vl7.x86_64                                3/3 \n\nRemoved:\n  postfix.x86_64 2:2.10.1-9.vl7          sendmail.x86_64 0:8.14.7-6.vl7         \n\nDependency Removed:\n  sendmail-cf.noarch 0:8.14.7-6.vl7                                             \n\nComplete!\nLoaded plugins: fastestmirror, langpacks, priorities, va, virtuozzo, vzlinux,\n              : yum-plugin-readykernel, yum-plugin-rk-repo\nLoading mirror speeds from cached hostfile\n * epel: d2lzkl7pfhq30w.cloudfront.net\n * jelastic-app: repo-mirror2.jelastic.com\n1020 packages excluded due to repository priority protections\nPackage cyrus-sasl-plain-2.1.26-24.vl7.x86_64 already installed and latest version\nResolving Dependencies\n--> Running transaction check\n---> Package postfix.x86_64 2:2.10.1-9.vl7 will be installed\n---> Package s-nail.x86_64 0:14.9.23-1.el7 will be installed\n--> Processing Dependency: libidn2.so.0(IDN2_0.0.0)(64bit) for package: s-nail-14.9.23-1.el7.x86_64\n--> Processing Dependency: libidn2.so.0()(64bit) for package: s-nail-14.9.23-1.el7.x86_64\n--> Running transaction check\n---> Package libidn2.x86_64 0:2.3.7-1.el7 will be installed\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package      Arch        Version                Repository                Size\n================================================================================\nInstalling:\n postfix      x86_64      2:2.10.1-9.vl7         virtuozzolinux-base      2.4 M\n s-nail       x86_64      14.9.23-1.el7          epel                     574 k\nInstalling for dependencies:\n libidn2      x86_64      2.3.7-1.el7            epel                     161 k\n\nTransaction Summary\n================================================================================\nInstall  2 Packages (+1 Dependent package)\n\nTotal download size: 3.2 M\nInstalled size: 14 M\nDownloading packages:\n--------------------------------------------------------------------------------\nTotal                                              5.4 MB/s | 3.2 MB  00:00     \nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n  Installing : libidn2-2.3.7-1.el7.x86_64                                   1/3 \n  Installing : s-nail-14.9.23-1.el7.x86_64                                  2/3 \n  Installing : 2:postfix-2.10.1-9.vl7.x86_64                                3/3 \n  Verifying  : s-nail-14.9.23-1.el7.x86_64                                  1/3 \n  Verifying  : 2:postfix-2.10.1-9.vl7.x86_64                                2/3 \n  Verifying  : libidn2-2.3.7-1.el7.x86_64                                   3/3 \n\nInstalled:\n  postfix.x86_64 2:2.10.1-9.vl7          s-nail.x86_64 0:14.9.23-1.el7         \n\nDependency Installed:\n  libidn2.x86_64 0:2.3.7-1.el7                                                  \n\nComplete!\n\u25cf postfix.service - Postfix Mail Transport Agent\n   Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: disabled)\n   Active: active (running) since Fri 2026-04-17 10:48:25 UTC; 2ms ago\n  Process: 179949 ExecStart=/usr/sbin/postfix start (code=exited, status=0/SUCCESS)\n  Process: 179946 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS)\n  Process: 179932 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=0/SUCCESS)\n Main PID: 180020 (master)\n    Tasks: 3\n   Memory: 9.5M\n   CGroup: /system.slice/postfix.service\n           \u251c\u2500180020 /usr/libexec/postfix/master -w\n           \u251c\u2500180021 pickup -l -t unix -u\n           \u2514\u2500180022 qmgr -l -t unix -u\n\nApr 17 10:48:25 hna13.j.layershift.co.uk systemd[1]: Starting Postfix Mail Transport Agent...\nApr 17 10:48:25 hna13.j.layershift.co.uk postfix/postfix-script[180018]: starting the Postfix mail system\nApr 17 10:48:25 hna13.j.layershift.co.uk postfix/master[180020]: daemon started -- version 2.10.1, configuration /etc/postfix\nApr 17 10:48:25 hna13.j.layershift.co.uk systemd[1]: Started Postfix Mail Transport Agent.","stdout_lines":["Loaded plugins: fastestmirror, langpacks, priorities, va, virtuozzo, vzlinux,","              : yum-plugin-readykernel, yum-plugin-rk-repo","Resolving Dependencies","--> Running transaction check","---> Package postfix.x86_64 2:2.10.1-9.vl7 will be erased","---> Package sendmail.x86_64 0:8.14.7-6.vl7 will be erased","--> Processing Dependency: sendmail = 8.14.7-6.vl7 for package: sendmail-cf-8.14.7-6.vl7.noarch","--> Running transaction check","---> Package sendmail-cf.noarch 0:8.14.7-6.vl7 will be erased","--> Finished Dependency Resolution","Loading mirror speeds from cached hostfile"," * epel: d2lzkl7pfhq30w.cloudfront.net"," * jelastic-app: repo-mirror2.jelastic.com","","Dependencies Resolved","","================================================================================"," Package            Arch          Version                Repository        Size","================================================================================","Removing:"," postfix            x86_64        2:2.10.1-9.vl7         installed         12 M"," sendmail           x86_64        8.14.7-6.vl7           installed        1.7 M","Removing for dependencies:"," sendmail-cf        noarch        8.14.7-6.vl7           installed        938 k","","Transaction Summary","================================================================================","Remove  2 Packages (+1 Dependent package)","","Installed size: 15 M","Downloading packages:","Running transaction check","Running transaction test","Transaction test succeeded","Running transaction","  Erasing    : sendmail-cf-8.14.7-6.vl7.noarch                              1/3 ","  Erasing    : sendmail-8.14.7-6.vl7.x86_64                                 2/3 ","  Erasing    : 2:postfix-2.10.1-9.vl7.x86_64                                3/3 ","  Verifying  : sendmail-8.14.7-6.vl7.x86_64                                 1/3 ","  Verifying  : sendmail-cf-8.14.7-6.vl7.noarch                              2/3 ","  Verifying  : 2:postfix-2.10.1-9.vl7.x86_64                                3/3 ","","Removed:","  postfix.x86_64 2:2.10.1-9.vl7          sendmail.x86_64 0:8.14.7-6.vl7         ","","Dependency Removed:","  sendmail-cf.noarch 0:8.14.7-6.vl7                                             ","","Complete!","Loaded plugins: fastestmirror, langpacks, priorities, va, virtuozzo, vzlinux,","              : yum-plugin-readykernel, yum-plugin-rk-repo","Loading mirror speeds from cached hostfile"," * epel: d2lzkl7pfhq30w.cloudfront.net"," * jelastic-app: repo-mirror2.jelastic.com","1020 packages excluded due to repository priority protections","Package cyrus-sasl-plain-2.1.26-24.vl7.x86_64 already installed and latest version","Resolving Dependencies","--> Running transaction check","---> Package postfix.x86_64 2:2.10.1-9.vl7 will be installed","---> Package s-nail.x86_64 0:14.9.23-1.el7 will be installed","--> Processing Dependency: libidn2.so.0(IDN2_0.0.0)(64bit) for package: s-nail-14.9.23-1.el7.x86_64","--> Processing Dependency: libidn2.so.0()(64bit) for package: s-nail-14.9.23-1.el7.x86_64","--> Running transaction check","---> Package libidn2.x86_64 0:2.3.7-1.el7 will be installed","--> Finished Dependency Resolution","","Dependencies Resolved","","================================================================================"," Package      Arch        Version                Repository                Size","================================================================================","Installing:"," postfix      x86_64      2:2.10.1-9.vl7         virtuozzolinux-base      2.4 M"," s-nail       x86_64      14.9.23-1.el7          epel                     574 k","Installing for dependencies:"," libidn2      x86_64      2.3.7-1.el7            epel                     161 k","","Transaction Summary","================================================================================","Install  2 Packages (+1 Dependent package)","","Total download size: 3.2 M","Installed size: 14 M","Downloading packages:","--------------------------------------------------------------------------------","Total                                              5.4 MB/s | 3.2 MB  00:00     ","Running transaction check","Running transaction test","Transaction test succeeded","Running transaction","  Installing : libidn2-2.3.7-1.el7.x86_64                                   1/3 ","  Installing : s-nail-14.9.23-1.el7.x86_64                                  2/3 ","  Installing : 2:postfix-2.10.1-9.vl7.x86_64                                3/3 ","  Verifying  : s-nail-14.9.23-1.el7.x86_64                                  1/3 ","  Verifying  : 2:postfix-2.10.1-9.vl7.x86_64                                2/3 ","  Verifying  : libidn2-2.3.7-1.el7.x86_64                                   3/3 ","","Installed:","  postfix.x86_64 2:2.10.1-9.vl7          s-nail.x86_64 0:14.9.23-1.el7         ","","Dependency Installed:","  libidn2.x86_64 0:2.3.7-1.el7                                                  ","","Complete!","\u25cf postfix.service - Postfix Mail Transport Agent","   Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: disabled)","   Active: active (running) since Fri 2026-04-17 10:48:25 UTC; 2ms ago","  Process: 179949 ExecStart=/usr/sbin/postfix start (code=exited, status=0/SUCCESS)","  Process: 179946 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS)","  Process: 179932 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=0/SUCCESS)"," Main PID: 180020 (master)","    Tasks: 3","   Memory: 9.5M","   CGroup: /system.slice/postfix.service","           \u251c\u2500180020 /usr/libexec/postfix/master -w","           \u251c\u2500180021 pickup -l -t unix -u","           \u2514\u2500180022 qmgr -l -t unix -u","","Apr 17 10:48:25 hna13.j.layershift.co.uk systemd[1]: Starting Postfix Mail Transport Agent...","Apr 17 10:48:25 hna13.j.layershift.co.uk postfix/postfix-script[180018]: starting the Postfix mail system","Apr 17 10:48:25 hna13.j.layershift.co.uk postfix/master[180020]: daemon started -- version 2.10.1, configuration /etc/postfix","Apr 17 10:48:25 hna13.j.layershift.co.uk systemd[1]: Started Postfix Mail Transport Agent."]},"created":"2026-04-17T11:48:25.732509+01:00","updated":"2026-04-17T11:48:25.732535+01:00","started":"2026-04-17T11:48:17.000742+01:00","ended":"2026-04-17T11:48:25.714267+01:00","duration":"00:00:08.713525","changed":false,"ignore_errors":false}