added root user
This commit is contained in:
1 parent
af41bc589b
commit
7cb0ddd53c
1 file changed
+3
-2
+3
-2
@@ -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