Ver código fonte

Rolle reboot
- become hinzugefügt

erdo_king 7 anos atrás
pai
commit
432ebd5fbf
1 arquivos alterados com 2 adições e 1 exclusões
  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: