Files
SlurmTests/roles/slurm/tasks/main.yml
2021-04-24 00:13:57 +02:00

37 lines
740 B
YAML

- name: 'install slurm tools on host'
yum:
name: [ slurm, slurm-doc ]
state: present
- include_tasks: dockerimage.yml
loop:
- slurmctld
- slurmd
- name: generate munge key
shell:
cmd: dd if=/dev/urandom bs=1 count=1024 >/etc/munge/munge.key
creates: /etc/munge/munge.key
- name: set permissions on munge key
file:
path: /etc/munge/munge.key
owner: munge
group: munge
mode: u=rw,g=,o=
- file:
path: /container/volumes/munge
state: directory
owner: munge
group: munge
mode: u=rwx,g=,o=
- name: copy munge key to docker containers
copy:
remote_src: True
force: true
mode: preserve
src: /etc/munge/munge.key
dest: /container/volumes/munge/munge.key