system-config/playbooks/zuul_start.yaml
Joshua Hesketh 600d87ffe5 Use host groups for zuul playbooks
Rather than list the hostnames individually, use the inventory group.

Change-Id: I554fb33f26c31df5f97ffd5be61f6d3e17faefa5
2018-09-12 12:26:43 -06:00

41 lines
857 B
YAML

# Run this with "-f 20"
- hosts: 'zuul-scheduler:!disabled'
tasks:
- name: Start Zuul Scheduler
service:
name: zuul-scheduler
state: started
become: true
become_user: root
- name: Stop Zuul Web
service:
name: zuul-web
state: started
become: true
become_user: root
- name: Stop Zuul Finger Gateway
service:
name: zuul-fingergw
state: started
become: true
become_user: root
- hosts: 'zuul-merger:!disabled'
tasks:
- name: Start Zuul Mergers
service:
name: zuul-merger
state: started
become: true
become_user: root
- hosts: 'zuul-executor:!disabled'
tasks:
- name: Start Zuul Executors
service:
name: zuul-executor
state: started
become: true
become_user: root