Update the apt cache after adding the repository.

This commit is contained in:
Andrea Dell'Amico 2024-03-13 11:36:38 +01:00
parent 842df33462
commit 8e8703b846
Signed by: andrea.dellamico
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 6 additions and 0 deletions

View File

@ -30,6 +30,12 @@
signed_by: "{{ cassandra_deb_repo_key }}"
state: present
enabled: true
register: cassandra_repo
- name: cassandra-repo | Update the apt cache
ansible.builtin.apt:
update_cache: yes
when: cassandra_repo is changed
- name: cassandra-repo | Manage the Cassandra repository on EL systems
when: