{"id":951608,"status":"ok","playbook":{"id":5397,"items":{"plays":1,"tasks":2,"results":50,"hosts":25,"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-kvm-nodes"],"listhosts":false,"subset":null,"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"}],"started":"2026-03-20T09:02:32.599520Z","ended":"2026-03-20T09:02:54.765589Z","duration":"00:00:22.166069","name":null,"ansible_version":"2.16.13","client_version":"1.7.4","python_version":"3.10.10","server_version":"1.7.4","status":"completed","path":"/home/ssh-gateway/ansible/kuly/RM10331-deploy_postmark_postfix.yaml","controller":"ssh-gw-4.layershift.com","user":"root"},"play":{"id":5931,"items":{"tasks":2,"results":50},"started":"2026-03-20T09:02:32.737855Z","ended":"2026-03-20T09:02:53.435752Z","duration":"00:00:20.697897","name":"Playbook to install postmark and postfix","status":"completed"},"task":{"id":13226,"items":{"results":25},"path":"/home/ssh-gateway/ansible/kuly/RM10331-deploy_postmark_postfix.yaml","tags":["redeploy"],"started":"2026-03-20T09:02:32.790453Z","ended":"2026-03-20T09:02:51.558542Z","duration":"00:00:18.768089","name":"Remove postfix and sendmail","uuid":"001851d0-75dc-03ce-15af-00000000001c","action":"ansible.builtin.shell","lineno":6,"handler":false,"status":"completed","warnings":[],"deprecations":[],"exceptions":[],"file":7555},"host":{"id":329219,"name":"kvm021","changed":0,"failed":0,"ok":2,"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:08.083492","end":"2026-03-20 09:02:42.365287","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":"","rc":0,"start":"2026-03-20 09:02:34.281795","stderr":"Created symlink /etc/systemd/system/multi-user.target.wants/postfix.service \u2192 /usr/lib/systemd/system/postfix.service.","stderr_lines":["Created symlink /etc/systemd/system/multi-user.target.wants/postfix.service \u2192 /usr/lib/systemd/system/postfix.service."],"stdout":"No match for argument: sendmail\nDependencies resolved.\n================================================================================\n Package         Architecture   Version                Repository          Size\n================================================================================\nRemoving:\n postfix         x86_64         2:3.5.25-1.el9         @appstream         4.4 M\n\nTransaction Summary\n================================================================================\nRemove  1 Package\n\nFreed space: 4.4 M\nRunning transaction check\nTransaction check succeeded.\nRunning transaction test\nTransaction test succeeded.\nRunning transaction\n  Preparing        :                                                        1/1 \n  Running scriptlet: postfix-2:3.5.25-1.el9.x86_64                          1/1 \n  Erasing          : postfix-2:3.5.25-1.el9.x86_64                          1/1 \n  Running scriptlet: postfix-2:3.5.25-1.el9.x86_64                          1/1 \n  Verifying        : postfix-2:3.5.25-1.el9.x86_64                          1/1 \n\nRemoved:\n  postfix-2:3.5.25-1.el9.x86_64                                                 \n\nComplete!\nLast metadata expiration check: 0:23:23 ago on Fri 20 Mar 2026 08:39:13 UTC.\nPackage cyrus-sasl-plain-2.1.27-21.el9.x86_64 is already installed.\nPackage s-nail-14.9.22-9.el9_7.x86_64 is already installed.\nDependencies resolved.\n================================================================================\n Package                Arch        Version                Repository      Size\n================================================================================\nInstalling:\n postfix                x86_64      2:3.5.25-1.el9         appstream      1.5 M\nUpgrading:\n cyrus-sasl             x86_64      2.1.27-22.el9          baseos          69 k\n cyrus-sasl-gssapi      x86_64      2.1.27-22.el9          baseos          24 k\n cyrus-sasl-lib         x86_64      2.1.27-22.el9          baseos         762 k\n cyrus-sasl-plain       x86_64      2.1.27-22.el9          baseos          21 k\n\nTransaction Summary\n================================================================================\nInstall  1 Package\nUpgrade  4 Packages\n\nTotal download size: 2.3 M\nDownloading Packages:\n(1/5): cyrus-sasl-gssapi-2.1.27-22.el9.x86_64.r 1.1 MB/s |  24 kB     00:00    \n(2/5): cyrus-sasl-2.1.27-22.el9.x86_64.rpm      2.4 MB/s |  69 kB     00:00    \n(3/5): cyrus-sasl-plain-2.1.27-22.el9.x86_64.rp 2.9 MB/s |  21 kB     00:00    \n(4/5): cyrus-sasl-lib-2.1.27-22.el9.x86_64.rpm   20 MB/s | 762 kB     00:00    \n(5/5): postfix-3.5.25-1.el9.x86_64.rpm           21 MB/s | 1.5 MB     00:00    \n--------------------------------------------------------------------------------\nTotal                                           3.6 MB/s | 2.3 MB     00:00     \nRunning transaction check\nTransaction check succeeded.\nRunning transaction test\nTransaction test succeeded.\nRunning transaction\n  Preparing        :                                                        1/1 \n  Upgrading        : cyrus-sasl-lib-2.1.27-22.el9.x86_64                    1/9 \n  Running scriptlet: postfix-2:3.5.25-1.el9.x86_64                          2/9 \n  Installing       : postfix-2:3.5.25-1.el9.x86_64                          2/9 \n  Running scriptlet: postfix-2:3.5.25-1.el9.x86_64                          2/9 \n  Running scriptlet: cyrus-sasl-2.1.27-22.el9.x86_64                        3/9 \n  Upgrading        : cyrus-sasl-2.1.27-22.el9.x86_64                        3/9 \n  Running scriptlet: cyrus-sasl-2.1.27-22.el9.x86_64                        3/9 \n  Upgrading        : cyrus-sasl-gssapi-2.1.27-22.el9.x86_64                 4/9 \n  Upgrading        : cyrus-sasl-plain-2.1.27-22.el9.x86_64                  5/9 \n  Running scriptlet: cyrus-sasl-2.1.27-21.el9.x86_64                        6/9 \n  Cleanup          : cyrus-sasl-2.1.27-21.el9.x86_64                        6/9 \n  Running scriptlet: cyrus-sasl-2.1.27-21.el9.x86_64                        6/9 \n  Cleanup          : cyrus-sasl-plain-2.1.27-21.el9.x86_64                  7/9 \n  Cleanup          : cyrus-sasl-gssapi-2.1.27-21.el9.x86_64                 8/9 \n  Cleanup          : cyrus-sasl-lib-2.1.27-21.el9.x86_64                    9/9 \n  Running scriptlet: cyrus-sasl-lib-2.1.27-21.el9.x86_64                    9/9 \n/usr/lib/sysusers.d/libvirt-qemu.conf:1: Conflict with earlier configuration for group 'kvm', ignoring line.\n\n  Verifying        : postfix-2:3.5.25-1.el9.x86_64                          1/9 \n  Verifying        : cyrus-sasl-2.1.27-22.el9.x86_64                        2/9 \n  Verifying        : cyrus-sasl-2.1.27-21.el9.x86_64                        3/9 \n  Verifying        : cyrus-sasl-gssapi-2.1.27-22.el9.x86_64                 4/9 \n  Verifying        : cyrus-sasl-gssapi-2.1.27-21.el9.x86_64                 5/9 \n  Verifying        : cyrus-sasl-lib-2.1.27-22.el9.x86_64                    6/9 \n  Verifying        : cyrus-sasl-lib-2.1.27-21.el9.x86_64                    7/9 \n  Verifying        : cyrus-sasl-plain-2.1.27-22.el9.x86_64                  8/9 \n  Verifying        : cyrus-sasl-plain-2.1.27-21.el9.x86_64                  9/9 \n\nUpgraded:\n  cyrus-sasl-2.1.27-22.el9.x86_64       cyrus-sasl-gssapi-2.1.27-22.el9.x86_64  \n  cyrus-sasl-lib-2.1.27-22.el9.x86_64   cyrus-sasl-plain-2.1.27-22.el9.x86_64   \nInstalled:\n  postfix-2:3.5.25-1.el9.x86_64                                                 \n\nComplete!\n\u25cf postfix.service - Postfix Mail Transport Agent\n     Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; preset: disabled)\n     Active: active (running) since Fri 2026-03-20 09:02:42 UTC; 12ms ago\n    Process: 4132920 ExecStartPre=/usr/sbin/restorecon -R /var/spool/postfix/pid (code=exited, status=0/SUCCESS)\n    Process: 4132922 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=0/SUCCESS)\n    Process: 4132926 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS)\n    Process: 4132928 ExecStart=/usr/sbin/postfix start (code=exited, status=0/SUCCESS)\n   Main PID: 4132996 (master)\n      Tasks: 3 (limit: 1638704)\n     Memory: 7.3M\n        CPU: 417ms\n     CGroup: /system.slice/postfix.service\n             \u251c\u25004132996 /usr/libexec/postfix/master -w\n             \u251c\u25004132997 pickup -l -t unix -u\n             \u2514\u25004132998 qmgr -l -t unix -u\n\nMar 20 09:02:41 kvm21.man1.layershift.com systemd[1]: Starting Postfix Mail Transport Agent...\nMar 20 09:02:42 kvm21.man1.layershift.com postfix/postfix-script[4132994]: starting the Postfix mail system\nMar 20 09:02:42 kvm21.man1.layershift.com postfix/master[4132996]: daemon started -- version 3.5.25, configuration /etc/postfix\nMar 20 09:02:42 kvm21.man1.layershift.com systemd[1]: Started Postfix Mail Transport Agent.","stdout_lines":["No match for argument: sendmail","Dependencies resolved.","================================================================================"," Package         Architecture   Version                Repository          Size","================================================================================","Removing:"," postfix         x86_64         2:3.5.25-1.el9         @appstream         4.4 M","","Transaction Summary","================================================================================","Remove  1 Package","","Freed space: 4.4 M","Running transaction check","Transaction check succeeded.","Running transaction test","Transaction test succeeded.","Running transaction","  Preparing        :                                                        1/1 ","  Running scriptlet: postfix-2:3.5.25-1.el9.x86_64                          1/1 ","  Erasing          : postfix-2:3.5.25-1.el9.x86_64                          1/1 ","  Running scriptlet: postfix-2:3.5.25-1.el9.x86_64                          1/1 ","  Verifying        : postfix-2:3.5.25-1.el9.x86_64                          1/1 ","","Removed:","  postfix-2:3.5.25-1.el9.x86_64                                                 ","","Complete!","Last metadata expiration check: 0:23:23 ago on Fri 20 Mar 2026 08:39:13 UTC.","Package cyrus-sasl-plain-2.1.27-21.el9.x86_64 is already installed.","Package s-nail-14.9.22-9.el9_7.x86_64 is already installed.","Dependencies resolved.","================================================================================"," Package                Arch        Version                Repository      Size","================================================================================","Installing:"," postfix                x86_64      2:3.5.25-1.el9         appstream      1.5 M","Upgrading:"," cyrus-sasl             x86_64      2.1.27-22.el9          baseos          69 k"," cyrus-sasl-gssapi      x86_64      2.1.27-22.el9          baseos          24 k"," cyrus-sasl-lib         x86_64      2.1.27-22.el9          baseos         762 k"," cyrus-sasl-plain       x86_64      2.1.27-22.el9          baseos          21 k","","Transaction Summary","================================================================================","Install  1 Package","Upgrade  4 Packages","","Total download size: 2.3 M","Downloading Packages:","(1/5): cyrus-sasl-gssapi-2.1.27-22.el9.x86_64.r 1.1 MB/s |  24 kB     00:00    ","(2/5): cyrus-sasl-2.1.27-22.el9.x86_64.rpm      2.4 MB/s |  69 kB     00:00    ","(3/5): cyrus-sasl-plain-2.1.27-22.el9.x86_64.rp 2.9 MB/s |  21 kB     00:00    ","(4/5): cyrus-sasl-lib-2.1.27-22.el9.x86_64.rpm   20 MB/s | 762 kB     00:00    ","(5/5): postfix-3.5.25-1.el9.x86_64.rpm           21 MB/s | 1.5 MB     00:00    ","--------------------------------------------------------------------------------","Total                                           3.6 MB/s | 2.3 MB     00:00     ","Running transaction check","Transaction check succeeded.","Running transaction test","Transaction test succeeded.","Running transaction","  Preparing        :                                                        1/1 ","  Upgrading        : cyrus-sasl-lib-2.1.27-22.el9.x86_64                    1/9 ","  Running scriptlet: postfix-2:3.5.25-1.el9.x86_64                          2/9 ","  Installing       : postfix-2:3.5.25-1.el9.x86_64                          2/9 ","  Running scriptlet: postfix-2:3.5.25-1.el9.x86_64                          2/9 ","  Running scriptlet: cyrus-sasl-2.1.27-22.el9.x86_64                        3/9 ","  Upgrading        : cyrus-sasl-2.1.27-22.el9.x86_64                        3/9 ","  Running scriptlet: cyrus-sasl-2.1.27-22.el9.x86_64                        3/9 ","  Upgrading        : cyrus-sasl-gssapi-2.1.27-22.el9.x86_64                 4/9 ","  Upgrading        : cyrus-sasl-plain-2.1.27-22.el9.x86_64                  5/9 ","  Running scriptlet: cyrus-sasl-2.1.27-21.el9.x86_64                        6/9 ","  Cleanup          : cyrus-sasl-2.1.27-21.el9.x86_64                        6/9 ","  Running scriptlet: cyrus-sasl-2.1.27-21.el9.x86_64                        6/9 ","  Cleanup          : cyrus-sasl-plain-2.1.27-21.el9.x86_64                  7/9 ","  Cleanup          : cyrus-sasl-gssapi-2.1.27-21.el9.x86_64                 8/9 ","  Cleanup          : cyrus-sasl-lib-2.1.27-21.el9.x86_64                    9/9 ","  Running scriptlet: cyrus-sasl-lib-2.1.27-21.el9.x86_64                    9/9 ","/usr/lib/sysusers.d/libvirt-qemu.conf:1: Conflict with earlier configuration for group 'kvm', ignoring line.","","  Verifying        : postfix-2:3.5.25-1.el9.x86_64                          1/9 ","  Verifying        : cyrus-sasl-2.1.27-22.el9.x86_64                        2/9 ","  Verifying        : cyrus-sasl-2.1.27-21.el9.x86_64                        3/9 ","  Verifying        : cyrus-sasl-gssapi-2.1.27-22.el9.x86_64                 4/9 ","  Verifying        : cyrus-sasl-gssapi-2.1.27-21.el9.x86_64                 5/9 ","  Verifying        : cyrus-sasl-lib-2.1.27-22.el9.x86_64                    6/9 ","  Verifying        : cyrus-sasl-lib-2.1.27-21.el9.x86_64                    7/9 ","  Verifying        : cyrus-sasl-plain-2.1.27-22.el9.x86_64                  8/9 ","  Verifying        : cyrus-sasl-plain-2.1.27-21.el9.x86_64                  9/9 ","","Upgraded:","  cyrus-sasl-2.1.27-22.el9.x86_64       cyrus-sasl-gssapi-2.1.27-22.el9.x86_64  ","  cyrus-sasl-lib-2.1.27-22.el9.x86_64   cyrus-sasl-plain-2.1.27-22.el9.x86_64   ","Installed:","  postfix-2:3.5.25-1.el9.x86_64                                                 ","","Complete!","\u25cf postfix.service - Postfix Mail Transport Agent","     Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; preset: disabled)","     Active: active (running) since Fri 2026-03-20 09:02:42 UTC; 12ms ago","    Process: 4132920 ExecStartPre=/usr/sbin/restorecon -R /var/spool/postfix/pid (code=exited, status=0/SUCCESS)","    Process: 4132922 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=0/SUCCESS)","    Process: 4132926 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS)","    Process: 4132928 ExecStart=/usr/sbin/postfix start (code=exited, status=0/SUCCESS)","   Main PID: 4132996 (master)","      Tasks: 3 (limit: 1638704)","     Memory: 7.3M","        CPU: 417ms","     CGroup: /system.slice/postfix.service","             \u251c\u25004132996 /usr/libexec/postfix/master -w","             \u251c\u25004132997 pickup -l -t unix -u","             \u2514\u25004132998 qmgr -l -t unix -u","","Mar 20 09:02:41 kvm21.man1.layershift.com systemd[1]: Starting Postfix Mail Transport Agent...","Mar 20 09:02:42 kvm21.man1.layershift.com postfix/postfix-script[4132994]: starting the Postfix mail system","Mar 20 09:02:42 kvm21.man1.layershift.com postfix/master[4132996]: daemon started -- version 3.5.25, configuration /etc/postfix","Mar 20 09:02:42 kvm21.man1.layershift.com systemd[1]: Started Postfix Mail Transport Agent."]},"created":"2026-03-20T09:02:42.798424Z","updated":"2026-03-20T09:02:42.798451Z","started":"2026-03-20T09:02:33.952368Z","ended":"2026-03-20T09:02:42.742767Z","duration":"00:00:08.790399","changed":false,"ignore_errors":false}