Make sure that handlers run before package install

This commit is contained in:
Sebastian 2025-07-21 14:54:41 +02:00
parent a44d1bee2a
commit 8818e2b3e3
No known key found for this signature in database

View File

@ -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