Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
administratif:tooling:ansible [2025/09/26 12:34] – [Ansible Environment] remiadministratif: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 "playbooks" dir as your working directory. From there all relative paths works as intended. Ansible is made to run all playbooks using this "playbooks" dir as your working directory. From there all relative paths works as intended.
 +
 +You can use some pre-defined playbooks using the Galaxy store :
 +
 +<code>
 +# List installed roles :
 +ansible-galaxy collection list
 +
 +# Installs a role from prometheus space called prometheus too :
 +ansible-galaxy collection install prometheus.prometheus
 +</code>
 +
 +You can run playbooks simply like this :
 +
 +<code>
 +ansible-playbook -i labs.ini calypso-sys.yml
 +</code>
 +
 +Or with more options :
 +
 +<code>
 +# 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,calypso1 --extra-vars='@users.yml' --start-at-task="Check or Add ISC2 users"
 +</code>
 +
 +
  
  
Back to top