Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3c41f6517a | |||
| 90ddd23fee | |||
| cab439192b |
12
Readme.md
12
Readme.md
@@ -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
|
||||
```
|
||||
Reference in New Issue
Block a user