Skip to content

Commit 7f9968d

Browse files
authored
Add raw tags to step 3 playbook and remove duplicate yaml header
1 parent 05395c8 commit 7f9968d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • exercises/ansible_rhel/1.6-templates

exercises/ansible_rhel/1.6-templates/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,10 @@ Utilize the `ansible.builtin.template` module in a playbook to distribute and re
5959

6060
Modify the `system_setup.yml` Playbook with the following content:
6161

62+
{% raw %}
63+
6264
```yaml
6365
---
64-
---
6566
- name: Basic System Setup
6667
hosts: all
6768
become: true
@@ -121,6 +122,8 @@ Modify the `system_setup.yml` Playbook with the following content:
121122
state: reloaded
122123
```
123124
125+
{% endraw %}
126+
124127
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.
125128

126129
### Step 4 - Executing the Playbook

0 commit comments

Comments
 (0)