diff --git a/ansible-scylla-node/tasks/Debian.yml b/ansible-scylla-node/tasks/Debian.yml index 40d5057c..51ac501e 100644 --- a/ansible-scylla-node/tasks/Debian.yml +++ b/ansible-scylla-node/tasks/Debian.yml @@ -1,6 +1,20 @@ --- - name: Add Scylla repos block: + - name: "Purge keyring '{{ scylla_repo_keyringfile }}'" + ansible.builtin.file: + path: "{{ scylla_repo_keyringfile }}" + state: absent + when: install_type == 'online' and scylla_repo_keyserver is defined and scylla_repo_keys is defined and (scylla_repo_keys|length > 0) + + - name: Remove an apt key by id + ansible.builtin.apt_key: + keyserver: "{{ scylla_repo_keyserver }}" + id: "{{ item }}" + state: absent + with_items: "{{ scylla_repo_keys }}" + when: install_type == 'online' and scylla_repo_keyserver is defined and scylla_repo_keys is defined and (scylla_repo_keys|length > 0) + - name: Install gnupg2 dependency apt: name: "gnupg2"