Skip to content

Commit

Permalink
Make slurmdbd task loop over var list in template
Browse files Browse the repository at this point in the history
  • Loading branch information
torfinnnome committed May 22, 2020
1 parent 7c2d2ab commit d4f7a86
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tasks/slurmdbd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,14 @@
- name: Install slurmdbd.conf
template:
src: generic.conf.j2
dest: "{{ slurm_config_dir }}/slurmdbd.conf"
dest: "{{ slurm_config_dir }}/{{ item.name }}"
owner: "{{ __slurm_user_name }}"
group: root
mode: 0400
with_items:
- name: slurmdbd.conf
config: slurmdbd_config
when: item.config in vars
notify:
- reload slurmdbd

Expand Down

0 comments on commit d4f7a86

Please sign in to comment.