Execution
Date 20 Mar 2026 09:02:32 +0000
Duration 00:00:22.16
Controller ssh-gw-4.layershift.com
User root
Versions
Ansible 2.16.13
ara 1.7.4 / 1.7.4
Python 3.10.10
Summary
25 Hosts
2 Tasks
50 Results
1 Plays
1 Files
0 Records

Task result details

  • Status
    OK
  • Duration
    00:00:01.09
  • Play
    Playbook to install postmark and postfix
  • Task
    Set email alias for user root
  • Host
    kvm011

Field Value
changed
False
cmd
set -o pipefail
sed -i '/root:/d' /etc/aliases
echo "root:           opsmonitor@layershift.com" >> /etc/aliases
newaliases
systemctl restart postfix.service
systemctl --no-pager status postfix.service
delta
0:00:00.665614
end
2026-03-20 09:02:44.997334
invocation
{
    "module_args": {
        "_raw_params": "set -o pipefail\nsed -i '/root:/d' /etc/aliases\necho \"root:           opsmonitor@layershift.com\" >> /etc/aliases\nnewaliases\nsystemctl restart 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:44.331720
stderr

stderr_lines
[]
stdout
● 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:44 UTC; 10ms ago
    Process: 3147577 ExecStartPre=/usr/sbin/restorecon -R /var/spool/postfix/pid (code=exited, status=0/SUCCESS)
    Process: 3147584 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=0/SUCCESS)
    Process: 3147589 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS)
    Process: 3147590 ExecStart=/usr/sbin/postfix start (code=exited, status=0/SUCCESS)
   Main PID: 3147659 (master)
      Tasks: 3 (limit: 1646513)
     Memory: 6.0M
        CPU: 510ms
     CGroup: /system.slice/postfix.service
             ├─3147659 /usr/libexec/postfix/master -w
             ├─3147660 pickup -l -t unix -u
             └─3147661 qmgr -l -t unix -u

Mar 20 09:02:44 kvm11.man1.layershift.com systemd[1]: Starting Postfix Mail Transport Agent...
Mar 20 09:02:44 kvm11.man1.layershift.com postfix/postfix-script[3147657]: starting the Postfix mail system
Mar 20 09:02:44 kvm11.man1.layershift.com postfix/master[3147659]: daemon started -- version 3.5.25, configuration /etc/postfix
Mar 20 09:02:44 kvm11.man1.layershift.com systemd[1]: Started Postfix Mail Transport Agent.
stdout_lines
[
    "\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:44 UTC; 10ms ago",
    "    Process: 3147577 ExecStartPre=/usr/sbin/restorecon -R /var/spool/postfix/pid (code=exited, status=0/SUCCESS)",
    "    Process: 3147584 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=0/SUCCESS)",
    "    Process: 3147589 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS)",
    "    Process: 3147590 ExecStart=/usr/sbin/postfix start (code=exited, status=0/SUCCESS)",
    "   Main PID: 3147659 (master)",
    "      Tasks: 3 (limit: 1646513)",
    "     Memory: 6.0M",
    "        CPU: 510ms",
    "     CGroup: /system.slice/postfix.service",
    "             \u251c\u25003147659 /usr/libexec/postfix/master -w",
    "             \u251c\u25003147660 pickup -l -t unix -u",
    "             \u2514\u25003147661 qmgr -l -t unix -u",
    "",
    "Mar 20 09:02:44 kvm11.man1.layershift.com systemd[1]: Starting Postfix Mail Transport Agent...",
    "Mar 20 09:02:44 kvm11.man1.layershift.com postfix/postfix-script[3147657]: starting the Postfix mail system",
    "Mar 20 09:02:44 kvm11.man1.layershift.com postfix/master[3147659]: daemon started -- version 3.5.25, configuration /etc/postfix",
    "Mar 20 09:02:44 kvm11.man1.layershift.com systemd[1]: Started Postfix Mail Transport Agent."
]