added root user
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
- name: Update and upgrade apt packages
|
||||
hosts: all
|
||||
become: yes
|
||||
become_method: sudo
|
||||
become_user: root
|
||||
|
||||
tasks:
|
||||
- name: Update packages with apt
|
||||
@@ -12,7 +12,8 @@
|
||||
|
||||
- name: Upgrade packages with apt
|
||||
when: ansible_pkg_mgr == 'apt'
|
||||
command: sudo apt-get upgrade -y
|
||||
ansible.builtin.apt:
|
||||
upgrade: dist
|
||||
|
||||
- name: Update packages with yum
|
||||
when: ansible_pkg_mgr == 'yum'
|
||||
|
||||
Reference in New Issue
Block a user