blob: 479fefbc9d3c8580dd286c67879e73899ba79edd [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_ssh_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