Client configuration
Complete the configuration on the compute nodes by running:
---
- name: Install slurm client
ansible.builtin.yum:
name:
- slurm-slurmd
state: latest
update_cache: true
- name: Create /var/spool/slurmd folder
ansible.builtin.file:
path: /var/spool/slurmd
state: directory
owner: slurm
group: slurm
mode: "0755"
- name: Check /var/log/slurmd.log exists
ansible.builtin.file:
path: /var/log/slurmd.log
state: touch
owner: slurm
group: slurm
access_time: preserve
- name: Force systemd to reread config
ansible.builtin.systemd: daemon_reload=yes
- name: Start slurmd service
ansible.builtin.service:
name: slurmd
state: restarted
enabled: true
Check everything is working and the nodes are listed in the sinfo -l
command.