/ansible-jose_d-slurm

Ansible collection containing slurm-related ansible-ware.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Ansible Collection - jose_d.slurm

Interact with slurm instance - drain nodes, read their states,etc.

Install with ansible-galaxy collection install jose_d.slurm, published in Ansible Galaxy.

Use

slurm_scontrol

Example use:

Example 1 - drain node n2 with reason "Node maintenance"

- 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

Pylint