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: exercises/ansible_rhel/1.3-playbook/README.fr.md
+24-24Lines changed: 24 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -331,9 +331,9 @@ Notez dans le résultat, on voir que le Play avait `1` élément "CHANGED" affic
331
331
[student@ansible-1 ~]$ ansible-navigator run service_state.yml
332
332
```
333
333
334
-
### Etape 5 - Extend your Playbook: Create an web.html
334
+
### Etape 5 - Ajout de tache: Création de fichier html
335
335
336
-
Check that the tasks were executed correctly and Apache is accepting connections: Make an HTTP request using Ansible’s `uri` module in a playbook named check_httpd.yml from the control node to `node1`.
336
+
Vérifiez que les tâches ont été exécutées correctement et qu'Apache accepte les connexions: effectuez une requête HTTP à l'aide du module `uri` d'Ansible dans un Playbook intitulé `check_httpd.yml` depuis le noeud de contrôle vers `node1`.
337
337
338
338
{% raw %}
339
339
```yaml
@@ -351,33 +351,33 @@ Check that the tasks were executed correctly and Apache is accepting connections
351
351
```
352
352
{% endraw %}
353
353
354
-
> **Warning**
354
+
> **Avertissement**
355
355
>
356
-
> **Expect a lot of red lines and a 403 status\!**
356
+
> **Attendez-vous à beaucoup de lignes rouges et un statut 403 \!**
357
357
358
358
```bash
359
359
[student@ansible-1 ~]$ ansible-navigator run check_httpd.yml -m stdout
360
360
```
361
361
362
-
There are a lot of red lines and an error: As long as there is not at least an `web.html` file to be served by Apache, it will throw an ugly "HTTP Error 403: Forbidden" status and Ansible will report an error.
362
+
Il y a beaucoup de lignes rouges et une erreur: tant qu'il n'y a pas le fichier `web.html` servi par Apache, il affichera un vilain statut ""HTTP Error 403: Forbidden"" et Ansible signalera une erreur.
363
363
364
-
So why not use Ansible to deploy a simple `web.html` file? On the ansible control host, as the `student` user, create the directory `files` to hold file resources in `~/ansible-files/`:
364
+
Alors pourquoi ne pas utiliser Ansible pour déployer un simple fichier `web.html`? Sur l'hôte de contrôle ansible, en tant qu'utilisateur `student`, créez le répertoire `files` pour contenir les fichiers ressources dans `~/ansible-files/`:
365
365
366
366
```bash
367
367
[student@ansible-1 ansible-files]$ mkdir files
368
368
```
369
369
370
-
Then create the file `~/ansible-files/files/web.html` on the control node:
370
+
Créez ensuite le fichier `~/ansible-files/files/web.html` sur le nœud de contrôle:
371
371
372
372
```html
373
373
<body>
374
374
<h1>Apache is running fine</h1>
375
375
</body>
376
376
```
377
377
378
-
In a previous example, you used Ansible’s `copy` module to write text supplied on the command line into a file. Now you’ll use the module in your playbook to copy a file.
378
+
Vous avez déjà utilisé le module `copy` d'Ansible pour écrire le texte fourni sur la ligne de commande dans un fichier. Vous allez maintenant utiliser le module de votre Playbook pour copier un fichier.
379
379
380
-
On the control node as your student user edit the file `~/ansible-files/apache.yml` and add a new task utilizing the `copy` module. It should now look like this:
380
+
Sur le nœud de contrôle, en tant qu'utilisateur `student`, modifiez le fichier `~/ansible-files/apache.yml` et ajoutez une nouvelle tâche en utilisant le module `copy`. Il devrait maintenant ressembler à ceci:
381
381
382
382
```yaml
383
383
---
@@ -403,25 +403,25 @@ On the control node as your student user edit the file `~/ansible-files/apache.y
403
403
mode: '644'
404
404
```
405
405
406
-
What does this new copy task do? The new task uses the `copy` module and defines the source and destination options for the copy operation as parameters.
406
+
Que fait cette nouvelle tâche de copie ? La nouvelle tâche utilise le module `copy` et définit la source et la destination pour l'opération de copie en tant que paramètres.
407
407
408
-
Run your extended Playbook:
408
+
Exécutez votre Playbook étendu:
409
409
410
410
```bash
411
411
[student@ansible-1 ansible-files]$ ansible-navigator run apache.yml -m stdout
412
412
```
413
413
414
-
* Have a good look at the output, notice the changes of "CHANGED" and the tasks associated with that change.
414
+
* Regardez bien la sortie, notez les changements "CHANGED" et les tâches associées à ces changements.
415
415
416
-
* Run the Ansible playbook check_httpd.yml using the "uri" module from above again to test Apache. The command should now return a friendly green "status: 200" line, amongst other information.
416
+
* Exécutez à nouveau le Playbook `check_httpd.yml` avec le module `uri` employé ci-dessus pour tester Apache. La commande devrait maintenant renvoyer une ligne verte "status: 200" entre autres informations.
417
417
418
-
### Etape 6 - Practice: Apply to Multiple Host
418
+
### Etape 6 - Application à plusieurs hôtes
419
419
420
-
While the above, shows the simplicity of applying changes to a particular host. What about if you want to set changes to many hosts? This is where you'll notice the real power of Ansible as it applies the same set of tasks reliably to many hosts.
420
+
Bien que les manipulations précédentes montrent la simplicité d'appliquer des changements sur un hôte particulier, qu'en est-il de propager des changements à de nombreux hôtes ? C'est maintenant qu'on constate le vrai pouvoir de Ansible, alors qu'il applique les mêmes jeux de tâches de manière fiable sur de nombreux hôtes.
421
421
422
-
* So what about changing the apache.yml Playbook to run on `node1` **and** `node2` **and** `node3`?
422
+
* Alors, qu'en est-il de changer le Playbook apache.yml pour qu'il fonctionne sur `node1` **et** `node2` **et** `node3`?
423
423
424
-
As you might remember, the inventory lists all nodes as members of the group `web`:
424
+
Comme vous vous en souvenez peut-être, l'inventaire répertorie tous les nœuds en tant que membres du groupe `web`:
0 commit comments