Compare commits

3 Commits

Author SHA1 Message Date
3c41f6517a missing quote 2023-10-10 11:40:49 +02:00
90ddd23fee remove unecessary options 2023-03-20 14:10:17 +01:00
cab439192b typo 2022-11-14 10:38:44 +01:00

View File

@@ -5,7 +5,7 @@
La commande suivante automatise (en shell) le déploiement de ma clé ssh sur une machine distante.
```bash
ssh cible curl https://infra.opendoor.fr/id_rsa.pub -o ~/.ssh/authorized_keys
ssh cible "curl https://infra.opendoor.fr/id_rsa.pub >> ~/.ssh/authorized_keys"
```
Identifier tous les problèmes que peut rencontrer ce script lors de son exécution.
@@ -15,11 +15,11 @@ Identifier tous les problèmes que peut rencontrer ce script lors de son exécut
Identifier lesquelles sont _indempotentes_
```bash
ansible all -u root -k -m debug -a 'msg="{{ 42 | random() }}"' -o
ansible all -u root -k -m debug -a 'msg="{{ 42 | random() }}"' -o
ansible all -m debug -a 'msg="{{ 42 | random() }}"' -o
ansible all -m debug -a 'msg="{{ 42 | random() }}"' -o
ansible all -u root -k -m debug -a 'msg="{{ 1234 | random( seed='1234') }}"' -o
ansible all -m debug -a 'msg="{{ 1234 | random( seed='1234') }}"' -o
ansible all -u root -k -m debug -a 'msg="{{ 1234 | random( seed=inventory_hostname ) }}"' -o
ansible all -u root -k -m debug -a 'msg="{{ 1234 | random( seed=inventory_hostname ) }}"' -o
ansible all -m debug -a 'msg="{{ 1234 | random( seed=inventory_hostname ) }}"' -o
ansible all -m debug -a 'msg="{{ 1234 | random( seed=inventory_hostname ) }}"' -o
```