Update the apt cache when the repo changes.

This commit is contained in:
Andrea Dell'Amico 2024-02-12 16:29:27 +01:00
parent eaeeb5be5a
commit b8be7778e8
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 5 additions and 0 deletions

View File

@ -30,6 +30,11 @@
signed_by: "{{ postgresql_deb_repo_key }}"
state: present
enabled: true
register: postgresql_org_repo
- name: postgresql_org_repo | Update the apt cache
ansible.builtin.apt:
update_cache: yes
when: postgresql_org_repo is changed
- name: postgresql_org_repo | Manage the EL repository
when: