Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
elearning:workbooks:centos:8:lcf900:l703 [2023/09/20 15:14] – admin | elearning:workbooks:centos:8:lcf900:l703 [2024/11/30 10:56] (Version actuelle) – admin | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
~~PDF: | ~~PDF: | ||
- | Version - **2023.01** | + | Version - **2024.01** |
Dernière mise-à-jour : ~~LASTMOD~~ | Dernière mise-à-jour : ~~LASTMOD~~ | ||
- | ====== | + | ====== |
=====Contenu du Module===== | =====Contenu du Module===== | ||
- | * **LCF803 | + | * **LDF903 |
* Contenu du Module | * Contenu du Module | ||
* LAB #1 - Dépendances de Rôles | * LAB #1 - Dépendances de Rôles | ||
Ligne 48: | Ligne 48: | ||
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**Important** : Notez que dans ce Rôle nous n' | **Important** : Notez que dans ce Rôle nous n' | ||
</ | </ | ||
Ligne 70: | Ligne 70: | ||
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**Important** : Notez que le paquet à installer n'est pas explicitement déclaré. Le paquet est référencé par le contenu de la variable **java_package**, | **Important** : Notez que le paquet à installer n'est pas explicitement déclaré. Le paquet est référencé par le contenu de la variable **java_package**, | ||
</ | </ | ||
Ligne 84: | Ligne 84: | ||
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**Important** : Notez qu'ici sont déclarées deux variables : **java_home** et **java_package**. | **Important** : Notez qu'ici sont déclarées deux variables : **java_home** et **java_package**. | ||
</ | </ | ||
Ligne 94: | Ligne 94: | ||
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**Important** : Ce fichier ne serait pas normalement vide. Par contre dans ce LAB, nous nous concentrons sur Ansible et seule la présence du fichier est nécessaire pour le bon fonctionnement du LAB. | **Important** : Ce fichier ne serait pas normalement vide. Par contre dans ce LAB, nous nous concentrons sur Ansible et seule la présence du fichier est nécessaire pour le bon fonctionnement du LAB. | ||
</ | </ | ||
Ligne 106: | Ligne 106: | ||
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**Important** : Notez que dans ce Rôle nous n' | **Important** : Notez que dans ce Rôle nous n' | ||
</ | </ | ||
Ligne 130: | Ligne 130: | ||
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**Important** : Ce fichier informe Ansible que le Rôle **tomcat** dépend du Rôle **exemple01.java**. | **Important** : Ce fichier informe Ansible que le Rôle **tomcat** dépend du Rôle **exemple01.java**. | ||
</ | </ | ||
Ligne 146: | Ligne 146: | ||
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**Important** : Notez que dans le Play Book, nous appelons **uniquement** le Rôle **tomcat**. | **Important** : Notez que dans le Play Book, nous appelons **uniquement** le Rôle **tomcat**. | ||
</ | </ | ||
Ligne 190: | Ligne 190: | ||
│ | │ | ||
│ | │ | ||
+ | │ | ||
│ | │ | ||
│ | │ | ||
Ligne 196: | Ligne 197: | ||
│ | │ | ||
│ | │ | ||
+ | │ | ||
│ | │ | ||
│ | │ | ||
│ | │ | ||
│ | │ | ||
- | │ └── Ubuntu-20.yml | + | │ ├── Ubuntu-20.yml |
+ | │ | ||
├── inventory | ├── inventory | ||
├── playbook.yaml | ├── playbook.yaml | ||
Ligne 209: | Ligne 212: | ||
└── main.yaml | └── main.yaml | ||
- | 15 directories, | + | 15 directories, |
</ | </ | ||
Ligne 217: | Ligne 220: | ||
trainee@debian11: | trainee@debian11: | ||
- | PLAY [all] ******************************************************************************************************************************************************************************************************* | + | PLAY [all] *************************************************************************************************************************************************************************************************** |
- | TASK [Gathering Facts] | + | TASK [Gathering Facts] *************************************************************************************************************************************************************************************** |
ok: [web01] | ok: [web01] | ||
- | TASK [exemple01.java : install jre] ****************************************************************************************************************************************************************************** | + | TASK [exemple01.java : install jre] ************************************************************************************************************************************************************************** |
ok: [web01] | ok: [web01] | ||
- | TASK [exemple01.java : configure java home] ********************************************************************************************************************************************************************** | + | TASK [exemple01.java : configure java home] ****************************************************************************************************************************************************************** |
changed: [web01] | changed: [web01] | ||
- | TASK [tomcat : install tomcat] | + | TASK [tomcat : install tomcat] ******************************************************************************************************************************************************************************* |
changed: [web01] | changed: [web01] | ||
- | PLAY RECAP ******************************************************************************************************************************************************************************************************* | + | PLAY RECAP *************************************************************************************************************************************************************************************************** |
web01 : ok=4 changed=2 | web01 : ok=4 changed=2 | ||
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**Important** : Notez que le Rôle **exemple01.java** est traité **avant** le Rôle **tomcat**. | **Important** : Notez que le Rôle **exemple01.java** est traité **avant** le Rôle **tomcat**. | ||
</ | </ | ||
Ligne 252: | Ligne 255: | ||
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent | Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent | ||
permitted by applicable law. | permitted by applicable law. | ||
- | Last login: | + | Last login: |
trainee@web01: | trainee@web01: | ||
● tomcat8.service - LSB: Start Tomcat. | ● tomcat8.service - LSB: Start Tomcat. | ||
| | ||
- | | + | |
Docs: man: | Docs: man: | ||
| | ||
- | | + | |
trainee@web01: | trainee@web01: | ||
déconnexion | déconnexion | ||
Ligne 276: | Ligne 279: | ||
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**Important** : Notez que cette fois-ci, la valeur de la variable **java_package** spécifiée dans le fichier **/ | **Important** : Notez que cette fois-ci, la valeur de la variable **java_package** spécifiée dans le fichier **/ | ||
</ | </ | ||
Ligne 285: | Ligne 288: | ||
trainee@debian11: | trainee@debian11: | ||
- | PLAY [all] ******************************************************************************************************************************************************************************************************* | + | PLAY [all] *************************************************************************************************************************************************************************************************** |
- | TASK [Gathering Facts] | + | TASK [Gathering Facts] *************************************************************************************************************************************************************************************** |
ok: [web02] | ok: [web02] | ||
- | TASK [exemple01.java : install jre] ****************************************************************************************************************************************************************************** | + | TASK [exemple01.java : install jre] ************************************************************************************************************************************************************************** |
changed: [web02] | changed: [web02] | ||
- | TASK [exemple01.java : configure java home] ********************************************************************************************************************************************************************** | + | TASK [exemple01.java : configure java home] ****************************************************************************************************************************************************************** |
changed: [web02] | changed: [web02] | ||
- | TASK [tomcat : install tomcat] | + | TASK [tomcat : install tomcat] ******************************************************************************************************************************************************************************* |
changed: [web02] | changed: [web02] | ||
- | PLAY RECAP ******************************************************************************************************************************************************************************************************* | + | PLAY RECAP *************************************************************************************************************************************************************************************************** |
- | web02 : ok=4 changed=3 | + | web02 : ok=4 changed=3 |
</ | </ | ||
Ligne 316: | Ligne 319: | ||
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent | Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent | ||
permitted by applicable law. | permitted by applicable law. | ||
- | Last login: | + | Last login: |
trainee@web02: | trainee@web02: | ||
/ | / | ||
Ligne 322: | Ligne 325: | ||
déconnexion | déconnexion | ||
Connection to web02 closed. | Connection to web02 closed. | ||
- | trainee@debian11: | + | trainee@debian11: |
- | Debian GNU/Linux 9 | + | |
- | Linux web03.i2tch.loc 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 | + | |
- | + | ||
- | The programs included with the Debian GNU/Linux system are free software; | + | |
- | the exact distribution terms for each program are described in the | + | |
- | individual files in / | + | |
- | + | ||
- | Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent | + | |
- | permitted by applicable law. | + | |
- | Last login: Wed Mar 9 12:12:51 2022 from 10.0.2.45 | + | |
- | trainee@web03: | + | |
- | trainee@web03: | + | |
- | déconnexion | + | |
- | Connection to web03 closed. | + | |
- | trainee@debian11: | + | |
</ | </ | ||
Ligne 344: | Ligne 332: | ||
====2.1 - Variables==== | ====2.1 - Variables==== | ||
- | Les **Gabarits** ou // | + | Les **Gabarits** ou // |
- | <WRAP center round important> | + | <WRAP center round important |
**Important** : La documentation des gabarits se trouvent à cette adresse: **[[https:// | **Important** : La documentation des gabarits se trouvent à cette adresse: **[[https:// | ||
</ | </ | ||
Ligne 361: | Ligne 349: | ||
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**Important** : Notez que dans ce Rôle nous n' | **Important** : Notez que dans ce Rôle nous n' | ||
</ | </ | ||
Ligne 387: | Ligne 375: | ||
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**Important** : Notez que l' | **Important** : Notez que l' | ||
</ | </ | ||
Ligne 461: | Ligne 449: | ||
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**Important** : Notez l' | **Important** : Notez l' | ||
</ | </ | ||
Ligne 494: | Ligne 482: | ||
trainee@debian11: | trainee@debian11: | ||
- | PLAY [all] ******************************************************************************************************************************************************************************************************* | + | PLAY [all] *************************************************************************************************************************************************************************************************** |
- | TASK [Gathering Facts] | + | TASK [Gathering Facts] *************************************************************************************************************************************************************************************** |
ok: [web04] | ok: [web04] | ||
- | TASK [haproxy : install] | + | TASK [haproxy : install] ************************************************************************************************************************************************************************************* |
ok: [web04] | ok: [web04] | ||
- | TASK [haproxy : configure] | + | TASK [haproxy : configure] *********************************************************************************************************************************************************************************** |
changed: [web04] | changed: [web04] | ||
- | TASK [haproxy : service] | + | TASK [haproxy : service] ************************************************************************************************************************************************************************************* |
ok: [web04] | ok: [web04] | ||
- | RUNNING HANDLER [haproxy : reload haproxy] | + | RUNNING HANDLER [haproxy : reload haproxy] ******************************************************************************************************************************************************************* |
changed: [web04] | changed: [web04] | ||
- | PLAY RECAP ******************************************************************************************************************************************************************************************************* | + | PLAY RECAP *************************************************************************************************************************************************************************************************** |
- | web04 : ok=5 changed=2 | + | web04 : ok=5 changed=2 |
</ | </ | ||
Ligne 528: | Ligne 516: | ||
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent | Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent | ||
permitted by applicable law. | permitted by applicable law. | ||
- | Last login: | + | Last login: |
trainee@web04: | trainee@web04: | ||
● haproxy.service - HAProxy Load Balancer | ● haproxy.service - HAProxy Load Balancer | ||
| | ||
- | | + | |
Docs: man: | Docs: man: | ||
| | ||
- | Process: | + | Process: |
- | Process: | + | Process: |
- | Main PID: 5394 (haproxy-systemd) | + | Main PID: 2970 (haproxy-systemd) |
Tasks: 3 (limit: 4915) | Tasks: 3 (limit: 4915) | ||
| | ||
- | | + | |
- | | + | |
- | | + | |
trainee@web04: | trainee@web04: | ||
Ligne 606: | Ligne 594: | ||
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**Important** : Notez que les valeurs des variables spécifiées dans le fichier **/ | **Important** : Notez que les valeurs des variables spécifiées dans le fichier **/ | ||
</ | </ | ||
Ligne 638: | Ligne 626: | ||
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**Important** : Notez la condition **%%{% if haproxy_stats %}%%** qui ne tiendra compte des quatre lignes jusqu' | **Important** : Notez la condition **%%{% if haproxy_stats %}%%** qui ne tiendra compte des quatre lignes jusqu' | ||
</ | </ | ||
Ligne 654: | Ligne 642: | ||
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**Important** : Notez qu' | **Important** : Notez qu' | ||
</ | </ | ||
Ligne 663: | Ligne 651: | ||
trainee@debian11: | trainee@debian11: | ||
- | PLAY [all] ******************************************************************************************************************************************************************************************************* | + | PLAY [all] *************************************************************************************************************************************************************************************************** |
- | TASK [Gathering Facts] | + | TASK [Gathering Facts] *************************************************************************************************************************************************************************************** |
ok: [web04] | ok: [web04] | ||
- | TASK [haproxy : install] | + | TASK [haproxy : install] ************************************************************************************************************************************************************************************* |
ok: [web04] | ok: [web04] | ||
- | TASK [haproxy : configure] | + | TASK [haproxy : configure] *********************************************************************************************************************************************************************************** |
ok: [web04] | ok: [web04] | ||
- | TASK [haproxy : service] | + | TASK [haproxy : service] ************************************************************************************************************************************************************************************* |
ok: [web04] | ok: [web04] | ||
- | PLAY RECAP ******************************************************************************************************************************************************************************************************* | + | PLAY RECAP *************************************************************************************************************************************************************************************************** |
- | web04 : ok=4 changed=0 | + | web04 : ok=4 changed=0 |
</ | </ | ||
Ligne 695: | Ligne 683: | ||
permitted by applicable law. | permitted by applicable law. | ||
Last login: Wed Mar 9 15:29:27 2022 from 10.0.2.45 | Last login: Wed Mar 9 15:29:27 2022 from 10.0.2.45 | ||
+ | |||
trainee@web04: | trainee@web04: | ||
errorfile 504 / | errorfile 504 / | ||
Ligne 713: | Ligne 702: | ||
server web02 10.0.2.55: | server web02 10.0.2.55: | ||
server web03 10.0.2.56: | server web03 10.0.2.56: | ||
+ | |||
trainee@web04: | trainee@web04: | ||
déconnexion | déconnexion | ||
Ligne 719: | Ligne 709: | ||
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**Important** : Notez que les quatre lignes concernant les statistiques ont été incluses dans le fichier. | **Important** : Notez que les quatre lignes concernant les statistiques ont été incluses dans le fichier. | ||
</ | </ | ||
Ligne 735: | Ligne 725: | ||
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**Important** : Notez qu' | **Important** : Notez qu' | ||
</ | </ | ||
Ligne 745: | Ligne 735: | ||
trainee@debian11: | trainee@debian11: | ||
- | PLAY [all] ******************************************************************************************************************************************************************************************************* | + | PLAY [all] *************************************************************************************************************************************************************************************************** |
- | TASK [Gathering Facts] | + | TASK [Gathering Facts] *************************************************************************************************************************************************************************************** |
ok: [web04] | ok: [web04] | ||
- | TASK [haproxy : install] | + | TASK [haproxy : install] ************************************************************************************************************************************************************************************* |
ok: [web04] | ok: [web04] | ||
- | TASK [haproxy : configure] | + | TASK [haproxy : configure] *********************************************************************************************************************************************************************************** |
changed: [web04] | changed: [web04] | ||
- | TASK [haproxy : service] | + | TASK [haproxy : service] ************************************************************************************************************************************************************************************* |
ok: [web04] | ok: [web04] | ||
- | RUNNING HANDLER [haproxy : reload haproxy] | + | RUNNING HANDLER [haproxy : reload haproxy] ******************************************************************************************************************************************************************* |
changed: [web04] | changed: [web04] | ||
- | PLAY RECAP ******************************************************************************************************************************************************************************************************* | + | PLAY RECAP *************************************************************************************************************************************************************************************************** |
- | web04 : ok=5 changed=2 | + | web04 : ok=5 changed=2 |
</ | </ | ||
Ligne 779: | Ligne 769: | ||
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent | Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent | ||
permitted by applicable law. | permitted by applicable law. | ||
- | Last login: | + | Last login: |
trainee@web04: | trainee@web04: | ||
errorfile 408 / | errorfile 408 / | ||
Ligne 798: | Ligne 789: | ||
server web02 10.0.2.55: | server web02 10.0.2.55: | ||
server web03 10.0.2.56: | server web03 10.0.2.56: | ||
+ | |||
trainee@web04: | trainee@web04: | ||
déconnexion | déconnexion | ||
Connection to web04 closed. | Connection to web04 closed. | ||
- | trainee@debian11: | + | trainee@debian11: |
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**Important** : Notez que les quatre lignes concernant les statistiques n'ont pas été incluses dans le fichier. | **Important** : Notez que les quatre lignes concernant les statistiques n'ont pas été incluses dans le fichier. | ||
</ | </ | ||
Ligne 843: | Ligne 835: | ||
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**Important** : Notez que la variable **haproxy_backends** est une liste YAML. | **Important** : Notez que la variable **haproxy_backends** est une liste YAML. | ||
</ | </ | ||
Ligne 1116: | Ligne 1108: | ||
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**Important** : Ce gabarit ne contient que des directives générales. Les directives spécifiques au protocole http ont été remplacées par des **blocs** nommés **globals**, | **Important** : Ce gabarit ne contient que des directives générales. Les directives spécifiques au protocole http ont été remplacées par des **blocs** nommés **globals**, | ||
</ | </ | ||
Ligne 1167: | Ligne 1159: | ||
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**Important** : Notez que les **blocs** nommés **globals**, | **Important** : Notez que les **blocs** nommés **globals**, | ||
</ | </ | ||
Ligne 1285: | Ligne 1277: | ||
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**Important** : Notez que les **blocs** nommés **globals**, | **Important** : Notez que les **blocs** nommés **globals**, | ||
</ | </ | ||
Ligne 1458: | Ligne 1450: | ||
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**Important** : La variable fixée dans **defaults/ | **Important** : La variable fixée dans **defaults/ | ||
</ | </ | ||
Ligne 1471: | Ligne 1463: | ||
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**Important** : La déclaration de la variable peut être faite dans **roles/ | **Important** : La déclaration de la variable peut être faite dans **roles/ | ||
</ | </ | ||
Ligne 1509: | Ligne 1501: | ||
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**Important** : La variable fixée dans **group_vars/ | **Important** : La variable fixée dans **group_vars/ | ||
</ | </ | ||
Ligne 1558: | Ligne 1550: | ||
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**Important** : La variable fixée dans **playbook.yaml** surcharge la variable fixée dans **group_vars/ | **Important** : La variable fixée dans **playbook.yaml** surcharge la variable fixée dans **group_vars/ | ||
</ | </ | ||
Ligne 1657: | Ligne 1649: | ||
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**Important** : Notez que la valeur de la variable **endroit** spécifiée dans le fichier **group_vars/ | **Important** : Notez que la valeur de la variable **endroit** spécifiée dans le fichier **group_vars/ | ||
</ | </ | ||
Ligne 1727: | Ligne 1719: | ||
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**Important** : La variable fixée dans **group_vars/ | **Important** : La variable fixée dans **group_vars/ | ||
</ | </ | ||
Ligne 1779: | Ligne 1771: | ||
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**Important** : La variable fixée dans **host_vars/ | **Important** : La variable fixée dans **host_vars/ | ||
</ | </ | ||
Ligne 1822: | Ligne 1814: | ||
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**Important** : La variable fixée dans sur la **ligne de commande** surcharge toutes les autres variables. | **Important** : La variable fixée dans sur la **ligne de commande** surcharge toutes les autres variables. | ||
</ | </ | ||
Ligne 1896: | Ligne 1888: | ||
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**Important** : Notez que le nom de chaque **Fact** commence par **ansible_**. Évitez donc de créer des variables commençant var cette valeur ! | **Important** : Notez que le nom de chaque **Fact** commence par **ansible_**. Évitez donc de créer des variables commençant var cette valeur ! | ||
</ | </ | ||
Ligne 1971: | Ligne 1963: | ||
roles: | roles: | ||
- exemple01.java | - exemple01.java | ||
- | </ | ||
- | |||
- | Connectez-vous à la machine TargetA et supprimez le paquet **openjdk-8-jre** : | ||
- | |||
- | < | ||
- | trainee@debian11: | ||
- | Debian GNU/Linux 9 | ||
- | Linux targeta.i2tch.loc 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 | ||
- | |||
- | The programs included with the Debian GNU/Linux system are free software; | ||
- | the exact distribution terms for each program are described in the | ||
- | individual files in / | ||
- | |||
- | Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent | ||
- | permitted by applicable law. | ||
- | Last login: Wed Mar 9 11:29:25 2022 from 10.0.2.45 | ||
- | trainee@targeta: | ||
- | ... | ||
- | trainee@targeta: | ||
- | déconnexion | ||
- | Connection to 10.0.2.52 closed. | ||
- | trainee@debian11: | ||
</ | </ | ||
Ligne 2000: | Ligne 1970: | ||
trainee@debian11: | trainee@debian11: | ||
trainee@debian11: | trainee@debian11: | ||
- | trainee@10.0.2.53' | + | trainee@10.0.2.53' |
authorized_keys | authorized_keys | ||
trainee@debian11: | trainee@debian11: | ||
/ | / | ||
- | trainee@debian11: | ||
- | </ | ||
- | |||
- | Connectez-vous à la machine TargetB et supprimez le paquet **java-1.8.0-openjdk** : | ||
- | |||
- | < | ||
- | trainee@debian11: | ||
- | Last login: Wed Mar 9 16:51:41 2022 from 10.0.2.45 | ||
- | [trainee@targetb ~]$ sudo yum -y remove java-1.8.0-openjdk | ||
- | ... | ||
- | [trainee@targetb ~]$ exit | ||
- | logout | ||
- | Connection to 10.0.2.53 closed. | ||
trainee@debian11: | trainee@debian11: | ||
</ | </ | ||
Ligne 2116: | Ligne 2073: | ||
Lecture des informations d' | Lecture des informations d' | ||
353 packages can be upgraded. Run 'apt list --upgradable' | 353 packages can be upgraded. Run 'apt list --upgradable' | ||
+ | </ | ||
+ | Supprimez le paquet **openjdk-8-jre** : | ||
+ | |||
+ | < | ||
+ | trainee@targeta: | ||
+ | ... | ||
trainee@targeta: | trainee@targeta: | ||
déconnexion | déconnexion | ||
Ligne 2155: | Ligne 2118: | ||
(6/6): updates/ | (6/6): updates/ | ||
Metadata Cache Created | Metadata Cache Created | ||
+ | </ | ||
+ | Supprimez le paquet **java-1.8.0-openjdk** : | ||
+ | |||
+ | < | ||
+ | [trainee@targetb ~]$ sudo yum -y remove java-1.8.0-openjdk | ||
+ | ... | ||
[trainee@targetb ~]$ exit | [trainee@targetb ~]$ exit | ||
logout | logout | ||
Ligne 2246: | Ligne 2215: | ||
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**Important** : L' | **Important** : L' | ||
</ | </ | ||
Ligne 2262: | Ligne 2231: | ||
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**Important** : Notez que le mot de passe **fenestros** ne sera pas en clair. | **Important** : Notez que le mot de passe **fenestros** ne sera pas en clair. | ||
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**Important** : Notez que le mot de passe est pour la commande **ansible-vault** et non pas uniquement pour l' | **Important** : Notez que le mot de passe est pour la commande **ansible-vault** et non pas uniquement pour l' | ||
</ | </ | ||
Ligne 2291: | Ligne 2260: | ||
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**Important** : Notez l' | **Important** : Notez l' | ||
</ | </ | ||
Ligne 2319: | Ligne 2288: | ||
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**Important** : Notez que le mot de passe **fenestros** ne sera pas en clair. | **Important** : Notez que le mot de passe **fenestros** ne sera pas en clair. | ||
</ | </ | ||
Ligne 2332: | Ligne 2301: | ||
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**Important** : Notez que le mot de passe **fenestros** ne sera pas en clair. | **Important** : Notez que le mot de passe **fenestros** ne sera pas en clair. | ||
</ | </ | ||
Ligne 2400: | Ligne 2369: | ||
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**Important** : Notez que le mot de passe **fenestros** ne sera pas en clair. | **Important** : Notez que le mot de passe **fenestros** ne sera pas en clair. | ||
</ | </ | ||
Ligne 2414: | Ligne 2383: | ||
</ | </ | ||
- | <WRAP center round important> | + | <WRAP center round important |
**Important** : Notez que le mot de passe **fenestros** ne sera pas en clair. | **Important** : Notez que le mot de passe **fenestros** ne sera pas en clair. | ||
</ | </ | ||
Ligne 2519: | Ligne 2488: | ||
=====LAB #6 - Ansible par la Pratique===== | =====LAB #6 - Ansible par la Pratique===== | ||
- | Connectez-vous à la machine virtuelle **CentOS_7** : | + | Connectez-vous à la machine virtuelle **CentOS7_10.0.2.51_SSH**. |
- | + | ||
- | < | + | |
- | trainee@traineeXX: | + | |
- | </ | + | |
====6.1 - Instructions ==== | ====6.1 - Instructions ==== | ||
Ligne 2766: | Ligne 2731: | ||
< | < | ||
- | [root@centos7 ~]# mv user.yml users.yml | ||
[root@centos7 ~]# ansible-playbook vsftpd.yml | [root@centos7 ~]# ansible-playbook vsftpd.yml | ||
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match ' | [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match ' | ||
Ligne 2965: | Ligne 2929: | ||
----- | ----- | ||
- | Copyright © 2023 Hugh Norris. | + | Copyright © 2024 Hugh Norris. |