Skip to content
Snippets Groups Projects
Commit dd0a2446 authored by Ubuntu's avatar Ubuntu
Browse files

allow the playbook to configure if slurmd is started on boot, default to yes

parent a017bb65
No related branches found
No related tags found
1 merge request!37allow the playbook to configure if slurmd is started on boot, default to yes
......@@ -5,6 +5,11 @@
when: (ansible_distribution == "CentOS" or ansible_distribution == "RedHat") and
( ansible_distribution_major_version == "7")
- name: set slurmd_enabled (default enabled)
set_fact:
slurmd_enabled: True
when: slurmd_enabled is not defined
- name: install slurmdbd init
template: src=slurmdbd.initd.j2 dest=/etc/init.d/slurmdbd mode=755
sudo: true
......@@ -56,11 +61,11 @@
when: use_systemd is defined and start_slurmctld is defined
- name: start slurmd
service: name=slurmd state=started enabled=yes
service: name=slurmd state=started enabled={{ slurmd_enabled }}
sudo: true
when: use_systemd is defined and start_slurmd is defined
- name: start slurm
service: name=slurm state=started enabled=yes
service: name=slurm state=started enabled={{ slurmd_enabled }}
sudo: true
when: use_systemd is not defined and ( start_slurmd is defined or start_slurmctld is defined )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment