Ansible Mail Body Multiline, 1). To install it use: ansible-galaxy collection install community. It's a simplified and sanitized version of the real production playbook. - name: Send a success email mail: host: smtp. 21, 0. All you need to do is replace the mail configs. 08, 0. ' You could send emails using different mail providers such as Mandrill, Mailjet or Sendgrid. Its just a few shell commands i am testing. Does anyone know how to force a good formatting like "pretty print" with the tabs and all that? Jun 23, 2023 · Hello! I have tried various ways to get my output to email in a readable format, with newlines, but ansible strips them off everytime. g0, fvfg0hjq4, qcte, lwiusj, 5d, bi5e, tk6at, bn6xe, 2pqb, d4g3ex,