Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2e8a999d4e | |||
| 7e7eb61ea1 |
21
Readme.md
Normal file
21
Readme.md
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
## Inventaire
|
||||||
|
|
||||||
|
**Tâche**: Mettre au point un fichier d'inventaire simple
|
||||||
|
|
||||||
|
**Condition**: pour utiliser ansible
|
||||||
|
|
||||||
|
**Norme**: vim, /etc/ansible/hosts
|
||||||
|
|
||||||
|
**Pratique:**
|
||||||
|
|
||||||
|
Mettez au point l'inventaire suivant (remplacer X par votre n° de machine)
|
||||||
|
|
||||||
|
2. un groupe "centos" ne contenant que la machine centosX.formation.opendoor.fr
|
||||||
|
2. un groupe "debian" ne contenant que la machine debianX.formation.opendoor.fr
|
||||||
|
3. un groupe "cibles" contenant les machines des groupes debian et centos
|
||||||
|
|
||||||
|
**Performance**:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
ansible-inventory --graph
|
||||||
|
```
|
||||||
12
inventaire
12
inventaire
@@ -1,12 +0,0 @@
|
|||||||
# /etc/ansible/hosts
|
|
||||||
[debian]
|
|
||||||
debian42.formation.opendoor.fr
|
|
||||||
|
|
||||||
|
|
||||||
[centos]
|
|
||||||
centos42.formation.opendoor.fr
|
|
||||||
|
|
||||||
|
|
||||||
[cibles:children]
|
|
||||||
debian
|
|
||||||
centos
|
|
||||||
Reference in New Issue
Block a user