blob: 7a1676e22217b8d77e4504b81bca27eb44658f93 [file] [log] [blame]
---
# tasks file for /usr/local/google/home/friasc/apigee-workspace/apigee-opdk-role-workspace/apigee-server-restart
- block:
- name: Restarting node now
become: yes
shell: '/usr/sbin/reboot now'
async: 0
poll: 0
- name: Pausing playbook for server restart
local_action:
pause seconds=15
- name: Waiting for server to complete restarting
become: no
local_action:
wait_for host='{{ ansible_host }}' state=started delay="{{ start_check_delay | d(30) }}" timeout='{{ server_restart_timeout | d(45) }}'
- name: Report server started
debug:
msg: "Server is now running."
when: not ignore_restart