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 - name: Check if system reboot is required
hosts: all hosts: all
become: yes become: yes
become_user: root become_method: sudo
tasks: tasks:
- name: Check if a reboot is required - name: Check if a reboot is required

View File

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

View File

@@ -2,7 +2,7 @@
- name: Update and upgrade apt packages - name: Update and upgrade apt packages
hosts: all hosts: all
become: yes become: yes
become_user: root become_method: sudo
tasks: tasks:
- name: Update packages with apt - name: Update packages with apt