From 8818e2b3e33251a6bc2495fdaf05cbb9f3970cb3 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 21 Jul 2025 14:54:41 +0200 Subject: [PATCH] Make sure that handlers run before package install --- tasks/setup-Debian.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tasks/setup-Debian.yml b/tasks/setup-Debian.yml index 1cd39b3..8667254 100644 --- a/tasks/setup-Debian.yml +++ b/tasks/setup-Debian.yml @@ -49,6 +49,9 @@ state: "{{ 'present' if docker_add_repo | bool else 'absent' }}" notify: apt update +- name: Ensure handlers are notified immediately to update the apt cache. + ansible.builtin.meta: flush_handlers + - name: Remove Docker apt key if docker_add_repo is false. ansible.builtin.file: path: /etc/apt/keyrings/docker.asc