Différences

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

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
elearning:workbooks:debian:6:avance:l130:part2 [2022/05/20 12:10] adminelearning:workbooks:debian:6:avance:l130:part2 [2023/08/25 01:28] (Version actuelle) admin
Ligne 1: Ligne 1:
 ~~PDF:LANDSCAPE~~ ~~PDF:LANDSCAPE~~
  
-Version : **2022.02**+Version : **2023.02**
  
 Dernière mise-à-jour : ~~LASTMOD~~ Dernière mise-à-jour : ~~LASTMOD~~
Ligne 36: Ligne 36:
 <code> <code>
 [trainee@centos8 ~]$ ansible all -i 10.0.2.52, -m ping [trainee@centos8 ~]$ 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.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. 
 10.0.2.52 | SUCCESS => { 10.0.2.52 | SUCCESS => {
     "ansible_facts": {     "ansible_facts": {
Ligne 55: Ligne 53:
 <code> <code>
 [trainee@centos8 ~]$ ansible --help [trainee@centos8 ~]$ 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)].  
-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. 
 usage: ansible [-h] [--version] [-v] [-b] [--become-method BECOME_METHOD] usage: ansible [-h] [--version] [-v] [-b] [--become-method BECOME_METHOD]
                [--become-user BECOME_USER] [-K] [-i INVENTORY] [--list-hosts]                [--become-user BECOME_USER] [-K] [-i INVENTORY] [--list-hosts]
Ligne 374: Ligne 370:
 <code> <code>
 [trainee@centos8 ~]$ ansible all -i 10.0.2.54, -m ping [trainee@centos8 ~]$ 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.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. 
 10.0.2.54 | SUCCESS => { 10.0.2.54 | SUCCESS => {
     "ansible_facts": {     "ansible_facts": {
Ligne 384: Ligne 378:
 } }
 [trainee@centos8 ~]$ ansible all -i 10.0.2.55, -m ping [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.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. 
 10.0.2.55 | SUCCESS => { 10.0.2.55 | SUCCESS => {
     "ansible_facts": {     "ansible_facts": {
Ligne 399: Ligne 391:
 <code> <code>
 [trainee@centos8 ~]$ ansible all -i web01,web02,web03,web04 -m ping [trainee@centos8 ~]$ ansible all -i web01,web02,web03,web04 -m ping
-[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. 
 web02 | SUCCESS => { web02 | SUCCESS => {
     "ansible_facts": {     "ansible_facts": {
Ligne 439: Ligne 429:
 <code> <code>
 [trainee@centos8 ~]$ ansible all -i web01,web02,web03,web04 -m command --args 'uptime' [trainee@centos8 ~]$ 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.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. 
 web02 | CHANGED | rc=0 >> web02 | CHANGED | rc=0 >>
  11:40:49 up 18:26,  1 user,  load average: 0,24, 0,11, 0,03  11:40:49 up 18:26,  1 user,  load average: 0,24, 0,11, 0,03
Ligne 797: Ligne 785:
 <code> <code>
 [trainee@centos8 ~]$ ansible-playbook -i inventory playbook.yaml [trainee@centos8 ~]$ 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] *********************************************************************************************************************************************************************************************
Ligne 842: Ligne 828:
 <code> <code>
 [trainee@centos8 ~]$ ansible-playbook -i inventory playbook.yaml -l equilibrage [trainee@centos8 ~]$ 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] *********************************************************************************************************************************************************************************************
Ligne 870: Ligne 854:
 <code> <code>
 [trainee@centos8 ~]$ ansible-playbook -i inventory playbook.yaml -l web04 [trainee@centos8 ~]$ 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] *********************************************************************************************************************************************************************************************
Ligne 911: Ligne 893:
 <code> <code>
 [trainee@centos8 ~]$ ansible-playbook -i inventory playbook.yaml --tags service [trainee@centos8 ~]$ 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] *********************************************************************************************************************************************************************************************
Ligne 947: Ligne 927:
 <code> <code>
 [trainee@centos8 ~]$ ansible-playbook -i inventory playbook.yaml --tags service -l equilibrage [trainee@centos8 ~]$ 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] *********************************************************************************************************************************************************************************************
Ligne 1083: Ligne 1061:
 <code> <code>
 [trainee@centos8 ~]$ ansible-galaxy install geerlingguy.java [trainee@centos8 ~]$ 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
Ligne 1154: Ligne 1130:
 </code> </code>
  
-Avant d'excuter ce playbook, créez le fichier **~/.ansible.cfg** :+Avant d’exécuter ce playbook, créez le fichier **~/.ansible.cfg** :
  
 <code> <code>
Ligne 1161: Ligne 1137:
 [defaults] [defaults]
 deprecation_warnings=False deprecation_warnings=False
 +log_path = ./ansible.log
 </code> </code>
  
Ligne 1368: Ligne 1345:
 ----- -----
  
-Copyright © 2022 Hugh Norris.+Copyright © 2023 Hugh Norris.
Menu