Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| administratif:tooling:ansible [2025/09/26 12:34] – [Ansible Environment] remi | administratif:tooling:ansible [2025/09/26 14:02] (current) – remi | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Ansible ====== | ||
| + | |||
| ===== Ansible Environment ===== | ===== Ansible Environment ===== | ||
| Line 37: | Line 39: | ||
| Ansible is made to run all playbooks using this " | Ansible is made to run all playbooks using this " | ||
| + | |||
| + | You can use some pre-defined playbooks using the Galaxy store : | ||
| + | |||
| + | < | ||
| + | # List installed roles : | ||
| + | ansible-galaxy collection list | ||
| + | |||
| + | # Installs a role from prometheus space called prometheus too : | ||
| + | ansible-galaxy collection install prometheus.prometheus | ||
| + | </ | ||
| + | |||
| + | You can run playbooks simply like this : | ||
| + | |||
| + | < | ||
| + | ansible-playbook -i labs.ini calypso-sys.yml | ||
| + | </ | ||
| + | |||
| + | Or with more options : | ||
| + | |||
| + | < | ||
| + | # Run only on calypso0 and calypso1, import the users.yml variable file to have all users UID/GID, start the playbook at the step that runs the ISC2 task | ||
| + | ansible-playbook -i labs.ini calypso-sys.yml --limit calypso0, | ||
| + | </ | ||
| + | |||
| + | |||
