Monty Taylor 2a7c755a08 Rework zuul start/stop/restart playbooks for docker
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
2020-04-27 09:34:50 -05:00

13 lines
250 B
YAML

- name: Stop Zuul Executor
service:
name: zuul-executor
state: stopped
become: true
become_user: root
- name: Wait for (3h10m) to stop Zuul Executor
wait_for:
path: /var/run/zuul/executor.pid
state: absent
timeout: 11400