24f6232183
Running this playbook on the puppetmaster we consistently run into ssh failures due to async reconnecting periodically and network issues between hosts. We can address this by starting a single connection without async and polling on that which appears to be the default wait_for behavior. Testing of this seems to indicate it is more reliable. Change-Id: Iec72e2c0d099c0e28bc4b4b48608a03b3e66b4c0
24 lines
597 B
YAML
24 lines
597 B
YAML
---
|
|
- hosts: 'zlstatic0*.openstack.org:zl0*.openstack.org'
|
|
# Do the entire play completely for one host at a time
|
|
serial: 1
|
|
any_errors_fatal: true
|
|
tasks:
|
|
- name: Graceful stop zuul-launcher
|
|
shell: 'zuul-launcher graceful'
|
|
become: true
|
|
become_user: zuul
|
|
|
|
- name: Wait for (3h10m) to stop zuul-launcher
|
|
wait_for:
|
|
path: /var/run/zuul-launcher/zuul-launcher.pid
|
|
state: absent
|
|
timeout: 11400
|
|
|
|
- name: Restart zuul-launcher
|
|
service:
|
|
name: zuul-launcher
|
|
state: restarted
|
|
become: true
|
|
become_user: root
|