Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| cba84af94c | |||
| b166371484 |
21
Readme.md
21
Readme.md
@@ -1,21 +0,0 @@
|
|||||||
## 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
Normal file
12
inventaire
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
# /etc/ansible/hosts
|
||||||
|
[debian]
|
||||||
|
debian42.formation.opendoor.fr
|
||||||
|
|
||||||
|
|
||||||
|
[centos]
|
||||||
|
centos42.formation.opendoor.fr
|
||||||
|
|
||||||
|
|
||||||
|
[cibles:children]
|
||||||
|
debian
|
||||||
|
centos
|
||||||
Reference in New Issue
Block a user