Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
elearning:workbooks:debian:6:avance:l130:part4 [2022/05/20 16:22] – admin | elearning:workbooks:debian:6:avance:l130:part4 [2023/08/25 01:31] (Version actuelle) – admin | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
~~PDF: | ~~PDF: | ||
- | Version : **2022.02** | + | Version : **2023.02** |
Dernière mise-à-jour : ~~LASTMOD~~ | Dernière mise-à-jour : ~~LASTMOD~~ | ||
Ligne 95: | Ligne 95: | ||
</ | </ | ||
- | Dernièrement, | + | Dernièrement, |
< | < | ||
+ | [root@centos8 ~]# systemctl enable docker | ||
+ | [root@centos8 ~]# systemctl start docker | ||
[root@centos8 ~]# systemctl status docker | [root@centos8 ~]# systemctl status docker | ||
● docker.service - Docker Application Container Engine | ● docker.service - Docker Application Container Engine | ||
Ligne 174: | Ligne 176: | ||
CONTAINER ID | CONTAINER ID | ||
1028e25f81d1 | 1028e25f81d1 | ||
+ | </ | ||
+ | |||
+ | Ajoutez **trainee** au groupe **docker** afin qu'il puisse gérer les conteneurs puis redevenir l' | ||
+ | |||
+ | < | ||
+ | [root@centos8 ~]# usermod -aG docker trainee | ||
[root@centos8 ~]# exit | [root@centos8 ~]# exit | ||
logout | logout | ||
[trainee@centos8 roles]$ | [trainee@centos8 roles]$ | ||
</ | </ | ||
+ | |||
+ | Rejoignez le groupe **docker** en tant que **trainee** : | ||
+ | |||
+ | < | ||
+ | [trainee@centos8 roles]$ newgrp docker | ||
+ | </ | ||
====1.3 - La Connexion à Docker==== | ====1.3 - La Connexion à Docker==== | ||
Ligne 184: | Ligne 198: | ||
< | < | ||
- | trainee@ansible: | + | [trainee@centos8 |
</ | </ | ||
Ligne 214: | Ligne 228: | ||
</ | </ | ||
- | Exécutez la commande **ansible-playbook** en tant que **root** : | + | Exécutez la commande **ansible-playbook** : |
< | < | ||
- | [root@centos8 roles]# ansible-playbook -i inventory playbook.yaml | + | [trainee@centos8 roles]$ 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)]. | [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. | 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. | ||
Ligne 899: | Ligne 913: | ||
----- | ----- | ||
- | Copyright © 2022 Hugh Norris. | + | Copyright © 2023 Hugh Norris. |