This commit is contained in:
2023-06-06 15:05:11 +02:00
parent c70f9d523f
commit 9355940b55

View File

@@ -111,8 +111,8 @@ Host machinecible #cf variable inventory_hostname
```
```bash
ansible -oi localhost all -u formation -m blockinfile -a 'path=/home/formation//.ssh/config block="Host {{ inventory_hostname }}\n\tPort 22" create=true marker="# {mark} ssh config for {{ inventory_hostname }}"'
ansible -o localhost all -u formation -m blockinfile -a 'path=/home/formation//.ssh/config block="Host {{ inventory_hostname }}\n\tPort 22" create=true marker="# {mark} ssh config for {{ inventory_hostname }}"'
```
⚠️ on travaile sur *localhost*
⚠️ on travaile sur *localhost*, donc l'exemple n'est pas très pertinent