2
0

addedd become_method and removed root

This commit is contained in:
2024-06-08 14:09:18 +02:00
parent e9ad9a079d
commit 4ca2cec4d4
3 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -2,7 +2,7 @@
- name: Reboot machine
hosts: "{{ Daily_Reboot_Hosts }}"
become: yes
become_user: root
become_method: sudo
tasks:
- name: Reboot machine