File tree Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 7
7
when : openhpc_slurm_service_started | bool
8
8
9
9
# NOTE: we need this running before slurmctld start
10
- - name : Restart slurmdbd service
10
+ - name : Issue slurmdbd restart command
11
11
service :
12
12
name : " slurmdbd"
13
13
state : restarted
17
17
- openhpc_slurm_service_started | bool
18
18
- openhpc_slurmdbd_host in play_hosts
19
19
run_once : true
20
+ listen : Restart slurmdbd service
21
+
22
+ - name : Check slurmdbd actually restarted
23
+ wait_for :
24
+ port : " {{ openhpc_slurmdbd_port }}"
25
+ delegate_to : " {{ openhpc_slurmdbd_host }}"
26
+ run_once : true
27
+ when :
28
+ - openhpc_slurmdbd_host is defined
29
+ - openhpc_slurm_service_started | bool
30
+ - openhpc_slurmdbd_host in play_hosts
31
+ listen : Restart slurmdbd service
20
32
21
33
# NOTE: we need this running before slurmd
22
34
# Allows you to reconfigure slurmctld from another host
Original file line number Diff line number Diff line change 163
163
enabled : " {{ openhpc_slurm_service_enabled | bool }}"
164
164
state : " {{ 'started' if openhpc_slurm_service_started | bool else 'stopped' }}"
165
165
166
+ - name : flush handler
167
+ meta : flush_handlers # as then subsequent "ensure" is a no-op if slurm services bounced
168
+
166
169
- name : Ensure slurmdbd is started and running
167
170
service :
168
171
name : slurmdbd
169
172
enabled : " {{ openhpc_slurm_service_enabled | bool }}"
170
173
state : " {{ 'started' if openhpc_slurm_service_started | bool else 'stopped' }}"
171
174
when : openhpc_enable.database | default(false) | bool
172
175
173
- - name : flush handler
174
- meta : flush_handlers # as then subsequent "ensure" is a no-op if slurm services bounced
175
-
176
176
- name : Ensure Slurm service state
177
177
service :
178
178
name : " {{ openhpc_slurm_service }}"
You can’t perform that action at this time.
0 commit comments