Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ansible
Manage
Activity
Members
Labels
Plan
Issues
3
Issue boards
Milestones
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nounous
Ansible
Commits
d6fc6346
Verified
Commit
d6fc6346
authored
5 years ago
by
me5na7qbjqbrp
Browse files
Options
Downloads
Patches
Plain Diff
Document setup module
parent
e2b4f78c
No related branches found
No related tags found
1 merge request
!3
Various documentation
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+8
-3
8 additions, 3 deletions
README.md
ansible.cfg
+2
-2
2 additions, 2 deletions
ansible.cfg
with
10 additions
and
5 deletions
README.md
+
8
−
3
View file @
d6fc6346
...
...
@@ -26,7 +26,7 @@ Il est souhaitable de faire un test avant avec `--check` si on a des doutes !
ssh-copy-id -i ~/.ssh/id_rsa_crans.pub zamok.crans.org
```
###
Automatiquement ajouter
fingerprint ECDSA (dangereux !)
###
Ignorer la
fingerprint ECDSA
du serveur
(dangereux !)
Il faut changer la variable d'environnement suivante :
`ANSIBLE_HOST_KEY_CHECKING=0`
.
...
...
@@ -35,11 +35,11 @@ Il faut changer la variable d'environnement suivante :
Envoyer son agent SSH peut être dangereux (
[
source
](
https://heipei.io/2015/02/26/SSH-Agent-Forwarding-considered-harmful/
)
).
On va utiliser plutôt ProxyJump.
On va utiliser plutôt
`
ProxyJump
`
.
Dans la configuration SSH :
```
# Use a key to log on all
Aurore
servers
# Use a key to log on all
Crans
servers
# and use a bastion
Host 10.231.136.* *.adm.crans.org
IdentityFile ~/.ssh/id_rsa_crans
...
...
@@ -51,6 +51,11 @@ vers les serveurs puis détruites à la fin de l'exécution.
### Lister tout ce que sait Ansible sur un hôte
Lors du lancement d'Ansible, il collecte un ensemble de faits sur les serveurs
qui peuvent ensuite être utilisés dans des variables.
Pour lister tous les faits qu'Ansible collecte nativement d'un serveur
on peut exécuter le module
`setup`
manuellement.
```
ansible -i hosts zamok.crans.org -m setup --ask-vault-pass
```
This diff is collapsed.
Click to expand it.
ansible.cfg
+
2
−
2
View file @
d6fc6346
#
Aurore
Crans
configuration
#
Crans
Ansible
configuration
[defaults]
# Use
Aurore
inventory
# Use
Crans
inventory
inventory
= ./hosts
# Custom
header in templates
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment