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: content/en/docs/01/_index.en.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -184,7 +184,7 @@ ansible all -i hosts -m ansible.builtin.ping
184
184
185
185
* Configure the `ansible` user to have root privilege on all hosts in your inventory file.
186
186
Also enable login without a password for this user.
187
-
* Test the functionality by running `sudo -v` as user `ansible` on all nodes.
187
+
* Test the functionality by running `sudo -v` as user `ansible` on all nodes. No output after `sudo -v` indicates that the sudoers configuration is set up correctly.
Its file `tasks/main.yml` should import the files `motd.yml` and `packages.yml`.
86
-
(Create both files under `tasks/`).
85
+
Its file `tasks/main.yml` should import the taskfiles `motd.yml` and `packages.yml` by using the `import_tasks` module. Create the two files `motd.yml` and `packages.yml` under `tasks/`.
86
+
* Tag the import of the `motd.yml` file with the string `motd` and the import of the `packages.yml` file with the string `packages`.
87
87
*`motd.yml` should do the following: Use the variable `base_motd_content` to change the `/etc/motd` content to
88
88
"This is a server\\n".
89
89
Remember to move the template as well as the variable to a correct location in the `roles` folder.
@@ -163,6 +163,7 @@ Take notice of the different content of `/etc/motd` on the control node!
163
163
Use a dependency in the `meta/main.yml` file.
164
164
* Remove the play to run `base` role on all hosts in the `prod.yml` playbook.
165
165
Run the playbook and see if role `base` was applied on hosts in the `web` group as well.
166
+
* Run the the playbook once with the tag `motd` and once with the tag `packages`. Ensure, that only the tasks where run where the corresponding tag was set.
0 commit comments