Also include gear group with zuul start/stop playbooks

Change-Id: I870e6b47bf606a232b5dd65f87bd66dbefb84e9b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
changes/28/646028/1
Paul Belanger 4 years ago
parent 3b36b26a0f
commit 05da165d6a
  1. 8
      playbooks/zuul/start.yaml
  2. 15
      playbooks/zuul/stop.yaml

@ -12,6 +12,14 @@
# License for the specific language governing permissions and limitations
# under the License.
---
- hosts: gear:!disabled
tasks:
- name: starting gear
become: true
systemd:
name: gear
state: started
- hosts: zuul-scheduler:!disabled
tasks:
- name: starting zuul-scheduler

@ -86,3 +86,18 @@
path: "/proc/{{ result.status.MainPID }}/status"
state: absent
timeout: 11400
- hosts: gear:!disabled
tasks:
- name: stopping gear
become: true
systemd:
name: gear
state: stopped
register: result
- name: Wait for (3h10m) to stop gear
wait_for:
path: "/proc/{{ result.status.MainPID }}/status"
state: absent
timeout: 11400

Loading…
Cancel
Save