1
0

Add reponse for ansible

Signed-off-by: Arnaud M <arnaud.choupinette@mailops.fr>
This commit is contained in:
Arnaud M
2023-03-04 20:49:29 +01:00
parent 01eb15f6d5
commit 47d1e2b488
11 changed files with 33 additions and 7 deletions

View File

@@ -7,11 +7,13 @@ But ansible can be used to manage multiple systems that you have in your infrast
To do so, we must tell ansible which servers compose our infrastructure. This is done thanks to an `inventory` file.
The default `inventory` file for ansible is located in `/etc/ansible/hosts`.
For now, your inventory is empty, so you can create one:
```
cat /etc/ansible/hosts
mkdir -p /etc/ansible/
touch /etc/ansible/hosts
```
It's empty by default (not really empty, but everything is commented).
With an empty `inventory` like that, ansible only knows about `localhost`.