From 9c52bd8be874c0de7ba24d7b709031660ee3497a Mon Sep 17 00:00:00 2001 From: Robert Date: Sun, 19 Feb 2023 17:43:48 +0100 Subject: [PATCH] fix apt get update & upgrade --- update.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/update.yml b/update.yml index 75890dc..63cc146 100644 --- a/update.yml +++ b/update.yml @@ -4,12 +4,11 @@ hosts: all become: yes # als root ausführen tasks: - - name: Ansible Update Cache and Upgrade all Packages - register: updatesys - apt: - name: "*" - state: latest - update_cache: yes + - name: Update apt-get repo and cache + apt: update_cache=yes force_apt_get=yes cache_valid_time=3600 + + - name: Upgrade all apt packages + apt: upgrade=dist force_apt_get=yes - name: Display the last line of the previous task to check the stats debug: