mirror of
https://github.com/geerlingguy/ansible-role-docker.git
synced 2025-07-23 13:48:32 +02:00
Make sure that handlers run before package install
This commit is contained in:
parent
a44d1bee2a
commit
8818e2b3e3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user