diff options
Diffstat (limited to 'distbuild/ansible/restart.yaml')
-rw-r--r-- | distbuild/ansible/restart.yaml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/distbuild/ansible/restart.yaml b/distbuild/ansible/restart.yaml new file mode 100644 index 00000000..a587a95e --- /dev/null +++ b/distbuild/ansible/restart.yaml @@ -0,0 +1,30 @@ +# 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. +--- + +# The order in which the processes are restarted is important! (Sadly). +- hosts: controller + gather_facts: false + tasks: + - name: restart controller processes + service: name={{ item }} state=restarted + with_items: + - morph-controller.service + - morph-controller-helper.service + +- hosts: workers + gather_facts: false + tasks: + - name: restart worker processes + service: name={{ item }} state=restarted + with_items: + - morph-worker.service + - morph-worker-helper.service |