addedd become_method and removed root
This commit is contained in:
1 parent
e9ad9a079d
commit
4ca2cec4d4
3 files changed
+3
-3
No files matched your search
@@ -2,7 +2,7 @@
|
||||
- name: Check if system reboot is required
|
||||
hosts: all
|
||||
become: yes
|
||||
become_user: root
|
||||
become_method: sudo
|
||||
|
||||
tasks:
|
||||
- name: Check if a reboot is required
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
- name: Reboot machine
|
||||
hosts: "{{ Daily_Reboot_Hosts }}"
|
||||
become: yes
|
||||
become_user: root
|
||||
become_method: sudo
|
||||
|
||||
tasks:
|
||||
- name: Reboot machine
|
||||
|
||||
Reference in new issue
Block a user