Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
elearning:workbooks:centos:8:lcf900:l702 [2022/05/17 08:02] – created adminelearning:workbooks:centos:8:lcf900:l702 [2024/11/30 10:58] (Version actuelle) admin
Ligne 1: Ligne 1:
 ~~PDF:LANDSCAPE~~ ~~PDF:LANDSCAPE~~
  
-Version : **2022.02**+Version : **2024.01**
  
 Dernière mise-à-jour : ~~LASTMOD~~ Dernière mise-à-jour : ~~LASTMOD~~
  
-====== DOF502 - Les Commandes ansible, ansible-playbook et ansible-galaxy======+====== LDF902 - Les Commandes ansible, ansible-playbook et ansible-galaxy======
  
 =====Contenu du Module===== =====Contenu du Module=====
  
-  * **DOF502 - Les Commandes ansible, ansible-playbook et ansible-galaxy**+  * **LDF902 - Les Commandes ansible, ansible-playbook et ansible-galaxy**
     * Contenu du Module     * Contenu du Module
     * LAB #1 - Débuter avec Ansible     * LAB #1 - Débuter avec Ansible
Ligne 35: Ligne 35:
  
 <code> <code>
-[trainee@centos8 ~]$ ansible all -i 10.0.2.52, -m ping +trainee@debian11:~$ ansible all -i 10.0.2.52, -m ping 
-[DEPRECATION WARNING]: Ansible will require Python 3.8 or newer on the controller starting with Ansible 2.12Current version: 3.6.8 (default, Sep 10 2021, 09:13:53) [GCC 8.5.0 20210514 (Red Hat 8.5.0-3)] +[DEPRECATION WARNING]: Distribution debian 9.on host 10.0.2.52 should use  
-This feature will be removed from ansible-core in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.+/usr/bin/python3, but is using /usr/bin/python for backward compatibility with prior  
 +Ansible releasesA future Ansible release will default to using the discovered  
 +platform python for this host. See  
 +https://docs.ansible.com/ansible/2.10/reference_appendices/interpreter_discovery.html 
 + for more information. This feature will be removed in version 2.12. Deprecation  
 +warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
 10.0.2.52 | SUCCESS => { 10.0.2.52 | SUCCESS => {
     "ansible_facts": {     "ansible_facts": {
Ligne 54: Ligne 59:
  
 <code> <code>
-[trainee@centos8 ~]$ ansible --help +trainee@debian11:~$ ansible --help 
-[DEPRECATION WARNING]: Ansible will require Python 3.8 or newer on the controller starting with Ansible 2.12. Current version: 3.6.8 (default, Sep 10 2021, 09:13:53) [GCC 8.5.0 20210514 (Red Hat 8.5.0-3)].  +usage: ansible [-h] [--version] [-v] [-b] [--become-method BECOME_METHOD] [--become-user BECOME_USER] [-K] [-i INVENTORY] [--list-hosts] [-l SUBSET] [-P POLL_INTERVAL] [-B SECONDS] [-o] [-t TREE] [-k] 
-This feature will be removed from ansible-core in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. +               [--private-key PRIVATE_KEY_FILE] [-u REMOTE_USER] [-c CONNECTION] [-T TIMEOUT] [--ssh-common-args SSH_COMMON_ARGS] [--sftp-extra-args SFTP_EXTRA_ARGS] [--scp-extra-args SCP_EXTRA_ARGS] 
-usage: ansible [-h] [--version] [-v] [-b] [--become-method BECOME_METHOD] +               [--ssh-extra-args SSH_EXTRA_ARGS] [-C] [--syntax-check] [-D] [-e EXTRA_VARS] [--vault-id VAULT_IDS] [--ask-vault-password | --vault-password-file VAULT_PASSWORD_FILES] [-f FORKS] 
-               [--become-user BECOME_USER] [-K] [-i INVENTORY] [--list-hosts] +               [-M MODULE_PATH] [--playbook-dir BASEDIR] [-a MODULE_ARGS] [-m MODULE_NAME]
-               [-l SUBSET] [-P POLL_INTERVAL] [-B SECONDS] [-o] [-t TREE] [-k] +
-               [--private-key PRIVATE_KEY_FILE] [-u REMOTE_USER] +
-               [-c CONNECTION] [-T TIMEOUT] +
-               [--ssh-common-args SSH_COMMON_ARGS] +
-               [--sftp-extra-args SFTP_EXTRA_ARGS] +
-               [--scp-extra-args SCP_EXTRA_ARGS] +
-               [--ssh-extra-args SSH_EXTRA_ARGS] [-C] [--syntax-check] [-D] +
-               [-e EXTRA_VARS] [--vault-id VAULT_IDS] +
-               [--ask-vault-password | --vault-password-file VAULT_PASSWORD_FILES] +
-               [-f FORKS] [-M MODULE_PATH] [--playbook-dir BASEDIR+
-               [--task-timeout TASK_TIMEOUT] [-a MODULE_ARGS] [-m MODULE_NAME]+
                pattern                pattern
  
Ligne 80: Ligne 74:
   --ask-vault-password, --ask-vault-pass   --ask-vault-password, --ask-vault-pass
                         ask for vault password                         ask for vault password
-  --list-hosts          outputs a list of matching hosts; does not execute +  --list-hosts          outputs a list of matching hosts; does not execute anything else
-                        anything else+
   --playbook-dir BASEDIR   --playbook-dir BASEDIR
-                        Since this tool does not use playbooks, use this as a +                        Since this tool does not use playbooks, use this as a substitute playbook directory.This sets the relative path for many features including roles/ group_vars/ etc. 
-                        substitute playbook directory.This sets the relative +  --syntax-check        perform a syntax check on the playbook, but do not execute it
-                        path for many features including roles/ group_vars/ +
-                        etc. +
-  --syntax-check        perform a syntax check on the playbook, but do not +
-                        execute it +
-  --task-timeout TASK_TIMEOUT +
-                        set task timeout limit in seconds, must be positive +
-                        integer.+
   --vault-id VAULT_IDS  the vault identity to use   --vault-id VAULT_IDS  the vault identity to use
   --vault-password-file VAULT_PASSWORD_FILES, --vault-pass-file VAULT_PASSWORD_FILES   --vault-password-file VAULT_PASSWORD_FILES, --vault-pass-file VAULT_PASSWORD_FILES
                         vault password file                         vault password file
-  --version             show program's version number, config file location, +  --version             show program's version number, config file location, configured module search path, module location, executable location and exit
-                        configured module search path, module location, +
-                        executable location and exit+
   -B SECONDS, --background SECONDS   -B SECONDS, --background SECONDS
-                        run asynchronously, failing after X seconds +                        run asynchronously, failing after X seconds (default=N/A) 
-                        (default=N/A) +  -C, --check           don't make any changes; instead, try to predict some of the changes that may occur 
-  -C, --check           don't make any changes; instead, try to predict some +  -D, --diff            when changing (small) files and templates, show the differences in those files; works great with --check
-                        of the changes that may occur +
-  -D, --diff            when changing (small) files and templates, show the +
-                        differences in those files; works great with --check+
   -M MODULE_PATH, --module-path MODULE_PATH   -M MODULE_PATH, --module-path MODULE_PATH
-                        prepend colon-separated path(s) to module library (def +                        prepend colon-separated path(s) to module library (default=~/.ansible/plugins/modules:/usr/share/ansible/plugins/modules)
-                        ault=~/.ansible/plugins/modules:/usr/share/ansible/plu +
-                        gins/modules)+
   -P POLL_INTERVAL, --poll POLL_INTERVAL   -P POLL_INTERVAL, --poll POLL_INTERVAL
                         set the poll interval if using -B (default=15)                         set the poll interval if using -B (default=15)
   -a MODULE_ARGS, --args MODULE_ARGS   -a MODULE_ARGS, --args MODULE_ARGS
-                        The action's options in space separated k=v format: -a +                        module arguments
-                        'opt1=val1 opt2=val2'+
   -e EXTRA_VARS, --extra-vars EXTRA_VARS   -e EXTRA_VARS, --extra-vars EXTRA_VARS
-                        set additional variables as key=value or YAML/JSON, if +                        set additional variables as key=value or YAML/JSON, if filename prepend with @
-                        filename prepend with @+
   -f FORKS, --forks FORKS   -f FORKS, --forks FORKS
-                        specify number of parallel processes to use +                        specify number of parallel processes to use (default=5)
-                        (default=5)+
   -h, --help            show this help message and exit   -h, --help            show this help message and exit
   -i INVENTORY, --inventory INVENTORY, --inventory-file INVENTORY   -i INVENTORY, --inventory INVENTORY, --inventory-file INVENTORY
-                        specify inventory host path or comma separated host +                        specify inventory host path or comma separated host list. --inventory-file is deprecated
-                        list. --inventory-file is deprecated+
   -l SUBSET, --limit SUBSET   -l SUBSET, --limit SUBSET
                         further limit selected hosts to an additional pattern                         further limit selected hosts to an additional pattern
   -m MODULE_NAME, --module-name MODULE_NAME   -m MODULE_NAME, --module-name MODULE_NAME
-                        Name of the action to execute (default=command)+                        module name to execute (default=command)
   -o, --one-line        condense output   -o, --one-line        condense output
   -t TREE, --tree TREE  log output to this directory   -t TREE, --tree TREE  log output to this directory
-  -v, --verbose         verbose mode (-vvv for more, -vvvv to enable +  -v, --verbose         verbose mode (-vvv for more, -vvvv to enable connection debugging)
-                        connection debugging)+
  
 Privilege Escalation Options: Privilege Escalation Options:
Ligne 137: Ligne 111:
  
   --become-method BECOME_METHOD   --become-method BECOME_METHOD
-                        privilege escalation method to use (default=sudo), use +                        privilege escalation method to use (default=sudo), use `ansible-doc -t become -l` to list valid choices.
-                        `ansible-doc -t become -l` to list valid choices.+
   --become-user BECOME_USER   --become-user BECOME_USER
                         run operations as this user (default=root)                         run operations as this user (default=root)
   -K, --ask-become-pass   -K, --ask-become-pass
                         ask for privilege escalation password                         ask for privilege escalation password
-  -b, --become          run operations with become (does not imply password +  -b, --become          run operations with become (does not imply password prompting)
-                        prompting)+
  
 Connection Options: Connection Options:
Ligne 154: Ligne 126:
                         specify extra arguments to pass to scp only (e.g. -l)                         specify extra arguments to pass to scp only (e.g. -l)
   --sftp-extra-args SFTP_EXTRA_ARGS   --sftp-extra-args SFTP_EXTRA_ARGS
-                        specify extra arguments to pass to sftp only (e.g. -f, +                        specify extra arguments to pass to sftp only (e.g. -f, -l)
-                        -l)+
   --ssh-common-args SSH_COMMON_ARGS   --ssh-common-args SSH_COMMON_ARGS
-                        specify common arguments to pass to sftp/scp/ssh (e.g. +                        specify common arguments to pass to sftp/scp/ssh (e.g. ProxyCommand)
-                        ProxyCommand)+
   --ssh-extra-args SSH_EXTRA_ARGS   --ssh-extra-args SSH_EXTRA_ARGS
                         specify extra arguments to pass to ssh only (e.g. -R)                         specify extra arguments to pass to ssh only (e.g. -R)
   -T TIMEOUT, --timeout TIMEOUT   -T TIMEOUT, --timeout TIMEOUT
-                        override the connection timeout in seconds +                        override the connection timeout in seconds (default=10)
-                        (default=10)+
   -c CONNECTION, --connection CONNECTION   -c CONNECTION, --connection CONNECTION
                         connection type to use (default=smart)                         connection type to use (default=smart)
Ligne 170: Ligne 139:
                         connect as this user (default=None)                         connect as this user (default=None)
  
-Some actions do not make sense in Ad-Hoc (include, meta, etc)+Some modules do not make sense in Ad-Hoc (include, meta, etc)
 </code> </code>
  
-Les quatre machines **WebXX** mises à votre disposition sont dans le même réseau que la machine centos8 et ont la même configuration ssh et sudo que la machine **debian10** :+Les quatre machines **WebXX** mises à votre disposition sont dans le même réseau que la machine debian11 et ont la même configuration ssh et sudo que la machine **debian10** :
  
 ^ Machine ^ Nom d'hôte ^ Adresse IP ^ ^ Machine ^ Nom d'hôte ^ Adresse IP ^
Ligne 184: Ligne 153:
  
 <code> <code>
-[trainee@centos8 ~]$ scp .ssh/authorized_keys trainee@10.0.2.54:/home/trainee/.ssh/authorized_keys+trainee@debian11:~$ scp .ssh/authorized_keys trainee@10.0.2.54:/home/trainee/.ssh/authorized_keys
 The authenticity of host '10.0.2.54 (10.0.2.54)' can't be established. The authenticity of host '10.0.2.54 (10.0.2.54)' can't be established.
 ECDSA key fingerprint is SHA256:sEfHBv9azmK60cjqF/aJgUc9jg56slNaZQdAUcvBOvE. ECDSA key fingerprint is SHA256:sEfHBv9azmK60cjqF/aJgUc9jg56slNaZQdAUcvBOvE.
Ligne 191: Ligne 160:
 Debian GNU/Linux 9 Debian GNU/Linux 9
 trainee@10.0.2.54's password: trainee trainee@10.0.2.54's password: trainee
-authorized_keys                                                                                                                                                                 100%  888     1.8MB/s   00:00  +authorized_keys                                                                                                                                                             100%  846     2.1MB/s   00:00     
-    +trainee@debian11:~$ scp .ssh/authorized_keys trainee@10.0.2.55:/home/trainee/.ssh/authorized_keys
-[trainee@centos8 ~]$ scp .ssh/authorized_keys trainee@10.0.2.55:/home/trainee/.ssh/authorized_keys+
 The authenticity of host '10.0.2.55 (10.0.2.55)' can't be established. The authenticity of host '10.0.2.55 (10.0.2.55)' can't be established.
 ECDSA key fingerprint is SHA256:sEfHBv9azmK60cjqF/aJgUc9jg56slNaZQdAUcvBOvE. ECDSA key fingerprint is SHA256:sEfHBv9azmK60cjqF/aJgUc9jg56slNaZQdAUcvBOvE.
Ligne 200: Ligne 168:
 Debian GNU/Linux 9 Debian GNU/Linux 9
 trainee@10.0.2.55's password: trainee trainee@10.0.2.55's password: trainee
-authorized_keys                                                                                                                                                                 100%  888     2.1MB/s   00:00  +authorized_keys                                                                                                                                                             100%  846     1.7MB/s   00:00     
-    +trainee@debian11:~$ scp .ssh/authorized_keys trainee@10.0.2.56:/home/trainee/.ssh/authorized_keys
-[trainee@centos8 ~]$ scp .ssh/authorized_keys trainee@10.0.2.56:/home/trainee/.ssh/authorized_keys+
 The authenticity of host '10.0.2.56 (10.0.2.56)' can't be established. The authenticity of host '10.0.2.56 (10.0.2.56)' can't be established.
 ECDSA key fingerprint is SHA256:sEfHBv9azmK60cjqF/aJgUc9jg56slNaZQdAUcvBOvE. ECDSA key fingerprint is SHA256:sEfHBv9azmK60cjqF/aJgUc9jg56slNaZQdAUcvBOvE.
Ligne 209: Ligne 176:
 Debian GNU/Linux 9 Debian GNU/Linux 9
 trainee@10.0.2.56's password: trainee trainee@10.0.2.56's password: trainee
-authorized_keys                                                                                                                                                                 100%  888     1.7MB/  00:00     +authorized_keys                                                                                                                                                             100%  846     1.7MB/  00:00     
- +trainee@debian11:~$ scp .ssh/authorized_keys trainee@10.0.2.57:/home/trainee/.ssh/authorized_keys
-[trainee@centos8 ~]$ scp .ssh/authorized_keys trainee@10.0.2.57:/home/trainee/.ssh/authorized_keys+
 The authenticity of host '10.0.2.57 (10.0.2.57)' can't be established. The authenticity of host '10.0.2.57 (10.0.2.57)' can't be established.
 ECDSA key fingerprint is SHA256:sEfHBv9azmK60cjqF/aJgUc9jg56slNaZQdAUcvBOvE. ECDSA key fingerprint is SHA256:sEfHBv9azmK60cjqF/aJgUc9jg56slNaZQdAUcvBOvE.
Ligne 218: Ligne 184:
 Debian GNU/Linux 9 Debian GNU/Linux 9
 trainee@10.0.2.57's password: trainee trainee@10.0.2.57's password: trainee
-authorized_keys                                                                                                                                                                 100%  888     1.3MB/  00:00+authorized_keys  
 </code> </code>
  
-Modifier le fichier **/etc/hosts** dans **centos8** :+Modifier le fichier **/etc/hosts** dans **debian11** :
  
 <code> <code>
-[trainee@centos8 ~]$ su -+trainee@debian11:~$ su -
 Password: fenestros Password: fenestros
-[root@centos8 ~]# vi /etc/hosts +root@debian11:~# vi /etc/hosts 
-[root@centos8 ~]# cat /etc/hosts +root@debian11:~# cat /etc/hosts 
-127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4 +127.0.0.1       localhost 
-::1         localhost localhost.localdomain localhost6 localhost6.localdomain6 +10.0.2.46       debian11.ittraining.loc debian11
-10.0.2.45 centos8.ittraining.loc centos8+
 10.0.2.54 web01.i2tch.loc web01 10.0.2.54 web01.i2tch.loc web01
 10.0.2.55 web02.i2tch.loc web02 10.0.2.55 web02.i2tch.loc web02
 10.0.2.56 web03.i2tch.loc web03 10.0.2.56 web03.i2tch.loc web03
 10.0.2.57 web04.i2tch.loc web04 10.0.2.57 web04.i2tch.loc web04
-[root@centos8 ~]# exit+ 
 +# The following lines are desirable for IPv6 capable hosts 
 +::1     localhost ip6-localhost ip6-loopback 
 +ff02::1 ip6-allnodes 
 +ff02::2 ip6-allrouters 
 +root@debian11:~# exit
 logout logout
-[trainee@centos8 ~]$ 
 </code> </code>
  
Ligne 243: Ligne 212:
  
 <code> <code>
-[trainee@centos8 ~]$ ssh -l trainee web01+trainee@debian11:~$ ssh -l trainee web01 
 +The authenticity of host 'web01 (10.0.2.54)' can't be established. 
 +ECDSA key fingerprint is SHA256:sEfHBv9azmK60cjqF/aJgUc9jg56slNaZQdAUcvBOvE. 
 +Are you sure you want to continue connecting (yes/no/[fingerprint])? yes 
 +Warning: Permanently added 'web01' (ECDSA) to the list of known hosts.
 Debian GNU/Linux 9 Debian GNU/Linux 9
 Linux web01.i2tch.loc 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 Linux web01.i2tch.loc 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64
Ligne 253: Ligne 226:
 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: Wed Mar  9 11:47:41 2022 from 10.0.2.45+Last login: Sun Mar 21 08:49:31 2021 from 10.0.2.10 
 +<code> 
 + 
 +Modifiez le contenu du fichier **/etc/apt/sources.list** : 
 + 
 +<code> 
 +trainee@web01:~$ sudo vi /etc/apt/sources.list 
 + 
 +trainee@web01:~$ cat /etc/apt/sources.list 
 +#  
 + 
 +# deb cdrom:[Debian GNU/Linux 9.6.0 _Stretch_ - Official amd64 NETINST 20181110-11:34]/ stretch main 
 + 
 +#deb cdrom:[Debian GNU/Linux 9.6.0 _Stretch_ - Official amd64 NETINST 20181110-11:34]/ stretch main 
 + 
 +deb http://archive.debian.org/debian/ stretch main 
 +deb-src http://archive.debian.org/debian/ stretch main 
 + 
 +deb http://archive.debian.org/debian-security stretch/updates main 
 +deb-src http://archive.debian.org/debian-security stretch/updates main 
 trainee@web01:~$ sudo apt update trainee@web01:~$ sudo apt update
-Réception de:1 http://security.debian.org/debian-security stretch/updates InRelease [53,0 kB] +Ign:1 http://archive.debian.org/debian stretch InRelease 
-Ign:2 http://ftp.fr.debian.org/debian stretch InRelease                              +Réception de:2 http://archive.debian.org/debian-security stretch/updates InRelease [59,1 kB] 
-Réception de:3 http://ftp.fr.debian.org/debian stretch-updates InRelease [93,6 kB] +Réception de:3 http://archive.debian.org/debian stretch Release [118 kB] 
-Réception de:4 http://ftp.fr.debian.org/debian stretch Release [118 kB] +Réception de:4 http://archive.debian.org/debian-security stretch/updates/main Sources [413 kB] 
-Réception de:5 http://ftp.fr.debian.org/debian stretch Release.gpg [3 177 B+Réception de:5 http://archive.debian.org/debian-security stretch/updates/main amd64 Packages [782 kB
-Réception de:6 http://security.debian.org/debian-security stretch/updates/main Sources [396 kB] +Réception de:6 http://archive.debian.org/debian-security stretch/updates/main Translation-en [368 kB] 
-Réception de:7 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [759 kB+Réception de:7 http://archive.debian.org/debian stretch Release.gpg [3 177 B
-Réception de:8 http://security.debian.org/debian-security stretch/updates/main Translation-en [354 kB] +Réception de:8 http://archive.debian.org/debian stretch/main Sources [6 736 kB] 
-Réception de:9 http://ftp.fr.debian.org/debian stretch/main Sources [6 736 kB]        +Réception de:9 http://archive.debian.org/debian stretch/main amd64 Packages [7 080 kB] 
-Réception de:10 http://ftp.fr.debian.org/debian stretch/main amd64 Packages [7 080 kB] +Réception de:10 http://archive.debian.org/debian stretch/main Translation-en [5 377 kB]                                                                                                                       
-Réception de:11 http://ftp.fr.debian.org/debian stretch/main Translation-en [5 377 kB] +Réception de:11 http://archive.debian.org/debian stretch/main Translation-fr [1 894 kB]                                                                                                                       
-21,Mo réceptionnés en 32s (638 ko/s)                                                                                                                                                                           +22,Mo réceptionnés en 24s (949 ko/s)                                                                                                                                                                       
 Lecture des listes de paquets... Fait Lecture des listes de paquets... Fait
 Construction de l'arbre des dépendances        Construction de l'arbre des dépendances       
 Lecture des informations d'état... Fait Lecture des informations d'état... Fait
-341 packages can be upgraded. Run 'apt list --upgradable' to see them.+358 packages can be upgraded. Run 'apt list --upgradable' to see them. 
 trainee@web01:~$ exit trainee@web01:~$ exit
 déconnexion déconnexion
 Connection to web01 closed. Connection to web01 closed.
-[trainee@centos8 ~]$ ssh -l trainee web02+</code> 
 + 
 +<code> 
 +trainee@debian11:~$ ssh -l trainee web02 
 +The authenticity of host 'web02 (10.0.2.55)' can't be established. 
 +ECDSA key fingerprint is SHA256:sEfHBv9azmK60cjqF/aJgUc9jg56slNaZQdAUcvBOvE. 
 +Are you sure you want to continue connecting (yes/no/[fingerprint])? yes 
 +Warning: Permanently added 'web02' (ECDSA) to the list of known hosts.
 Debian GNU/Linux 9 Debian GNU/Linux 9
 Linux web02.i2tch.loc 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 Linux web02.i2tch.loc 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64
Ligne 284: Ligne 285:
 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: Wed Mar  9 11:40:49 2022 from 10.0.2.45+Last login: Sun Mar 21 08:50:56 2021 from 10.0.2.10 
 +</code> 
 + 
 +Modifiez le contenu du fichier **/etc/apt/sources.list** : 
 + 
 +<code> 
 +trainee@web02:~$ sudo vi /etc/apt/sources.list 
 + 
 +trainee@web02:~$ cat /etc/apt/sources.list 
 +#  
 + 
 +# deb cdrom:[Debian GNU/Linux 9.6.0 _Stretch_ - Official amd64 NETINST 20181110-11:34]/ stretch main 
 + 
 +#deb cdrom:[Debian GNU/Linux 9.6.0 _Stretch_ - Official amd64 NETINST 20181110-11:34]/ stretch main 
 + 
 +deb http://archive.debian.org/debian/ stretch main 
 +deb-src http://archive.debian.org/debian/ stretch main 
 + 
 +deb http://archive.debian.org/debian-security stretch/updates main 
 +deb-src http://archive.debian.org/debian-security stretch/updates main 
 trainee@web02:~$ sudo apt update trainee@web02:~$ sudo apt update
-Réception de:1 http://security.debian.org/debian-security stretch/updates InRelease [53,0 kB] +Ign:1 http://archive.debian.org/debian stretch InRelease 
-Ign:2 http://ftp.fr.debian.org/debian stretch InRelease                         +Réception de:2 http://archive.debian.org/debian-security stretch/updates InRelease [59,1 kB] 
-Réception de:3 http://ftp.fr.debian.org/debian stretch-updates InRelease [93,6 kB] +Réception de:3 http://archive.debian.org/debian stretch Release [118 kB] 
-Réception de:4 http://ftp.fr.debian.org/debian stretch Release [118 kB] +Réception de:4 http://archive.debian.org/debian-security stretch/updates/main Sources [413 kB] 
-Réception de:5 http://ftp.fr.debian.org/debian stretch Release.gpg [3 177 B+Réception de:5 http://archive.debian.org/debian-security stretch/updates/main amd64 Packages [782 kB
-Réception de:6 http://security.debian.org/debian-security stretch/updates/main Sources [396 kB] +Réception de:6 http://archive.debian.org/debian-security stretch/updates/main Translation-en [368 kB] 
-Réception de:7 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [759 kB+Réception de:7 http://archive.debian.org/debian stretch Release.gpg [3 177 B
-Réception de:8 http://security.debian.org/debian-security stretch/updates/main Translation-en [354 kB] +Réception de:8 http://archive.debian.org/debian stretch/main Sources [6 736 kB] 
-Réception de:9 http://ftp.fr.debian.org/debian stretch/main Sources [6 736 kB]        +Réception de:9 http://archive.debian.org/debian stretch/main amd64 Packages [7 080 kB] 
-Réception de:10 http://ftp.fr.debian.org/debian stretch/main amd64 Packages [7 080 kB] +Réception de:10 http://archive.debian.org/debian stretch/main Translation-en [5 377 kB]                                                                                                                       
-Réception de:11 http://ftp.fr.debian.org/debian stretch/main Translation-en [5 377 kB] +Réception de:11 http://archive.debian.org/debian stretch/main Translation-fr [1 894 kB]                                                                                                                       
-21,Mo réceptionnés en 32s (639 ko/s)                                                                                                                                                                           +22,Mo réceptionnés en 24s (949 ko/s)                                                                                                                                                                       
 Lecture des listes de paquets... Fait Lecture des listes de paquets... Fait
 Construction de l'arbre des dépendances        Construction de l'arbre des dépendances       
 Lecture des informations d'état... Fait Lecture des informations d'état... Fait
-341 packages can be upgraded. Run 'apt list --upgradable' to see them.+358 packages can be upgraded. Run 'apt list --upgradable' to see them. 
 trainee@web02:~$ exit trainee@web02:~$ exit
 déconnexion déconnexion
 Connection to web02 closed. Connection to web02 closed.
-[trainee@centos8 ~]$ ssh -l trainee web03+</code> 
 + 
 +<code> 
 +trainee@debian11:~$ ssh -l trainee web03 
 +The authenticity of host 'web03 (10.0.2.56)' can't be established. 
 +ECDSA key fingerprint is SHA256:sEfHBv9azmK60cjqF/aJgUc9jg56slNaZQdAUcvBOvE. 
 +Are you sure you want to continue connecting (yes/no/[fingerprint])? yes 
 +Warning: Permanently added 'web03' (ECDSA) to the list of known hosts.
 Debian GNU/Linux 9 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 Linux web03.i2tch.loc 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64
Ligne 315: Ligne 344:
 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: Wed Mar  9 11:40:49 2022 from 10.0.2.45+Last login: Sun Mar 21 08:51:51 2021 from 10.0.2.10 
 +</code> 
 + 
 +Modifiez le contenu du fichier **/etc/apt/sources.list** : 
 + 
 +<code> 
 +trainee@web03:~$ sudo vi /etc/apt/sources.list 
 + 
 +trainee@web03:~$ cat /etc/apt/sources.list 
 +#  
 + 
 +# deb cdrom:[Debian GNU/Linux 9.6.0 _Stretch_ - Official amd64 NETINST 20181110-11:34]/ stretch main 
 + 
 +#deb cdrom:[Debian GNU/Linux 9.6.0 _Stretch_ - Official amd64 NETINST 20181110-11:34]/ stretch main 
 + 
 +deb http://archive.debian.org/debian/ stretch main 
 +deb-src http://archive.debian.org/debian/ stretch main 
 + 
 +deb http://archive.debian.org/debian-security stretch/updates main 
 +deb-src http://archive.debian.org/debian-security stretch/updates main 
 trainee@web03:~$ sudo apt update trainee@web03:~$ sudo apt update
-Réception de:1 http://security.debian.org/debian-security stretch/updates InRelease [53,0 kB] +Ign:1 http://archive.debian.org/debian stretch InRelease 
-Ign:2 http://ftp.fr.debian.org/debian stretch InRelease                         +Réception de:2 http://archive.debian.org/debian-security stretch/updates InRelease [59,1 kB] 
-Réception de:3 http://ftp.fr.debian.org/debian stretch-updates InRelease [93,6 kB] +Réception de:3 http://archive.debian.org/debian stretch Release [118 kB] 
-Réception de:4 http://ftp.fr.debian.org/debian stretch Release [118 kB] +Réception de:4 http://archive.debian.org/debian-security stretch/updates/main Sources [413 kB] 
-Réception de:5 http://ftp.fr.debian.org/debian stretch Release.gpg [3 177 B+Réception de:5 http://archive.debian.org/debian-security stretch/updates/main amd64 Packages [782 kB
-Réception de:6 http://security.debian.org/debian-security stretch/updates/main Sources [396 kB] +Réception de:6 http://archive.debian.org/debian-security stretch/updates/main Translation-en [368 kB] 
-Réception de:7 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [759 kB+Réception de:7 http://archive.debian.org/debian stretch Release.gpg [3 177 B
-Réception de:8 http://security.debian.org/debian-security stretch/updates/main Translation-en [354 kB] +Réception de:8 http://archive.debian.org/debian stretch/main Sources [6 736 kB] 
-Réception de:9 http://ftp.fr.debian.org/debian stretch/main Sources [6 736 kB]        +Réception de:9 http://archive.debian.org/debian stretch/main amd64 Packages [7 080 kB] 
-Réception de:10 http://ftp.fr.debian.org/debian stretch/main amd64 Packages [7 080 kB] +Réception de:10 http://archive.debian.org/debian stretch/main Translation-en [5 377 kB]                                                                                                                       
-Réception de:11 http://ftp.fr.debian.org/debian stretch/main Translation-en [5 377 kB] +Réception de:11 http://archive.debian.org/debian stretch/main Translation-fr [1 894 kB]                                                                                                                       
-21,Mo réceptionnés en 40s (524 ko/s)                                                                                                                                                                           +22,Mo réceptionnés en 24s (949 ko/s)                                                                                                                                                                       
 Lecture des listes de paquets... Fait Lecture des listes de paquets... Fait
 Construction de l'arbre des dépendances        Construction de l'arbre des dépendances       
 Lecture des informations d'état... Fait Lecture des informations d'état... Fait
-341 packages can be upgraded. Run 'apt list --upgradable' to see them.+358 packages can be upgraded. Run 'apt list --upgradable' to see them. 
 trainee@web03:~$ exit trainee@web03:~$ exit
 déconnexion déconnexion
 Connection to web03 closed. Connection to web03 closed.
-[trainee@centos8 ~]$ ssh -l trainee web04+</code> 
 + 
 +<code> 
 +trainee@debian11:~$ ssh -l trainee web04 
 +The authenticity of host 'web04 (10.0.2.57)' can't be established. 
 +ECDSA key fingerprint is SHA256:sEfHBv9azmK60cjqF/aJgUc9jg56slNaZQdAUcvBOvE. 
 +Are you sure you want to continue connecting (yes/no/[fingerprint])? yes 
 +Warning: Permanently added 'web04' (ECDSA) to the list of known hosts.
 Debian GNU/Linux 9 Debian GNU/Linux 9
 Linux web04.i2tch.loc 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 Linux web04.i2tch.loc 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64
Ligne 346: Ligne 403:
 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: Wed Mar  9 11:40:49 2022 from 10.0.2.45+Last login: Sun Mar 21 08:52:36 2021 from 10.0.2.10 
 +</code> 
 + 
 +Modifiez le contenu du fichier **/etc/apt/sources.list** : 
 + 
 +<code> 
 +trainee@web04:~$ sudo vi /etc/apt/sources.list 
 + 
 +trainee@web04:~$ cat /etc/apt/sources.list 
 +#  
 + 
 +# deb cdrom:[Debian GNU/Linux 9.6.0 _Stretch_ - Official amd64 NETINST 20181110-11:34]/ stretch main 
 + 
 +#deb cdrom:[Debian GNU/Linux 9.6.0 _Stretch_ - Official amd64 NETINST 20181110-11:34]/ stretch main 
 + 
 +deb http://archive.debian.org/debian/ stretch main 
 +deb-src http://archive.debian.org/debian/ stretch main 
 + 
 +deb http://archive.debian.org/debian-security stretch/updates main 
 +deb-src http://archive.debian.org/debian-security stretch/updates main 
 trainee@web04:~$ sudo apt update trainee@web04:~$ sudo apt update
-Réception de:1 http://security.debian.org/debian-security stretch/updates InRelease [53,0 kB] +Ign:1 http://archive.debian.org/debian stretch InRelease 
-Ign:2 http://ftp.fr.debian.org/debian stretch InRelease           +Réception de:2 http://archive.debian.org/debian-security stretch/updates InRelease [59,1 kB] 
-Réception de:3 http://ftp.fr.debian.org/debian stretch-updates InRelease [93,6 kB] +Réception de:3 http://archive.debian.org/debian stretch Release [118 kB] 
-Réception de:4 http://ftp.fr.debian.org/debian stretch Release [118 kB+Réception de:4 http://archive.debian.org/debian stretch Release.gpg [3 177 B
-Réception de:5 http://ftp.fr.debian.org/debian stretch Release.gpg [3 177 B+Réception de:5 http://archive.debian.org/debian-security stretch/updates/main Sources [413 kB
-Réception de:6 http://security.debian.org/debian-security stretch/updates/main Sources [396 kB] +Réception de:6 http://archive.debian.org/debian-security stretch/updates/main amd64 Packages [782 kB] 
-Réception de:7 http://ftp.fr.debian.org/debian stretch/main Sources [6 736 kB] +Réception de:7 http://archive.debian.org/debian-security stretch/updates/main Translation-en [368 kB] 
-Réception de:8 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [759 kB] +Réception de:8 http://archive.debian.org/debian stretch/main Sources [6 736 kB] 
-Réception de:9 http://ftp.fr.debian.org/debian stretch/main amd64 Packages [7 080 kB]         +Réception de:9 http://archive.debian.org/debian stretch/main amd64 Packages [7 080 kB] 
-Réception de:10 http://security.debian.org/debian-security stretch/updates/main Translation-en [354 kB] +Réception de:10 http://archive.debian.org/debian stretch/main Translation-fr [1 894 kB] 
-Réception de:11 http://ftp.fr.debian.org/debian stretch/main Translation-en [5 377 kB]             +Réception de:11 http://archive.debian.org/debian stretch/main Translation-en [5 377 kB] 
-21,Mo réceptionnés en 39s (535 ko/s)                                                                                                                                                                           +22,Mo réceptionnés en 27s (843 ko/s)                                                                                                                                                                       
 Lecture des listes de paquets... Fait Lecture des listes de paquets... Fait
 Construction de l'arbre des dépendances        Construction de l'arbre des dépendances       
 Lecture des informations d'état... Fait Lecture des informations d'état... Fait
-341 packages can be upgraded. Run 'apt list --upgradable' to see them.+358 packages can be upgraded. Run 'apt list --upgradable' to see them. 
 trainee@web04:~$ exit trainee@web04:~$ exit
 déconnexion déconnexion
 Connection to web04 closed. Connection to web04 closed.
-[trainee@centos8 ~]$ 
 </code> </code>
  
Ligne 373: Ligne 450:
  
 <code> <code>
-[trainee@centos8 ~]$ ansible all -i 10.0.2.54, -m ping +trainee@debian11:~$ ansible all -i 10.0.2.54, -m ping 
-[DEPRECATION WARNING]: Ansible will require Python 3.8 or newer on the controller starting with Ansible 2.12Current version: 3.6.8 (default, Sep 10 2021, 09:13:53) [GCC 8.5.0 20210514 (Red Hat 8.5.0-3)] +[DEPRECATION WARNING]: Distribution debian 9.on host 10.0.2.54 should use /usr/bin/python3, but is using /usr/bin/python for backward compatibility with prior Ansible releasesA future Ansible release  
-This feature will be removed from ansible-core in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.+will default to using the discovered platform python for this host. See https://docs.ansible.com/ansible/2.10/reference_appendices/interpreter_discovery.html for more information. This feature will be  
 +removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
 10.0.2.54 | SUCCESS => { 10.0.2.54 | SUCCESS => {
     "ansible_facts": {     "ansible_facts": {
Ligne 383: Ligne 461:
     "ping": "pong"     "ping": "pong"
 } }
-[trainee@centos8 ~]$ ansible all -i 10.0.2.55, -m ping + 
-[DEPRECATION WARNING]: Ansible will require Python 3.8 or newer on the controller starting with Ansible 2.12Current version: 3.6.8 (default, Sep 10 2021, 09:13:53) [GCC 8.5.0 20210514 (Red Hat 8.5.0-3)] +trainee@debian11:~$ ansible all -i 10.0.2.55, -m ping 
-This feature will be removed from ansible-core in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.+[DEPRECATION WARNING]: Distribution debian 9.on host 10.0.2.55 should use /usr/bin/python3, but is using /usr/bin/python for backward compatibility with prior Ansible releasesA future Ansible release  
 +will default to using the discovered platform python for this host. See https://docs.ansible.com/ansible/2.10/reference_appendices/interpreter_discovery.html for more information. This feature will be  
 +removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
 10.0.2.55 | SUCCESS => { 10.0.2.55 | SUCCESS => {
     "ansible_facts": {     "ansible_facts": {
Ligne 393: Ligne 473:
     "ping": "pong"     "ping": "pong"
 } }
-</code> 
  
-Utilisez de nouveau la commande **ansible** afin de vérifier le statut des machines :+trainee@debian11:~$ ansible all -i 10.0.2.56, -m ping 
 +[DEPRECATION WARNING]: Distribution debian 9.7 on host 10.0.2.56 should use /usr/bin/python3, but is using /usr/bin/python for backward compatibility with prior Ansible releases. A future Ansible release  
 +will default to using the discovered platform python for this host. See https://docs.ansible.com/ansible/2.10/reference_appendices/interpreter_discovery.html for more information. This feature will be  
 +removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. 
 +10.0.2.56 | SUCCESS => { 
 +    "ansible_facts":
 +        "discovered_interpreter_python": "/usr/bin/python" 
 +    }, 
 +    "changed": false, 
 +    "ping""pong" 
 +}
  
-<code> +trainee@debian11:~$ ansible all -i 10.0.2.57, -m ping 
-[trainee@centos8 ~]$ ansible all -i web01,web02,web03,web04 -m ping +[DEPRECATION WARNING]: Distribution debian 9.on host 10.0.2.57 should use /usr/bin/python3, but is using /usr/bin/python for backward compatibility with prior Ansible releasesA future Ansible release  
-[DEPRECATION WARNING]: Ansible will require Python 3.8 or newer on the controller starting with Ansible 2.12Current version: 3.6.8 (default, Sep 10 2021, 09:13:53) [GCC 8.5.0 20210514 (Red Hat 8.5.0-3)] +will default to using the discovered platform python for this host. See https://docs.ansible.com/ansible/2.10/reference_appendices/interpreter_discovery.html for more information. This feature will be  
-This feature will be removed from ansible-core in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. +removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. 
-web02 | SUCCESS => {+10.0.2.57 | SUCCESS => {
     "ansible_facts": {     "ansible_facts": {
         "discovered_interpreter_python": "/usr/bin/python"         "discovered_interpreter_python": "/usr/bin/python"
Ligne 408: Ligne 497:
     "ping": "pong"     "ping": "pong"
 } }
 +
 +trainee@debian11:~$
 +</code>
 +
 +Utilisez de nouveau la commande **ansible** afin de vérifier le statut des machines :
 +
 +<code>
 +trainee@debian11:~$ ansible all -i web01,web02,web03,web04 -m ping
 +[DEPRECATION WARNING]: Distribution debian 9.7 on host web01 should use /usr/bin/python3, but is using /usr/bin/python for backward compatibility with prior Ansible releases. A future Ansible release will 
 +default to using the discovered platform python for this host. See https://docs.ansible.com/ansible/2.10/reference_appendices/interpreter_discovery.html for more information. This feature will be removed 
 +in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
 web01 | SUCCESS => { web01 | SUCCESS => {
     "ansible_facts": {     "ansible_facts": {
Ligne 415: Ligne 515:
     "ping": "pong"     "ping": "pong"
 } }
 +[DEPRECATION WARNING]: Distribution debian 9.7 on host web03 should use /usr/bin/python3, but is using /usr/bin/python for backward compatibility with prior Ansible releases. A future Ansible release will 
 +default to using the discovered platform python for this host. See https://docs.ansible.com/ansible/2.10/reference_appendices/interpreter_discovery.html for more information. This feature will be removed 
 +in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
 web03 | SUCCESS => { web03 | SUCCESS => {
     "ansible_facts": {     "ansible_facts": {
Ligne 422: Ligne 525:
     "ping": "pong"     "ping": "pong"
 } }
 +[DEPRECATION WARNING]: Distribution debian 9.7 on host web04 should use /usr/bin/python3, but is using /usr/bin/python for backward compatibility with prior Ansible releases. A future Ansible release will 
 +default to using the discovered platform python for this host. See https://docs.ansible.com/ansible/2.10/reference_appendices/interpreter_discovery.html for more information. This feature will be removed 
 +in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
 web04 | SUCCESS => { web04 | SUCCESS => {
 +    "ansible_facts": {
 +        "discovered_interpreter_python": "/usr/bin/python"
 +    },
 +    "changed": false,
 +    "ping": "pong"
 +}
 +[DEPRECATION WARNING]: Distribution debian 9.7 on host web02 should use /usr/bin/python3, but is using /usr/bin/python for backward compatibility with prior Ansible releases. A future Ansible release will 
 +default to using the discovered platform python for this host. See https://docs.ansible.com/ansible/2.10/reference_appendices/interpreter_discovery.html for more information. This feature will be removed 
 +in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
 +web02 | SUCCESS => {
     "ansible_facts": {     "ansible_facts": {
         "discovered_interpreter_python": "/usr/bin/python"         "discovered_interpreter_python": "/usr/bin/python"
Ligne 438: Ligne 554:
  
 <code> <code>
-[trainee@centos8 ~]$ ansible all -i web01,web02,web03,web04 -m command --args 'uptime' +trainee@debian11:~$ ansible all -i web01,web02,web03,web04 -m command --args 'uptime' 
-[DEPRECATION WARNING]: Ansible will require Python 3.8 or newer on the controller starting with Ansible 2.12Current version: 3.6.8 (defaultSep 10 202109:13:53) [GCC 8.5.0 20210514 (Red Hat 8.5.0-3)] +[DEPRECATION WARNING]: Distribution debian 9.on host web01 should use /usr/bin/python3, but is using /usr/bin/python for backward compatibility with prior Ansible releases. A future Ansible release will  
-This feature will be removed from ansible-core in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.+default to using the discovered platform python for this host. See https://docs.ansible.com/ansible/2.10/reference_appendices/interpreter_discovery.html for more information. This feature will be removed  
 +in version 2.12Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. 
 +web01 | CHANGED | rc=0 >> 
 + 14:40:05 up 21 min 1 user load average0,01, 0,08, 0,15 
 +[DEPRECATION WARNING]: Distribution debian 9.7 on host web02 should use /usr/bin/python3, but is using /usr/bin/python for backward compatibility with prior Ansible releasesA future Ansible release will  
 +default to using the discovered platform python for this hostSee https://docs.ansible.com/ansible/2.10/reference_appendices/interpreter_discovery.html for more information. This feature will be removed  
 +in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
 web02 | CHANGED | rc=0 >> web02 | CHANGED | rc=0 >>
- 11:40:49 up 18:26,  1 user,  load average: 0,24, 0,11, 0,03+ 14:40:05 up 21 min,  1 user,  load average: 0,01, 0,08, 0,19 
 +[DEPRECATION WARNING]: Distribution debian 9.7 on host web03 should use /usr/bin/python3, but is using /usr/bin/python for backward compatibility with prior Ansible releases. A future Ansible release will  
 +default to using the discovered platform python for this host. See https://docs.ansible.com/ansible/2.10/reference_appendices/interpreter_discovery.html for more information. This feature will be removed  
 +in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
 web03 | CHANGED | rc=0 >> web03 | CHANGED | rc=0 >>
- 11:40:49 up 18:26,  1 user,  load average: 0,10, 0,03, 0,01 + 14:40:05 up 21 min,  1 user,  load average: 0,13, 0,10, 0,21 
-web01 | CHANGED | rc=0 >> +[DEPRECATION WARNING]Distribution debian 9.7 on host web04 should use /usr/bin/python3but is using /usr/bin/python for backward compatibility with prior Ansible releases. A future Ansible release will  
- 11:40:49 up 18:26 1 user,  load average0,00, 0,00, 0,00+default to using the discovered platform python for this host. See https://docs.ansible.com/ansible/2.10/reference_appendices/interpreter_discovery.html for more information. This feature will be removed  
 +in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
 web04 | CHANGED | rc=0 >> web04 | CHANGED | rc=0 >>
- 11:40:49 up 18:26,  1 user,  load average: 0,00, 0,00, 0,00+ 14:40:05 up 21 min,  1 user,  load average: 0,00, 0,08, 0,22
 </code> </code>
  
Ligne 740: Ligne 866:
 </WRAP> </WRAP>
  
-Dans la machine virtuelle **centos8**, créez le fichier Inventory File suivant :+Dans la machine virtuelle **debian11**, créez le fichier Inventory File suivant :
  
 <code> <code>
-[trainee@centos8 ~]$ vi inventory +trainee@debian11:~$ vi inventory 
-[trainee@centos8 ~]$ cat inventory+trainee@debian11:~$ cat inventory
 [basededonnees] [basededonnees]
 web01 web01
Ligne 767: Ligne 893:
  
 <code> <code>
-[trainee@centos8 ~]$ vi playbook.yaml +trainee@debian11:~$ vi playbook.yaml 
-[trainee@centos8 ~]$ cat playbook.yaml+trainee@debian11:~$ cat playbook.yaml
 --- ---
 - hosts: basededonnees - hosts: basededonnees
Ligne 796: Ligne 922:
  
 <code> <code>
-[trainee@centos8 ~]$ ansible-playbook -i inventory playbook.yaml +trainee@debian11:~$ ansible-playbook -i inventory playbook.yaml
-[DEPRECATION WARNING]: Ansible will require Python 3.8 or newer on the controller starting with Ansible 2.12. Current version: 3.6.8 (default, Sep 10 2021, 09:13:53) [GCC 8.5.0 20210514 (Red Hat 8.5.0-3)].  +
-This feature will be removed from ansible-core in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.+
  
-PLAY [basededonnees] *********************************************************************************************************************************************************************************************+PLAY [basededonnees] *****************************************************************************************************************************************************************************************
  
-TASK [Gathering Facts] *******************************************************************************************************************************************************************************************+TASK [Gathering Facts] *************************************************************************************************************************************************************************************** 
 +[DEPRECATION WARNING]: Distribution debian 9.7 on host web01 should use /usr/bin/python3, but is using /usr/bin/python for backward compatibility with prior Ansible releases. A future Ansible release will  
 +default to using the discovered platform python for this host. See https://docs.ansible.com/ansible/2.10/reference_appendices/interpreter_discovery.html for more information. This feature will be removed  
 +in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
 ok: [web01] ok: [web01]
  
-TASK [install] ***************************************************************************************************************************************************************************************************+TASK [install] *********************************************************************************************************************************************************************************************** 
 +[WARNING]: Updating cache and auto-installing missing dependency: python-apt
 changed: [web01] changed: [web01]
  
-TASK [service] ***************************************************************************************************************************************************************************************************+TASK [service] ***********************************************************************************************************************************************************************************************
 ok: [web01] ok: [web01]
  
-PLAY [dotcms] **************************************************************************************************************************************************************************************************** +PLAY [dotcms] ************************************************************************************************************************************************************************************************ 
-TASK [Gathering Facts] *******************************************************************************************************************************************************************************************+ 
 +TASK [Gathering Facts] *************************************************************************************************************************************************************************************** 
 +[DEPRECATION WARNING]: Distribution debian 9.7 on host web02 should use /usr/bin/python3, but is using /usr/bin/python for backward compatibility with prior Ansible releases. A future Ansible release will  
 +default to using the discovered platform python for this host. See https://docs.ansible.com/ansible/2.10/reference_appendices/interpreter_discovery.html for more information. This feature will be removed  
 +in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
 ok: [web02] ok: [web02]
 +[DEPRECATION WARNING]: Distribution debian 9.7 on host web03 should use /usr/bin/python3, but is using /usr/bin/python for backward compatibility with prior Ansible releases. A future Ansible release will 
 +default to using the discovered platform python for this host. See https://docs.ansible.com/ansible/2.10/reference_appendices/interpreter_discovery.html for more information. This feature will be removed 
 +in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
 ok: [web03] ok: [web03]
  
-TASK [install jre] *********************************************************************************************************************************************************************************************** +TASK [install jre] *******************************************************************************************************************************************************************************************
-ok: [web03]+
 ok: [web02] ok: [web02]
 +ok: [web03]
  
-PLAY [equilibrage] ***********************************************************************************************************************************************************************************************+PLAY [equilibrage] *******************************************************************************************************************************************************************************************
  
-TASK [Gathering Facts] *******************************************************************************************************************************************************************************************+TASK [Gathering Facts] *************************************************************************************************************************************************************************************** 
 +[DEPRECATION WARNING]: Distribution debian 9.7 on host web04 should use /usr/bin/python3, but is using /usr/bin/python for backward compatibility with prior Ansible releases. A future Ansible release will  
 +default to using the discovered platform python for this host. See https://docs.ansible.com/ansible/2.10/reference_appendices/interpreter_discovery.html for more information. This feature will be removed  
 +in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
 ok: [web04] ok: [web04]
  
-TASK [install] ***************************************************************************************************************************************************************************************************+TASK [install] ***********************************************************************************************************************************************************************************************
 changed: [web04] changed: [web04]
  
-TASK [service] ***************************************************************************************************************************************************************************************************+TASK [service] ***********************************************************************************************************************************************************************************************
 ok: [web04] ok: [web04]
  
-PLAY RECAP *******************************************************************************************************************************************************************************************************+PLAY RECAP ***************************************************************************************************************************************************************************************************
 web01                      : ok=3    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0    web01                      : ok=3    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
 web02                      : ok=2    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0    web02                      : ok=2    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
Ligne 841: Ligne 979:
  
 <code> <code>
-[trainee@centos8 ~]$ ansible-playbook -i inventory playbook.yaml -l equilibrage +trainee@debian11:~$ ansible-playbook -i inventory playbook.yaml -l equilibrage
-[DEPRECATION WARNING]: Ansible will require Python 3.8 or newer on the controller starting with Ansible 2.12. Current version: 3.6.8 (default, Sep 10 2021, 09:13:53) [GCC 8.5.0 20210514 (Red Hat 8.5.0-3)].  +
-This feature will be removed from ansible-core in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.+
  
-PLAY [basededonnees] *********************************************************************************************************************************************************************************************+PLAY [basededonnees] *****************************************************************************************************************************************************************************************
 skipping: no hosts matched skipping: no hosts matched
  
-PLAY [dotcms] ****************************************************************************************************************************************************************************************************+PLAY [dotcms] ************************************************************************************************************************************************************************************************
 skipping: no hosts matched skipping: no hosts matched
  
-PLAY [equilibrage] ***********************************************************************************************************************************************************************************************+PLAY [equilibrage] *******************************************************************************************************************************************************************************************
  
-TASK [Gathering Facts] *******************************************************************************************************************************************************************************************+TASK [Gathering Facts] *************************************************************************************************************************************************************************************** 
 +[DEPRECATION WARNING]: Distribution debian 9.7 on host web04 should use /usr/bin/python3, but is using /usr/bin/python for backward compatibility with prior Ansible releases. A future Ansible release will  
 +default to using the discovered platform python for this host. See https://docs.ansible.com/ansible/2.10/reference_appendices/interpreter_discovery.html for more information. This feature will be removed  
 +in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
 ok: [web04] ok: [web04]
  
-TASK [install] ***************************************************************************************************************************************************************************************************+TASK [install] ***********************************************************************************************************************************************************************************************
 ok: [web04] ok: [web04]
  
-TASK [service] ***************************************************************************************************************************************************************************************************+TASK [service] ***********************************************************************************************************************************************************************************************
 ok: [web04] ok: [web04]
  
-PLAY RECAP *******************************************************************************************************************************************************************************************************+PLAY RECAP ***************************************************************************************************************************************************************************************************
 web04                      : ok=3    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   web04                      : ok=3    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0  
 </code> </code>
Ligne 869: Ligne 1008:
  
 <code> <code>
-[trainee@centos8 ~]$ ansible-playbook -i inventory playbook.yaml -l web04 +trainee@debian11:~$ ansible-playbook -i inventory playbook.yaml -l web04
-[DEPRECATION WARNING]: Ansible will require Python 3.8 or newer on the controller starting with Ansible 2.12. Current version: 3.6.8 (default, Sep 10 2021, 09:13:53) [GCC 8.5.0 20210514 (Red Hat 8.5.0-3)].  +
-This feature will be removed from ansible-core in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.+
  
-PLAY [basededonnees] *********************************************************************************************************************************************************************************************+PLAY [basededonnees] *****************************************************************************************************************************************************************************************
 skipping: no hosts matched skipping: no hosts matched
  
-PLAY [dotcms] ****************************************************************************************************************************************************************************************************+PLAY [dotcms] ************************************************************************************************************************************************************************************************
 skipping: no hosts matched skipping: no hosts matched
  
-PLAY [equilibrage] ***********************************************************************************************************************************************************************************************+PLAY [equilibrage] *******************************************************************************************************************************************************************************************
  
-TASK [Gathering Facts] *******************************************************************************************************************************************************************************************+TASK [Gathering Facts] *************************************************************************************************************************************************************************************** 
 +[DEPRECATION WARNING]: Distribution debian 9.7 on host web04 should use /usr/bin/python3, but is using /usr/bin/python for backward compatibility with prior Ansible releases. A future Ansible release will  
 +default to using the discovered platform python for this host. See https://docs.ansible.com/ansible/2.10/reference_appendices/interpreter_discovery.html for more information. This feature will be removed  
 +in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
 ok: [web04] ok: [web04]
  
-TASK [install] ***************************************************************************************************************************************************************************************************+TASK [install] ***********************************************************************************************************************************************************************************************
 ok: [web04] ok: [web04]
  
-TASK [service] ***************************************************************************************************************************************************************************************************+TASK [service] ***********************************************************************************************************************************************************************************************
 ok: [web04] ok: [web04]
  
-PLAY RECAP ******************************************************************************************************************************************************************************************************* +PLAY RECAP *************************************************************************************************************************************************************************************************** 
-web04                      : ok=3    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0    +web04                      : ok=3    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0  
 </code> </code>
  
Ligne 910: Ligne 1050:
  
 <code> <code>
-[trainee@centos8 ~]$ ansible-playbook -i inventory playbook.yaml --tags service +trainee@debian11:~$ ansible-playbook -i inventory playbook.yaml --tags service
-[DEPRECATION WARNING]: Ansible will require Python 3.8 or newer on the controller starting with Ansible 2.12. Current version: 3.6.8 (default, Sep 10 2021, 09:13:53) [GCC 8.5.0 20210514 (Red Hat 8.5.0-3)].  +
-This feature will be removed from ansible-core in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.+
  
-PLAY [basededonnees] *********************************************************************************************************************************************************************************************+PLAY [basededonnees] *****************************************************************************************************************************************************************************************
  
-TASK [Gathering Facts] *******************************************************************************************************************************************************************************************+TASK [Gathering Facts] *************************************************************************************************************************************************************************************** 
 +[DEPRECATION WARNING]: Distribution debian 9.7 on host web01 should use /usr/bin/python3, but is using /usr/bin/python for backward compatibility with prior Ansible releases. A future Ansible release will  
 +default to using the discovered platform python for this host. See https://docs.ansible.com/ansible/2.10/reference_appendices/interpreter_discovery.html for more information. This feature will be removed  
 +in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
 ok: [web01] ok: [web01]
  
-TASK [service] ***************************************************************************************************************************************************************************************************+TASK [service] ***********************************************************************************************************************************************************************************************
 ok: [web01] ok: [web01]
  
-PLAY [dotcms] ****************************************************************************************************************************************************************************************************+PLAY [dotcms] ************************************************************************************************************************************************************************************************
  
-TASK [Gathering Facts] ******************************************************************************************************************************************************************************************* +TASK [Gathering Facts] *************************************************************************************************************************************************************************************** 
-ok: [web02]+[DEPRECATION WARNING]: Distribution debian 9.7 on host web03 should use /usr/bin/python3, but is using /usr/bin/python for backward compatibility with prior Ansible releases. A future Ansible release will  
 +default to using the discovered platform python for this host. See https://docs.ansible.com/ansible/2.10/reference_appendices/interpreter_discovery.html for more information. This feature will be removed  
 +in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
 ok: [web03] ok: [web03]
 +[DEPRECATION WARNING]: Distribution debian 9.7 on host web02 should use /usr/bin/python3, but is using /usr/bin/python for backward compatibility with prior Ansible releases. A future Ansible release will 
 +default to using the discovered platform python for this host. See https://docs.ansible.com/ansible/2.10/reference_appendices/interpreter_discovery.html for more information. This feature will be removed 
 +in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
 +ok: [web02]
  
-PLAY [equilibrage] ***********************************************************************************************************************************************************************************************+PLAY [equilibrage] *******************************************************************************************************************************************************************************************
  
-TASK [Gathering Facts] *******************************************************************************************************************************************************************************************+TASK [Gathering Facts] *************************************************************************************************************************************************************************************** 
 +[DEPRECATION WARNING]: Distribution debian 9.7 on host web04 should use /usr/bin/python3, but is using /usr/bin/python for backward compatibility with prior Ansible releases. A future Ansible release will  
 +default to using the discovered platform python for this host. See https://docs.ansible.com/ansible/2.10/reference_appendices/interpreter_discovery.html for more information. This feature will be removed  
 +in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
 ok: [web04] ok: [web04]
  
-TASK [service] ***************************************************************************************************************************************************************************************************+TASK [service] ***********************************************************************************************************************************************************************************************
 ok: [web04] ok: [web04]
  
-PLAY RECAP *******************************************************************************************************************************************************************************************************+PLAY RECAP ***************************************************************************************************************************************************************************************************
 web01                      : ok=2    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0    web01                      : ok=2    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
 web02                      : ok=1    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0    web02                      : ok=1    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
Ligne 946: Ligne 1096:
  
 <code> <code>
-[trainee@centos8 ~]$ ansible-playbook -i inventory playbook.yaml --tags service -l equilibrage +trainee@debian11:~$ ansible-playbook -i inventory playbook.yaml --tags service -l equilibrage
-[DEPRECATION WARNING]: Ansible will require Python 3.8 or newer on the controller starting with Ansible 2.12. Current version: 3.6.8 (default, Sep 10 2021, 09:13:53) [GCC 8.5.0 20210514 (Red Hat 8.5.0-3)].  +
-This feature will be removed from ansible-core in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.+
  
-PLAY [basededonnees] *********************************************************************************************************************************************************************************************+PLAY [basededonnees] *****************************************************************************************************************************************************************************************
 skipping: no hosts matched skipping: no hosts matched
  
-PLAY [dotcms] ****************************************************************************************************************************************************************************************************+PLAY [dotcms] ************************************************************************************************************************************************************************************************
 skipping: no hosts matched skipping: no hosts matched
  
-PLAY [equilibrage] ***********************************************************************************************************************************************************************************************+PLAY [equilibrage] *******************************************************************************************************************************************************************************************
  
-TASK [Gathering Facts] *******************************************************************************************************************************************************************************************+TASK [Gathering Facts] *************************************************************************************************************************************************************************************** 
 +[DEPRECATION WARNING]: Distribution debian 9.7 on host web04 should use /usr/bin/python3, but is using /usr/bin/python for backward compatibility with prior Ansible releases. A future Ansible release will  
 +default to using the discovered platform python for this host. See https://docs.ansible.com/ansible/2.10/reference_appendices/interpreter_discovery.html for more information. This feature will be removed  
 +in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
 ok: [web04] ok: [web04]
  
-TASK [service] ***************************************************************************************************************************************************************************************************+TASK [service] ***********************************************************************************************************************************************************************************************
 ok: [web04] ok: [web04]
  
-PLAY RECAP ******************************************************************************************************************************************************************************************************* +PLAY RECAP *************************************************************************************************************************************************************************************************** 
-web04                      : ok=2    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0+web04                      : ok=2    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
 </code> </code>
  
Ligne 1079: Ligne 1230:
 </WRAP> </WRAP>
  
-Dans la machine **centos8**, collez la commande copiée et exécutez-la :+Dans la machine **debian11**, collez la commande copiée et exécutez-la :
  
 <code> <code>
-[trainee@centos8 ~]$ ansible-galaxy install geerlingguy.java +trainee@debian11:~$ ansible-galaxy install geerlingguy.java
-[DEPRECATION WARNING]: Ansible will require Python 3.8 or newer on the controller starting with Ansible 2.12. Current version: 3.6.8 (default, Sep 10 2021, 09:13:53) [GCC 8.5.0 20210514 (Red Hat 8.5.0-3)].  +
-This feature will be removed from ansible-core in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.+
 Starting galaxy role install process Starting galaxy role install process
 - downloading role 'java', owned by geerlingguy - downloading role 'java', owned by geerlingguy
-- downloading role from https://github.com/geerlingguy/ansible-role-java/archive/2.0.1.tar.gz+- downloading role from https://github.com/geerlingguy/ansible-role-java/archive/2.3.1.tar.gz
 - extracting geerlingguy.java to /home/trainee/.ansible/roles/geerlingguy.java - extracting geerlingguy.java to /home/trainee/.ansible/roles/geerlingguy.java
-- geerlingguy.java (2.0.1) was installed successfully+- geerlingguy.java (2.3.1) was installed successfully
 </code> </code>
  
Ligne 1095: Ligne 1244:
  
 <code> <code>
-[trainee@centos8 ~]$ su - +trainee@debian11:~$ su - 
-Password:  +Password: fenestros 
-[root@centos8 ~]# which tree + 
-/usr/bin/tree +root@debian11:~# which tree 
-[root@centos8 ~]# exit+ 
 +root@debian11:~# apt install tree 
 +Reading package lists... Done 
 +Building dependency tree... Done 
 +Reading state information... Done 
 +The following packages were automatically installed and are no longer required: 
 +  libopengl0 linux-headers-5.10.0-15-amd64 linux-headers-5.10.0-15-common 
 +Use 'apt autoremove' to remove them. 
 +The following NEW packages will be installed: 
 +  tree 
 +0 upgraded, 1 newly installed, 0 to remove and 22 not upgraded. 
 +Need to get 49.6 kB of archives. 
 +After this operation, 118 kB of additional disk space will be used. 
 +Get:1 http://deb.debian.org/debian bullseye/main amd64 tree amd64 1.8.0-1+b1 [49.6 kB] 
 +Fetched 49.6 kB in 0s (3,346 kB/s) 
 +Selecting previously unselected package tree. 
 +(Reading database ... 206553 files and directories currently installed.) 
 +Preparing to unpack .../tree_1.8.0-1+b1_amd64.deb ... 
 +Unpacking tree (1.8.0-1+b1) ... 
 +Setting up tree (1.8.0-1+b1) ... 
 +Processing triggers for man-db (2.9.4-2) ... 
 + 
 +root@debian11:~# exit
 logout logout
-[trainee@centos8 ~]$ tree /home/trainee/.ansible/roles/geerlingguy.java+ 
 +trainee@debian11:~$ tree /home/trainee/.ansible/roles/geerlingguy.java
 /home/trainee/.ansible/roles/geerlingguy.java /home/trainee/.ansible/roles/geerlingguy.java
 ├── defaults ├── defaults
Ligne 1123: Ligne 1295:
     ├── Debian-10.yml     ├── Debian-10.yml
     ├── Debian-11.yml     ├── Debian-11.yml
 +    ├── Debian-12.yml
     ├── Debian-8.yml     ├── Debian-8.yml
     ├── Debian-9.yml     ├── Debian-9.yml
Ligne 1129: Ligne 1302:
     ├── RedHat-7.yml     ├── RedHat-7.yml
     ├── RedHat-8.yml     ├── RedHat-8.yml
 +    ├── RedHat-9.yml
     ├── Ubuntu-12.yml     ├── Ubuntu-12.yml
     ├── Ubuntu-14.yml     ├── Ubuntu-14.yml
     ├── Ubuntu-16.yml     ├── Ubuntu-16.yml
     ├── Ubuntu-18.yml     ├── Ubuntu-18.yml
-    ── Ubuntu-20.yml+    ── Ubuntu-20.yml 
 +    └── Ubuntu-22.yml
  
-7 directories, 24 files+7 directories, 27 files
 </code> </code>
  
Ligne 1145: Ligne 1320:
  
 <code> <code>
-[trainee@centos8 ~]$ vi playbook_java.yaml +trainee@debian11:~$ vi playbook_java.yaml 
-[trainee@centos8 ~]$ cat playbook_java.yaml+trainee@debian11:~$ cat playbook_java.yaml
 --- ---
 - hosts: all - hosts: all
Ligne 1157: Ligne 1332:
  
 <code> <code>
-[trainee@centos8 ~]$ vi .ansible.cfg +trainee@debian11:~$ vi .ansible.cfg 
-[trainee@centos8 ~]$ cat .ansible.cfg+trainee@debian11:~$ cat .ansible.cfg
 [defaults] [defaults]
 deprecation_warnings=False deprecation_warnings=False
Ligne 1170: Ligne 1345:
  
 <code> <code>
-[trainee@centos8 ~]$ ansible-config list | more+trainee@debian11:~$ ansible-config list | more
 ACTION_WARNINGS: ACTION_WARNINGS:
   default: true   default: true
-  description: [By default Ansible will issue a warning when received from a task +  description: 
-      action (module or action plugin)These warnings can be silenced by adjusting +  - By default Ansible will issue a warning when received from a task action (module 
-      this setting to False.]+    or action plugin) 
 +  - These warnings can be silenced by adjusting this setting to False.
   env:   env:
-  - {name: ANSIBLE_ACTION_WARNINGS}+  - name: ANSIBLE_ACTION_WARNINGS
   ini:   ini:
-  - {key: action_warningssection: defaults}+  - key: action_warnings 
 +    section: defaults
   name: Toggle action warnings   name: Toggle action warnings
   type: boolean   type: boolean
Ligne 1188: Ligne 1365:
     the command line supplied become method     the command line supplied become method
   env:   env:
-  - {name: ANSIBLE_AGNOSTIC_BECOME_PROMPT}+  - name: ANSIBLE_AGNOSTIC_BECOME_PROMPT
   ini:   ini:
-  - {key: agnostic_become_promptsection: privilege_escalation}+  - key: agnostic_become_prompt 
 +    section: privilege_escalation
   name: Display an agnostic become prompt   name: Display an agnostic become prompt
   type: boolean   type: boolean
   version_added: '2.5'   version_added: '2.5'
-  yaml: {key: privilege_escalation.agnostic_become_prompt}+  yaml: 
 +    key: privilege_escalation.agnostic_become_prompt
 ALLOW_WORLD_READABLE_TMPFILES: ALLOW_WORLD_READABLE_TMPFILES:
   default: false   default: false
-  deprecated: {alternatives: world_readable_tmp, collection_name: ansible.builtin, +  deprecated: 
-    version: '2.14'why: moved to shell plugins} +    alternatives: mostly the same config will workbut now controlled from the plugin 
-  description: ['This setting has been moved to the individual shell plugins as +      itself and not using the general constant. 
-      plugin option :ref:`shell_plugins`.', 'The existing configuration settings are +    collection_name: ansible.builtin 
-      still accepted with the shell plugin adding additional options, like variables.', +    version: '2.14' 
-    This message will be removed in 2.14.]+    why: moved to a per plugin approach that is more flexible 
 +  description: 
 +  - This makes the temporary files created on the machine world-readable and will 
 +    issue warning instead of failing the task. 
 +  - It is useful when becoming an unprivileged user. 
 +  env[] 
 +  ini
 +  - key: allow_world_readable_tmpfiles 
 +    section: defaults
   name: Allow world-readable temporary files   name: Allow world-readable temporary files
   type: boolean   type: boolean
 +  version_added: '2.1'
 +  yaml:
 +    key: defaults.allow_world_readable_tmpfiles
 ANSIBLE_CONNECTION_PATH: ANSIBLE_CONNECTION_PATH:
   default: null   default: null
-  description: [Specify where to look for the ansible-connection script. This location +  description: 
-      will be checked before searching $PATH., 'If null, ansible will start with the +  - Specify where to look for the ansible-connection script. This location will be 
-      same directory as the ansible script.'] +    checked before searching $PATH. 
-  env: +  - If null, ansible will start with the same directory as the ansible script.
-  - {name: ANSIBLE_CONNECTION_PATH} +
-  ini: +
-  - {key: ansible_connection_path, section: persistent_connection} +
-  name: Path of ansible-connection script +
-  type: path +
-  version_added: '2.8' +
-  yaml: {key: persistent_connection.ansible_connection_path} +
-ANSIBLE_COW_ACCEPTLIST: +
-  default: [bud-frogs, bunny, cheese, daemon, default, dragon, elephant-in-snake, +
-    elephant, eyes, hellokitty, kitty, luke-koala, meow, milk, moofasa, moose, ren, +
-    sheep, small, stegosaurus, stimpy, supermilker, three-eyes, turkey, turtle, tux, +
-    udder, vader-koala, vader, www] +
-  description: White list of cowsay templates that are 'safe' to use, set to empty +
-    list if you want to enable all installed templates. +
-  env: +
-  - deprecated: {alternatives: ANSIBLE_COW_ACCEPTLIST, collection_name: ansible.builtin,+
 --More-- --More--
 </code> </code>
Ligne 1233: Ligne 1407:
  
 <code> <code>
-[trainee@centos8 ~]$ ansible-playbook -i inventory playbook_java.yaml+trainee@debian11:~$ ansible-playbook -i inventory playbook_java.yaml
  
-PLAY [all] *******************************************************************************************************************************************************************************************************+PLAY [all] ***************************************************************************************************************************************************************************************************
  
-TASK [Gathering Facts] ******************************************************************************************************************************************************************************************* +TASK [Gathering Facts] ***************************************************************************************************************************************************************************************
-ok: [web04]+
 ok: [web01] ok: [web01]
 +ok: [web02]
 ok: [web03] ok: [web03]
-ok: [web02]+ok: [web04]
  
-TASK [geerlingguy.java : Include OS-specific variables for Fedora or FreeBSD.] ***********************************************************************************************************************************+TASK [geerlingguy.java : Include OS-specific variables for Fedora or FreeBSD.] *******************************************************************************************************************************
 skipping: [web01] skipping: [web01]
 skipping: [web02] skipping: [web02]
Ligne 1249: Ligne 1423:
 skipping: [web04] skipping: [web04]
  
-TASK [geerlingguy.java : Include version-specific variables for CentOS/RHEL.] ************************************************************************************************************************************+TASK [geerlingguy.java : Include version-specific variables for CentOS/RHEL.] ********************************************************************************************************************************
 skipping: [web01] skipping: [web01]
 skipping: [web02] skipping: [web02]
Ligne 1255: Ligne 1429:
 skipping: [web04] skipping: [web04]
  
-TASK [geerlingguy.java : Include version-specific variables for Ubuntu.] *****************************************************************************************************************************************+TASK [geerlingguy.java : Include version-specific variables for Ubuntu.] *************************************************************************************************************************************
 skipping: [web01] skipping: [web01]
 skipping: [web02] skipping: [web02]
Ligne 1261: Ligne 1435:
 skipping: [web04] skipping: [web04]
  
-TASK [geerlingguy.java : Include version-specific variables for Debian.] *****************************************************************************************************************************************+TASK [geerlingguy.java : Include version-specific variables for Debian.] ************************************************************************************************************************************* 
 +ok: [web01]
 ok: [web02] ok: [web02]
 ok: [web03] ok: [web03]
-ok: [web01] 
 ok: [web04] ok: [web04]
  
-TASK [geerlingguy.java : Define java_packages.] ******************************************************************************************************************************************************************+TASK [geerlingguy.java : Define java_packages.] **************************************************************************************************************************************************************
 ok: [web01] ok: [web01]
 ok: [web02] ok: [web02]
Ligne 1273: Ligne 1447:
 ok: [web04] ok: [web04]
  
-TASK [geerlingguy.java : include_tasks] **************************************************************************************************************************************************************************+TASK [geerlingguy.java : include_tasks] **********************************************************************************************************************************************************************
 skipping: [web01] skipping: [web01]
 skipping: [web02] skipping: [web02]
Ligne 1279: Ligne 1453:
 skipping: [web04] skipping: [web04]
  
-TASK [geerlingguy.java : include_tasks] **************************************************************************************************************************************************************************+TASK [geerlingguy.java : include_tasks] **********************************************************************************************************************************************************************
 included: /home/trainee/.ansible/roles/geerlingguy.java/tasks/setup-Debian.yml for web01, web02, web03, web04 included: /home/trainee/.ansible/roles/geerlingguy.java/tasks/setup-Debian.yml for web01, web02, web03, web04
  
-TASK [geerlingguy.java : Ensure 'man' directory exists.] *********************************************************************************************************************************************************+TASK [geerlingguy.java : Ensure 'man' directory exists.] *****************************************************************************************************************************************************
 skipping: [web01] skipping: [web01]
 skipping: [web02] skipping: [web02]
Ligne 1288: Ligne 1462:
 skipping: [web04] skipping: [web04]
  
-TASK [geerlingguy.java : Ensure Java is installed.] ************************************************************************************************************************************************************** +TASK [geerlingguy.java : Ensure Java is installed.] **********************************************************************************************************************************************************
-changed: [web04]+
 changed: [web03] changed: [web03]
 +changed: [web04]
 changed: [web02] changed: [web02]
 changed: [web01] changed: [web01]
  
-TASK [geerlingguy.java : include_tasks] **************************************************************************************************************************************************************************+TASK [geerlingguy.java : include_tasks] **********************************************************************************************************************************************************************
 skipping: [web01] skipping: [web01]
 skipping: [web02] skipping: [web02]
Ligne 1300: Ligne 1474:
 skipping: [web04] skipping: [web04]
  
-TASK [geerlingguy.java : Set JAVA_HOME if configured.] ***********************************************************************************************************************************************************+TASK [geerlingguy.java : Set JAVA_HOME if configured.] *******************************************************************************************************************************************************
 skipping: [web01] skipping: [web01]
 skipping: [web02] skipping: [web02]
Ligne 1306: Ligne 1480:
 skipping: [web04] skipping: [web04]
  
-PLAY RECAP *******************************************************************************************************************************************************************************************************+PLAY RECAP ***************************************************************************************************************************************************************************************************
 web01                      : ok=5    changed=1    unreachable=0    failed=0    skipped=7    rescued=0    ignored=0    web01                      : ok=5    changed=1    unreachable=0    failed=0    skipped=7    rescued=0    ignored=0   
 web02                      : ok=5    changed=1    unreachable=0    failed=0    skipped=7    rescued=0    ignored=0    web02                      : ok=5    changed=1    unreachable=0    failed=0    skipped=7    rescued=0    ignored=0   
Ligne 1316: Ligne 1490:
  
 <code> <code>
-[trainee@centos8 ~]$ ansible-config dump |grep ROLES_PATH+trainee@debian11:~$ ansible-config dump |grep ROLES_PATH
 DEFAULT_ROLES_PATH(default) = ['/home/trainee/.ansible/roles', '/usr/share/ansible/roles', '/etc/ansible/roles'] DEFAULT_ROLES_PATH(default) = ['/home/trainee/.ansible/roles', '/usr/share/ansible/roles', '/etc/ansible/roles']
 </code> </code>
Ligne 1368: Ligne 1542:
 ----- -----
  
-Copyright © 2022 Hugh Norris.+Copyright © 2024 Hugh Norris.
Menu