mirror of
https://github.com/ruanbekker/rpi-ansible.git
synced 2025-04-20 01:11:38 +02:00
Create main.yml
This commit is contained in:
parent
7348dbeb95
commit
0bd9fb94bd
12
roles/static-ip/handlers/main.yml
Normal file
12
roles/static-ip/handlers/main.yml
Normal file
@ -0,0 +1,12 @@
|
||||
# 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
|
Loading…
x
Reference in New Issue
Block a user