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