Update the apt cache when the repo changes.
This commit is contained in:
parent
26322bc16c
commit
c785e788ca
|
@ -21,7 +21,12 @@
|
|||
signed_by: "{{ timescale_db_repo_key }}"
|
||||
state: present
|
||||
enabled: true
|
||||
register: timescaledb_repo
|
||||
when: ansible_distribution == "Ubuntu"
|
||||
- name: timescale_db_deb | Update the apt cache
|
||||
ansible.builtin.apt:
|
||||
update_cache: yes
|
||||
when: timescaledb_repo is changed
|
||||
- name: timescale_db_deb | Install the timescale DB package on deb
|
||||
ansible.builtin.apt:
|
||||
pkg: '{{ timescale_db_deb_pkgs }}'
|
||||
|
|
Loading…
Reference in New Issue