Keyring removal is already handled by deb822 module.

This commit is contained in:
Sebastian 2025-08-18 20:45:45 +02:00
parent 8818e2b3e3
commit 894e30654f
No known key found for this signature in database

View File

@ -51,8 +51,3 @@
- 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
state: "{{ 'file' if docker_add_repo | bool else 'absent' }}"