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