From ce25ff16e880a1bf779152023efac585dc9722f4 Mon Sep 17 00:00:00 2001 From: Jeffrey Serio Date: Tue, 7 Jan 2025 18:26:36 -0600 Subject: [PATCH] Separate update_cache task --- debian-update.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/debian-update.yml b/debian-update.yml index afe9f85..31b4555 100644 --- a/debian-update.yml +++ b/debian-update.yml @@ -1,13 +1,16 @@ --- -- hosts: servers +- hosts: servers gather_facts: true become: true tasks: + - name: Perform a cache update + ansible.builtin.apt: + update_cache: true + - name: Perform a dist-upgrade ansible.builtin.apt: upgrade: dist - update_cache: true - name: Check if reboot is required ansible.builtin.stat: