2
0

added root user

This commit is contained in:
2024-06-06 19:15:07 +02:00
parent af41bc589b
commit 7cb0ddd53c

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_method: sudo become_user: root
tasks: tasks:
- name: Update packages with apt - name: Update packages with apt
@@ -12,7 +12,8 @@
- name: Upgrade packages with apt - name: Upgrade packages with apt
when: ansible_pkg_mgr == 'apt' when: ansible_pkg_mgr == 'apt'
command: sudo apt-get upgrade -y ansible.builtin.apt:
upgrade: dist
- name: Update packages with yum - name: Update packages with yum
when: ansible_pkg_mgr == 'yum' when: ansible_pkg_mgr == 'yum'