File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 11---
22openhpc_slurm_service_enabled : true
3- openhpc_slurm_service : slurmd
4- openhpc_slurm_control_host :
3+ openhpc_slurm_service :
4+ openhpc_slurm_control_host :
55openhpc_slurm_partitions : []
66openhpc_cluster_name :
77openhpc_packages : []
Original file line number Diff line number Diff line change 33 service :
44 name : " {{ openhpc_slurm_service }}"
55 state : reloaded
6- when : openhpc_slurm_service_enabled | bool
6+ when :
7+ - openhpc_slurm_service is not none
8+ - openhpc_slurm_service_enabled | bool
79
810- name : Restart Munge service
911 service :
Original file line number Diff line number Diff line change 1616 - " slurm-example-configs-ohpc"
1717 state : installed
1818
19- - name : Ensure the SLURM spool directory exists
19+ - name : Ensure the Slurm spool directory exists
2020 file :
2121 path : /var/spool/slurm
2222 owner : slurm
5353 notify :
5454 - Restart Munge service
5555
56- - name : Ensure SLURM services are enabled
56+ - name : Ensure Slurm services are enabled
5757 service :
5858 name : " {{ openhpc_slurm_service }}"
5959 enabled : " {{ openhpc_slurm_service_enabled | bool }}"
60+ when : openhpc_slurm_service is not none
6061 notify :
6162 - Restart SLURM service
6263
7576
7677# In case the service isn't running and the config hasn't changed to trigger
7778# the handler, ensure it's running here.
78- - name : Ensure SLURM services are running
79+ - name : Ensure Slurm services are running
7980 service :
8081 name : " {{ openhpc_slurm_service }}"
8182 state : " {{ 'started' if openhpc_slurm_service_enabled | bool else 'stopped' }}"
83+ when : openhpc_slurm_service is not none
8284
8385# Install OpenHPC runtime
8486- name : Ensure selected OpenHPC packages are installed
You can’t perform that action at this time.
0 commit comments