All,
In the below Ansible email task, instead of attaching the csv file to the 
email, need to send the contend of csv file in the body of the email as 
html table. 

   - name: Send the SSH status to email
      local_action: mail
                    host= '127.0.0.1'
                    port=25
                    subject="SSH Connection status for Unix sudo accounts"
                    body="SSH Failure Service accounts"
                    attach="/tmp/content.csv"
                    from="[email protected]"
                    to="[email protected] <[email protected]>"
                    subtype="html"
                    charset=utf8
      delegate_to: 127.0.0.1
      run_once: true



On Sunday, 26 August 2018 23:27:30 UTC-4, Saravanan Ponnusamy wrote:
>
> All,
> Ansible output of a playbook is csv file format. This needs to be 
> converted to html table and send as mail body output within Ansible 
> playbook. 
> Can someone share the task detail to convert csv file to html table.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/8179491a-ce70-47a6-807a-0250b3b8a906%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to