Commit 2e27849c authored by Pietsch, Martin's avatar Pietsch, Martin

extend index.html template

parent 3ff5251d
......@@ -4,11 +4,21 @@
</head>
<body>
<h1>Hello World</h1>
This file was generated on {{ inventory_hostname }} on {{ ansible_date_time["date"] }} at {{ ansible_date_time["time"] }}.
<h2>Host of this function</h2>
This file was generated on {{ inventory_hostname }} on {{ ansible_date_time["date"] }} at {{ ansible_date_time["time"] }} by the SDM framework.
<h2>hosts of this function</h2>
<ul>
{%- for hst in function_hosts -%}
<li>{{ hst }}</li>
{%- endfor -%}
</ul>
%- for env in ["production", "development"] if env in groups -%}
<h2>{{ env }} hosts of this function</h2>
<ul>
{%- for hst in function_hosts if hst in groups[env] -%}
<li>{{ hst }}</li>
{%- endfor -%}
</ul>
{%- endfor -%}
{%- endif -%}
</body>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment