summaryrefslogtreecommitdiff
path: root/distbuild/ansible/restart.yaml
blob: 3459bbec5767976740aa6e2d561bb53242314018 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Restart all Morph instances on a Baserock distbuild network.
#
# This will abort any running builds.
#
# This is an Ansible playbook. Run with:
#
#   ansible-playbook -i distbuild-hosts restart.yaml
#
# You will need a file named 'distbuild-hosts' describing your distbuild
# network.
---
- 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