Beginning-Ansible-Concepts-.../chapter12/roles/webserver/templates/index.html.j2
2022-04-23 08:57:49 +01:00

16 lines
279 B
Django/Jinja

My website, served from {{ inventory_hostname }}
<p>
IP Addresses:<br />
{% for ip in ansible_all_ipv4_addresses %}
{{ ip }}<br />
{% endfor %}
</p>
<p>
Operating System:<br />
{% for key, value in ansible_lsb.items() %}
{{ key }}: {{ value }}<br />
{% endfor %}
</p>