Add handlers for restarting mbs poller and workers
This commit is contained in:
parent
ad3cefb8a7
commit
86b4680c28
1 changed files with 13 additions and 0 deletions
|
@ -178,3 +178,16 @@
|
|||
|
||||
- name: restart chronyd
|
||||
service: name=chronyd state=restarted
|
||||
|
||||
- name: restart mbs poller
|
||||
systemd:
|
||||
name: mbs-poller
|
||||
state: restarted
|
||||
when: not mbs_frontend
|
||||
|
||||
- name: restart mbs workers
|
||||
systemd:
|
||||
name: "mbs-worker@{{ item }}"
|
||||
state: restarted
|
||||
with_sequence: start=0 end={{ mbs_num_workers - 1 }}
|
||||
when: not mbs_frontend
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue