All, I am trying to get emails and html template. I get a message saying var are added in the replaced body text. Any idea of where that come from?
- name: delete temp dir local_action: file path=./tmp state=absent - name: template create dir local_action: file path=./tmp state=directory - name: template email local_action: template src=../files/email_template.j2 dest=./tmp/email.txt - name: send email local_action: mail host='smtp3.hp.com' port=25 subject="EGIT IIB ENVIRONMENT SETUP" from="email" body="{{ lookup('file', './tmp/email.txt') }}" to="email" headers="Content-type=text/html" when: (managed_server_name == "AdminServer") The template is a HTML file. Antone -- 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 ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/9ac0f33c-76e9-43b1-8e7e-5267e182b127%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.