Skip to content

Commit 428a710

Browse files
Update README.fr.md
1 parent 0f0e409 commit 428a710

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

exercises/ansible_rhel/1.3-playbook/README.fr.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,9 @@ Notez dans le résultat, on voir que le Play avait `1` élément "CHANGED" affic
331331
[student@ansible-1 ~]$ ansible-navigator run service_state.yml
332332
```
333333

334-
### Etape 5 - Extend your Playbook: Create an web.html
334+
### Etape 5 - Ajout de tache: Création de fichier html
335335

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`.
337337

338338
{% raw %}
339339
```yaml
@@ -351,33 +351,33 @@ Check that the tasks were executed correctly and Apache is accepting connections
351351
```
352352
{% endraw %}
353353

354-
> **Warning**
354+
> **Avertissement**
355355
>
356-
> **Expect a lot of red lines and a 403 status\!**
356+
> **Attendez-vous à beaucoup de lignes rouges et un statut 403 \!**
357357

358358
```bash
359359
[student@ansible-1 ~]$ ansible-navigator run check_httpd.yml -m stdout
360360
```
361361

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.
363363

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/`:
365365

366366
```bash
367367
[student@ansible-1 ansible-files]$ mkdir files
368368
```
369369

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:
371371

372372
```html
373373
<body>
374374
<h1>Apache is running fine</h1>
375375
</body>
376376
```
377377

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.
379379

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:
381381

382382
```yaml
383383
---
@@ -403,25 +403,25 @@ On the control node as your student user edit the file `~/ansible-files/apache.y
403403
mode: '644'
404404
```
405405

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.
407407

408-
Run your extended Playbook:
408+
Exécutez votre Playbook étendu:
409409

410410
```bash
411411
[student@ansible-1 ansible-files]$ ansible-navigator run apache.yml -m stdout
412412
```
413413

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.
415415

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.
417417

418-
### Etape 6 - Practice: Apply to Multiple Host
418+
### Etape 6 - Application à plusieurs hôtes
419419

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.
421421

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`?
423423

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`:
425425

426426
```ini
427427
[web]
@@ -430,11 +430,11 @@ node2 ansible_host=22.33.44.55
430430
node3 ansible_host=33.44.55.66
431431
```
432432

433-
> **Tip**
433+
> **Astuce**
434434
>
435-
> The IP addresses shown here are just examples, your nodes will have different IP addresses.
435+
> Les adresses IP présentées ici ne sont que des exemples, vos nœuds auront des adresses IP différentes.
436436

437-
Change the playbook `hosts` parameter to point to `web` instead of `node1`:
437+
Modifiez le paramètre `hosts` du Playbook pour pointer vers le groupe `web` au lieu de `node1`:
438438

439439
```yaml
440440
---
@@ -461,21 +461,21 @@ Change the playbook `hosts` parameter to point to `web` instead of `node1`:
461461
462462
```
463463

464-
Now run the playbook:
464+
Maintenant, lancez le Playbook:
465465

466466
```bash
467467
[student@ansible-1 ansible-files]$ ansible-navigator run apache.yml -m stdout
468468
```
469469

470-
Verify if Apache is now running on all web servers (node1, node2, node3). All output should be green.
470+
Enfin, vérifiez si Apache fonctionne maintenant sur tous les serveurs web (node1, node2, node3). Toute sortie doit être verte.
471471

472472
---
473473
**Navigation**
474474
<br>
475475

476476
{% if page.url contains 'ansible_rhel_90' %}
477-
[Previous Exercise](../2-thebasics) - [Next Exercise](../4-variables)
477+
[Exercise précédent](../2-thebasics/README.fr.md) - [Exercise suivant](../4-variables/README.fr.md)
478478
{% else %}
479-
[Previous Exercise](../1.2-thebasics) - [Next Exercise](../1.4-variables)
479+
[Exercise précédent](../1.2-thebasics/README.fr.md) - [Exercise suivant](../1.4-variables/README.fr.md)
480480
{% endif %}
481481
<br><br>

0 commit comments

Comments
 (0)