additional course material RH294
Student User
2020-02-19 26d781da63ad0368921d6a0eb1f5efcb9bc479d1
commit | author | age
97d9af 1 Welcome to the server {{ ansible_facts['hostname'] }}.
SU 2 This system proudly runs {{ ansible_facts['distribution'] }} {{ ansible_facts['distribution_version'] }}.
3
4 {# this is a comment #}
5 {% if ansible_machine == 'x86_64' %}
6 We are running 64bit mode.
7 {% endif %}
8
9 This system has the following IPv4 addresses configured:
10 {% for myip in ansible_facts['all_ipv4_addresses'] %}
26d781 11 - IP #{{ loop.index }} of {{ loop.length }}: {{ myip }}
97d9af 12 {% endfor %}
SU 13
26d781 14 {% for member in groups['server'] %}
SU 15 Part of the server group: {{ member }}
16 {% endfor %}
17
18 {{ ansible_facts['all_ipv4_addresses'] | to_nice_json }}