Dynamically building an email template, with tables, using ansible

Hello,

Has anyone ever attempted to dynamically build an email, in html, which populates a table with server details from anisble facts and registered variables?

I am trying to solve this and I am having issues with the design: