blob: f7697067a553c9897440539c53e514191c5eaa17 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
---
- name: Restart master API
service:
name: "{{ openshift_service_type }}-master-api"
state: restarted
- name: Wait for master API to come back online
wait_for:
host: "{{ openshift.common.hostname }}"
state: started
delay: 10
port: "{{ openshift.master.api_port }}"
timeout: 600
# We retry the controllers because the API may not be 100% initialized yet.
- name: restart master controllers
command: "systemctl restart {{ openshift_service_type }}-master-controllers"
retries: 3
delay: 5
register: result
until: result.rc == 0
|