Also include gear group with zuul start/stop playbooks
Change-Id: I870e6b47bf606a232b5dd65f87bd66dbefb84e9b Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
3b36b26a0f
commit
05da165d6a
@ -12,6 +12,14 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
---
|
---
|
||||||
|
- hosts: gear:!disabled
|
||||||
|
tasks:
|
||||||
|
- name: starting gear
|
||||||
|
become: true
|
||||||
|
systemd:
|
||||||
|
name: gear
|
||||||
|
state: started
|
||||||
|
|
||||||
- hosts: zuul-scheduler:!disabled
|
- hosts: zuul-scheduler:!disabled
|
||||||
tasks:
|
tasks:
|
||||||
- name: starting zuul-scheduler
|
- name: starting zuul-scheduler
|
||||||
|
@ -86,3 +86,18 @@
|
|||||||
path: "/proc/{{ result.status.MainPID }}/status"
|
path: "/proc/{{ result.status.MainPID }}/status"
|
||||||
state: absent
|
state: absent
|
||||||
timeout: 11400
|
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…
Reference in New Issue
Block a user