From 5512d15efc58ec8cd510c3b3b4fc15dde955ed53 Mon Sep 17 00:00:00 2001 From: alecsandruchirosca Date: Thu, 2 May 2024 21:57:58 +0300 Subject: [PATCH] ss --- update.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/update.yml b/update.yml index be2c239..a8d6bf2 100644 --- a/update.yml +++ b/update.yml @@ -1,11 +1,20 @@ - hosts: all become: true - become_method: sudo - become_user: root tasks: - - name: get user - # uses_shell: true - ansible.builtin.shell: whoami + - name: Update and upgrade apt packages + apt: + upgrade: yes + update_cache: yes + cache_valid_time: 86400 + + # - hosts: all + # become: true + # become_method: sudo + # become_user: root + # tasks: + # - name: get user + # # uses_shell: true + # ansible.builtin.shell: whoami # - name: Run whoami without become.