diff --git a/README.md b/README.md index 3d86c6a..9c43c45 100644 --- a/README.md +++ b/README.md @@ -21,8 +21,8 @@ Les variables communes sont definies dans `inventories/hosts.yml`, sous ```yaml all: vars: - ansible_user: olivier - password_target_user: olivier + ansible_user: admin + password_target_user: admin ``` - `ansible_user` est l'utilisateur SSH utilise pour se connecter aux serveurs. @@ -37,7 +37,7 @@ l'entree de l'hote : ```yaml test: hosts: - srv-docker-lab-01.maison.bro: + test-server.example.com: ansible_ssh_private_key_file: ~/.ssh/id_ed25519 ``` diff --git a/inventories/hosts.yml b/inventories/hosts.yml index d41ec72..edac194 100644 --- a/inventories/hosts.yml +++ b/inventories/hosts.yml @@ -1,17 +1,17 @@ --- all: vars: - ansible_user: olivier - password_target_user: olivier + ansible_user: admin + password_target_user: admin children: test: hosts: - srv-docker-lab-01.maison.bro: + test-server.example.com: ansible_ssh_private_key_file: ~/.ssh/id_ed25519 linux_servers: hosts: - server-1: - server-2: - ansible_host: 192.0.2.12 + linux-server-01.example.com: + linux-server-02.example.com: + ansible_host: 192.0.2.10