Hi,
I managed to include a j2 file as ‘body’ option of the ansible mail module:
mail: body: “{{ lookup(‘template’, j2file) }}”
, but need now to include header and footer html files (header.html and footer.html) respectively before and after the j2 file. Is it possible to do it without including these html file in the j2 file? I can’t figure that out.
Note: the j2 file contains ansible variables whereas the html files don’t.