From 7cb0ddd53c80650209528086d71107e3ced0a9e9 Mon Sep 17 00:00:00 2001 From: Danny de Kooker Date: Thu, 6 Jun 2024 19:15:07 +0200 Subject: [PATCH] added root user --- Update/upd-apt.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Update/upd-apt.yaml b/Update/upd-apt.yaml index 530bdc5..ea239ff 100644 --- a/Update/upd-apt.yaml +++ b/Update/upd-apt.yaml @@ -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'