You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
364 B
13 lines
364 B
4 years ago
|
# https://github.com/vicchi/ansible-pi-lockdown/blob/master/roles/static-ip/handlers/main.yml
|
||
|
---
|
||
|
- name: reboot
|
||
|
command: shutdown -r +0 'Ansible Reboot triggered'
|
||
|
async: 0
|
||
|
poll: 0
|
||
|
ignore_errors: true
|
||
|
become: true
|
||
|
|
||
|
- name: wait for reboot to finish
|
||
|
local_action: wait_for host={{ ipaddress }} state=started port=22 delay=50 timeout=120
|
||
|
become: false
|