Initial commit
This commit is contained in:
13
roles/extroot/handlers/main.yml
Normal file
13
roles/extroot/handlers/main.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
# Reboot device
|
||||
- name: Reboot device
|
||||
ansible.builtin.command:
|
||||
cmd: "reboot"
|
||||
register: reboot_device_status
|
||||
changed_when: reboot_device_status != 0
|
||||
|
||||
# Wait for device to boot up
|
||||
- name: Wait for device to boot up
|
||||
ansible.builtin.wait_for_connection:
|
||||
delay: 30
|
||||
timeout: 300
|
||||
Reference in New Issue
Block a user