summaryrefslogtreecommitdiff
path: root/distbuild/ansible/restart.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'distbuild/ansible/restart.yaml')
-rw-r--r--distbuild/ansible/restart.yaml16
1 files changed, 16 insertions, 0 deletions
diff --git a/distbuild/ansible/restart.yaml b/distbuild/ansible/restart.yaml
new file mode 100644
index 00000000..6cd02be4
--- /dev/null
+++ b/distbuild/ansible/restart.yaml
@@ -0,0 +1,16 @@
+---
+- hosts: controller
+ tasks:
+ - name: restart controller processes
+ service: name={{ item }} state=restarted
+ with_items:
+ - morph-controller-helper.service
+ - morph-controller.service
+
+- hosts: workers
+ tasks:
+ - name: restart worker processes
+ service: name={{ item }} state=restarted
+ with_items:
+ - morph-worker-helper.service
+ - morph-worker.service