Skip to content

Commit

Permalink
Merge pull request #2183 from rlopez133/aap25_rhel_workshop_ch2.3
Browse files Browse the repository at this point in the history
adding section 2.3
  • Loading branch information
rlopez133 authored Oct 11, 2024
2 parents f4869fe + b0b0352 commit db520eb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions exercises/ansible_rhel/2.3-projects/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ An Ansible automation controller **Project** is a logical collection of Ansible
This exercise covers:

* Understanding and using an Ansible automation controller Project
* Using Ansible playbooks kept in a Git repository.
* Using Ansible playbooks stored in a Git repository.
* Creating and using an Ansible Job Template

## Guide

### Setup Git Repository

For this demonstration we will use playbooks stored in a Git repository:
For this demonstration, we will use playbooks stored in a Git repository:

[https://github.com/ansible/workshop-examples](https://github.com/ansible/workshop-examples)

Expand Down Expand Up @@ -71,13 +71,13 @@ A playbook to install the Apache web server has already been committed to the di
> **Tip**
>
> Note the difference to other playbooks you might have written\! Most importantly there is no `become` and `hosts` is set to `all`.
> Note the difference from other playbooks you might have written\! Most importantly there is no `become` and `hosts` is set to `all`.

To configure and use this repository as a **Source Control Management (SCM)** system in automation controller you have to create a **Project** that uses the repository

### Create the Project

* Go to **Resources → Projects** click the **Add** button. Fill in the form:
* Go to **Automation Execution → Projects** click the **Create Project** button. Fill in the form:

<table>
<tr>
Expand All @@ -93,11 +93,11 @@ To configure and use this repository as a **Source Control Management (SCM)** sy
<td>Default</td>
</tr>
<tr>
<td>Default Execution Environment</td>
<td>Execution Environment</td>
<td>Default execution environment</td>
</tr>
<tr>
<td>Source Control Credential Type</td>
<td>Source Control Type</td>
<td>Git</td>
</tr>
</table>
Expand Down Expand Up @@ -138,7 +138,7 @@ A job template is a definition and set of parameters for running an Ansible job.

* **What** playbook to use?

Okay, let’s just do that: Go to the **Resources -> Templates** view, click the **Add** button and choose **Add job template**.
Okay, let’s just do that: Go to the **Automation Execution -> Templates** view,click the **Create template** button and choose **Create job template**.

> **Tip**
>
Expand Down Expand Up @@ -189,7 +189,7 @@ Okay, let’s just do that: Go to the **Resources -> Templates** view, click the

* Click **Save**

You can start the job by directly clicking the blue **Launch** button, or by clicking on the rocket in the Job Templates overview. After launching the Job Template, you are automatically brought to the job overview where you can follow the playbook execution in real time:
You can start the job by directly clicking the blue **Launch template** button, or by clicking on the rocket in the Job Templates overview. After launching the Job Template, you are automatically brought to the job overview where you can follow the playbook execution in real time:

Job Details
![job details](images/job_details.png)
Expand Down Expand Up @@ -226,15 +226,15 @@ You have already been through all the steps needed, so try this for yourself.
>
> **Solution Below**

* Go to **Resources → Inventories** → **Workshop Inventory**
* Go to **Automation Execution → Infrastructure → Inventories** → **Workshop Inventory**

* In the **Hosts** view select `node1`, `node2`, `node3` and click **Run Command**
* In the **Automation Execution → Infrastructure → Inventories → **Workshop Inventory**, select the **Hosts** tab and select `node1`, `node2`, `node3` and click **Run Command**

Within the **Details** window, select **Module** `command`, in **Arguments** type `systemctl status httpd` and click **Next**.

Within the **Execution Environment** window, select **Default execution environment** and click **Next**.

Within the **Machine Credential** window, select **Workshop Credential** and click **Launch**.
Within the **Credential** window, select **Workshop Credential** and click **Launch**.

> **Tip**
>
Expand Down
Binary file modified exercises/ansible_rhel/2.3-projects/images/job_details.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified exercises/ansible_rhel/2.3-projects/images/job_run.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit db520eb

Please sign in to comment.