You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: exercises/ansible_rhel/1.6-templates/README.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,9 +59,10 @@ Utilize the `ansible.builtin.template` module in a playbook to distribute and re
59
59
60
60
Modify the `system_setup.yml` Playbook with the following content:
61
61
62
+
{% raw %}
63
+
62
64
```yaml
63
65
---
64
-
---
65
66
- name: Basic System Setup
66
67
hosts: all
67
68
become: true
@@ -121,6 +122,8 @@ Modify the `system_setup.yml` Playbook with the following content:
121
122
state: reloaded
122
123
```
123
124
125
+
{% endraw %}
126
+
124
127
The `ansible.builtin.template` module takes the `motd.j2` template and generates an `/etc/motd` file on each host, filling in the template's placeholders with the actual host facts.
0 commit comments