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:23] – [Ansible playbooks] remiadministratif:tooling:ansible [2025/09/26 14:02] (current) remi
Line 1: Line 1:
 +====== Ansible ======
 +
 ===== Ansible Environment ===== ===== Ansible Environment =====
  
Line 35: Line 37:
                                
 </code> </code>
 +
 +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>
 +
  
  
Line 65: Line 93:
                   |-> munge:          (Needed to authenticate SLURM nodes on Calypso and ISC Compute)                   |-> munge:          (Needed to authenticate SLURM nodes on Calypso and ISC Compute)
                   |-> nvidia-cuda:    (Needed to allow servers to use Nvidia GPUs)                   |-> nvidia-cuda:    (Needed to allow servers to use Nvidia GPUs)
-                  |-> prometheus:     (Empty, TODO : Installs prometheus exporters and server, separate in 2 playbooks)+                  |-> prometheus:     (Empty, TODO : Installs prometheus exporters and server, separate in 2 
 +                  |                    playbooks)
                   |-> rumba-sys:      (Configures rumba master, with all                   |-> rumba-sys:      (Configures rumba master, with all
                   |                    users, software, and system configs)                   |                    users, software, and system configs)
Back to top