Explorar o código

Rolle reboot
- become hinzugefügt

erdo_king %!s(int64=7) %!d(string=hai) anos
pai
achega
432ebd5fbf
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      roles/reboot/tasks/main.yml

+ 2 - 1
roles/reboot/tasks/main.yml

@@ -1,8 +1,9 @@
 ---
 - name: Reboot server
-  shell: "reboot"
+  shell: "/sbin/reboot"
   async: 1
   poll: 0
+  become: true
 
 - name: Wait for the reboot to complete
   wait_for_connection: