openshift-container-platfor.../reboot-master-origin.yaml

21 строка
476 B
YAML

---
- hosts: masters:!master0
gather_facts: no
become: yes
become_method: sudo
tasks:
- name: Reboot master nodes
shell: (/bin/sleep 5 ; shutdown -r now "OpenShift configurations required reboot" ) &
async: 30
poll: 0
ignore_errors: true
- name: Wait for master nodes to reboot
wait_for:
port: 22
host: "{{ ansible_ssh_host|default(inventory_hostname) }}"
delay: 10
timeout: 420
connection: local
become: false