Would like to move to to https://github.com/rug-cit-hpc/pg-playbooks but has large files...
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.2 KiB

---
- name: set selinux in permissive mode to allow docker volumes
selinux:
policy: targeted
state: permissive
- name: Remove firewald, it interferes with slurm.
yum:
name:
- firewald
state: absent
autoremove: true
- name: Install the Slurm client and NHC with yum.
yum:
state: latest
update_cache: yes
name:
- slurm
- slurm-slurmd
- lbnl-nhc
notify:
- restart_munge
- restart_slurmd
become: true
- name: Install munge_keyfile
copy:
src: roles/slurm-management/files/munge.key
owner: munge
group: munge
mode: 0600
dest: /etc/munge/munge.key
notify:
- restart_munge
- restart_slurmd
become: true
- name: Deploy slurm config files.
template:
src: "{{ item }}"
dest: /etc/slurm/{{ item | basename }}
owner: root
group: root
mode: 0644
with_items:
- roles/slurm-management/files/slurm.conf
- gres.conf
- cgroup.conf
- acct_gather.conf
notify:
- reload_slurmd
become: true
- name: Start slurm and munge services
systemd:
name: "{{ item }}"
enabled: yes
state: started
with_items:
- munge.service
- slurmd.service
become: true
...