add become to hanlder
This commit is contained in:
parent
44263bce25
commit
b16a0ce3e3
@ -1,4 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
- block:
|
||||||
- name: Restart network
|
- name: Restart network
|
||||||
shell: sleep 2 && systemctl restart network
|
shell: sleep 2 && systemctl restart network
|
||||||
async: 1
|
async: 1
|
||||||
@ -16,6 +17,7 @@
|
|||||||
when: require_reboot
|
when: require_reboot
|
||||||
listen:
|
listen:
|
||||||
- "host_reboot"
|
- "host_reboot"
|
||||||
|
become: True
|
||||||
|
|
||||||
- name: Waiting for host startup
|
- name: Waiting for host startup
|
||||||
wait_for_connection:
|
wait_for_connection:
|
||||||
|
Loading…
Reference in New Issue
Block a user