Skip to content

Commit

Permalink
adding fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rlopez133 committed Jan 23, 2025
1 parent cbc81f0 commit 52be9ac
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 18 deletions.
Binary file added content/modules/ROOT/assets/images/patch_vm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 2 additions & 6 deletions content/modules/ROOT/pages/03-vm-management.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,9 @@ defined in the Ansible playbook that you will create later. This setup allows a
single playbook to handle all three VM management tasks dynamically, depending
on the specified action.

. Within your link:{codeserver_url}[VSCode^] editor, change the directory to:
. Within your link:{codeserver_url}[VSCode^] editor, navigate to the `virt-aap-day2/collections/ansible_collections/redhatone/vm_management/roles/vm_management/tasks/`
+
----
$ cd collections/ansible_collections/redhatone/vm_management/roles/vm_management/tasks/
----
+
. Open the `main.yml` file and edit as follows:
. Edit the following content to the `main.yml` file
+
----
---
Expand Down
30 changes: 18 additions & 12 deletions content/modules/ROOT/pages/04-vm-patching.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,11 @@ NOTE: To ensure the virtual machines can access the required repositories for pa

=== Create the `update_security_packages.yml` file.

. Navigate to the `tasks` Folder:
. Within your VSCode editor, right click `tasks` of the `vm_management` collection and create a New File labeled `update_security_packages.yml`
+
----
$ cd collections/ansible_collections/redhatone/vm_management/roles/vm_management/tasks/
----

. Create the `update_security_packages.yml` File:
+
----
$ touch update_security_packages.yml
----
image::new_file.png[title='New File Creation', link=self, window=blank]
+
. Open the `update_security_packages.yml` file with your favorite editor and add the following task:
. Add the following content to the `update_security_packages.yml`
+
----
---
Expand All @@ -42,7 +34,7 @@ $ touch update_security_packages.yml
state: latest
----
+
. Within your `virt-aap-day2` directory, create an Ansible Playbook labeled `patch_vm_playbook.yml` as follows:
. Within your `virt-aap-day2` directory, create an Ansible Playbook labeled `patch_vm_playbook.yml` with the following details:
+
----
---
Expand Down Expand Up @@ -87,6 +79,20 @@ To execute the `patch_vm_playbook.yml` within Ansible Automation Platform, creat
. Click **Create job template**.
+
. Once the **Patch VMs** Job Template is created, select the **Launch Template** button on the top right corner to run the job.
+
. Once the **Patch VMs** Job is complete, you should see output similar to:
+
image::patch_vm.png[title='Patch VM', link=self, window=blank]
+
This gives a breakdown of all the taks that ran and a play recap of the changes
made to the different hosts. If you take a closer look at the Update
security-related packages on all hosts task, you can drill into specific host
details on what was installed on the system(s).
+
image::patch_vm_task.png[title='Detail Task View', link=self, window=blank]
+
image::patch_vm_host_details.png[title='New File Creation', link=self, window=blank]


== Conclusion

Expand Down

0 comments on commit 52be9ac

Please sign in to comment.