blob: b1c36718ce1f76746a51a203513710cc168758e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
- name: Restart master system
# https://github.com/ansible/ansible/issues/10616
shell: sleep 2 && shutdown -r now "OpenShift Ansible master rolling restart"
async: 1
poll: 0
ignore_errors: true
become: yes
# Ensure the api_port is available.
- name: Wait for master API to come back online
become: no
local_action:
module: wait_for
host="{{ inventory_hostname }}"
state=started
delay=10
port="{{ openshift.master.api_port }}"
|