We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5522ff commit 0bb175aCopy full SHA for 0bb175a
provision-contest/ansible/roles/judgedaemon/handlers/main.yml
@@ -23,6 +23,25 @@
23
- name: Update grub
24
command: update-grub
25
26
-- name: Reboot
+- name: Get judgedaemon PID
27
+ pids:
28
+ name: judgedaemon
29
+ register: judgedaemon_pids
30
+ listen: Reboot
31
+
32
+- name: Signal judgedaemon to shut down
33
+ command: kill -SIGHUP "{{ item }}"
34
+ with_items: "{{ judgedaemon_pids.pids }}"
35
36
37
+- name: Wait for judgedaemon to finish
38
+ wait_for:
39
+ path: "/proc/{{ item }}/status
40
+ state: absent
41
42
43
44
+- name: Reboot finally
45
reboot:
46
search_paths: ['/lib/molly-guard', '/sbin']
47
0 commit comments