2a7c755a08
If we need to start and stop, it's best to use playbooks. We already have tasks files with start commands in each role, so put the stop commands into similar task files. Make the restart playbook import_playbook the stop and start playbooks to reduce divergence. Use the graceful shutdown pattern from the gerrit docker-compose to stop the zuul scheduler. Change-Id: Ia20124553821f4b41186bce6ba2bff6ca2333a99
23 lines
448 B
YAML
23 lines
448 B
YAML
# Run this with "-f 20"
|
|
|
|
- hosts: 'zuul-scheduler:!disabled'
|
|
tasks:
|
|
- include_role:
|
|
name: zuul-scheduler
|
|
tasks_from: start
|
|
- include_role:
|
|
name: zuul-web
|
|
tasks_from: start
|
|
|
|
- hosts: 'zuul-merger:!disabled'
|
|
tasks:
|
|
- include_role:
|
|
name: zuul-merger
|
|
tasks_from: start
|
|
|
|
- hosts: 'zuul-executor:!disabled'
|
|
tasks:
|
|
- include_role:
|
|
name: zuul-executor
|
|
tasks_from: start
|