added root user
This commit is contained in:
@@ -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'
|
||||||
|
|||||||
Reference in New Issue
Block a user