|
|
|
@ -1,11 +1,5 @@
|
|
|
|
|
# Playbook et rôles Ansible d'Aurore
|
|
|
|
|
|
|
|
|
|
Pour cloner ce projet :
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
git clone --recursive git@gitlab.federez.net:erdnaxe/ansible-aurore.git
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Exécution d'un playbook
|
|
|
|
|
|
|
|
|
|
Pour tester :
|
|
|
|
@ -44,16 +38,15 @@ Host proxy.auro.re
|
|
|
|
|
ControlMaster auto
|
|
|
|
|
ControlPath ~/.ssh/%r@%h:%p
|
|
|
|
|
|
|
|
|
|
# Use a bastion and a key to log on all Aurore servers
|
|
|
|
|
Host 10.128.* *.adm.auro.re
|
|
|
|
|
ProxyJump proxy.auro.re
|
|
|
|
|
# Use a key to log on all Aurore servers
|
|
|
|
|
# and use a bastion
|
|
|
|
|
Host 10.128.0.* *.adm.auro.re
|
|
|
|
|
IdentityFile ~/.ssh/id_rsa_aurore
|
|
|
|
|
ProxyJump proxy.auro.re
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
### Lister tout ce que sait Ansible sur un hôte
|
|
|
|
|
|
|
|
|
|
Exemple :
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
ansible -i hosts ldap-replica-fleming1.adm.auro.re -m setup --ask-vault-pass
|
|
|
|
|
```
|
|
|
|
|