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
this commit
- adds remainder of spanish language links to all readmes for ansible_rhel workshop_type
- changes all curls from IP addresses to DNS
- adds solution for 1.7
Copy file name to clipboardexpand all lines: exercises/ansible_rhel/1.4-variables/README.md
+15-9
Original file line number
Diff line number
Diff line change
@@ -135,22 +135,28 @@ Create a new Playbook called `deploy_index_html.yml` in the `~/ansible-files/` d
135
135
136
136
## Step 4 - Test the Result
137
137
138
-
The Playbook should copy different files as index.html to the hosts, use `curl` to test it. Check the inventory again if you forgot the IP addresses of your nodes.
138
+
The Ansible Playbook copies different files as index.html to the hosts, use `curl` to test it.
Copy file name to clipboardexpand all lines: exercises/ansible_rhel/1.5-handlers/README.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -139,7 +139,7 @@ So what’s new here?
139
139
140
140
Run the Playbook. We didn’t change anything in the file yet so there should not be any `changed` lines in the output and of course the handler shouldn’t have fired.
141
141
142
-
- Now change the `Listen 80` line in `/etc/httpd/conf/httpd.conf` to:
142
+
- Now change the `Listen 80` line in `~/ansible-files/files/httpd.conf` to:
143
143
144
144
```ini
145
145
Listen 8080
@@ -154,9 +154,9 @@ Listen 8080
154
154
Apache should now listen on port 8080. Easy enough to verify:
Copy file name to clipboardexpand all lines: exercises/ansible_rhel/1.7-role/README.md
+32-11
Original file line number
Diff line number
Diff line change
@@ -29,8 +29,6 @@ This exercise will cover:
29
29
30
30
## Step 1 - Understanding the Ansible Role Structure
31
31
32
-
Roles are basically automation built around *include* directives and really don’t contain much additional magic beyond some improvements to search path handling for referenced files.
33
-
34
32
Roles follow a defined directory structure; a role is named by the top level directory. Some of the subdirectories contain YAML files, named `main.yml`. The files and templates subdirectories can contain objects referenced by the YAML files.
35
33
36
34
An example project structure could look like this, the name of the role would be "apache":
@@ -96,6 +94,27 @@ Have a look at the role directories and their content:
96
94
[student<X>@ansible ansible-files]$ tree roles
97
95
```
98
96
97
+
```
98
+
roles/
99
+
└── apache_vhost
100
+
├── defaults
101
+
│ └── main.yml
102
+
├── files
103
+
├── handlers
104
+
│ └── main.yml
105
+
├── meta
106
+
│ └── main.yml
107
+
├── README.md
108
+
├── tasks
109
+
│ └── main.yml
110
+
├── templates
111
+
├── tests
112
+
│ ├── inventory
113
+
│ └── test.yml
114
+
└── vars
115
+
└── main.yml
116
+
```
117
+
99
118
## Step 3 - Create the Tasks File
100
119
101
120
The `main.yml` file in the tasks subdirectory of the role should do the following:
@@ -110,9 +129,9 @@ The `main.yml` file in the tasks subdirectory of the role should do the followin
110
129
111
130
> **WARNING**
112
131
>
113
-
> **The `main.yml` (and other files possibly included by main.yml) can only contain tasks, *not* complete Playbooks!**
132
+
> **The `main.yml` (and other files possibly included by main.yml) can only contain tasks, *not* complete playbooks!**
114
133
115
-
Change into the `roles/apache_vhost` directory. Edit the `tasks/main.yml` file:
134
+
Edit the `roles/apache_vhost/tasks/main.yml` file:
116
135
117
136
```yaml
118
137
---
@@ -193,7 +212,7 @@ The full `tasks/main.yml` file is:
Copy file name to clipboardexpand all lines: exercises/ansible_rhel/2.3-projects/README.fr.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
#Atelier - Les projets & modèles
2
2
3
-
**Lisez ceci dans d'autres langues**: <br>[English](README.md), [日本語](README.ja.md), [Portugues do Brasil](README.pt-br.md), [Française](README.fr.md).
3
+
**Lisez ceci dans d'autres langues**:
4
+
<br>[English](README.md), [日本語](README.ja.md), [Portugues do Brasil](README.pt-br.md), [Française](README.fr.md), [Español](README.es.md).
Copy file name to clipboardexpand all lines: exercises/ansible_rhel/2.4-surveys/README.fr.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
# Atelier - Les questionnaires
2
2
3
-
**Lisez ceci dans d'autres langues**: <br>[English](README.md), [日本語](README.ja.md), [Portugues do Brasil](README.pt-br.md), [Française](README.fr.md).
3
+
**Lisez ceci dans d'autres langues**:
4
+
<br>[English](README.md), [日本語](README.ja.md), [Portugues do Brasil](README.pt-br.md), [Française](README.fr.md), [Español](README.es.md).
0 commit comments