Interact with slurm instance - drain nodes, read their states,etc.
Install with ansible-galaxy collection install jose_d.slurm
, published in Ansible Galaxy.
Example use:
- name: Drain node
jose_d.slurm.slurm_scontrol:
nodes:
- n2
new_state: DRAIN
new_state_reason: Node maintenance
register: sc
delegate_to: slurm1.cluster.lan