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 }}"
|
signed_by: "{{ timescale_db_repo_key }}"
|
||||||
state: present
|
state: present
|
||||||
enabled: true
|
enabled: true
|
||||||
|
register: timescaledb_repo
|
||||||
when: ansible_distribution == "Ubuntu"
|
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
|
- name: timescale_db_deb | Install the timescale DB package on deb
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
pkg: '{{ timescale_db_deb_pkgs }}'
|
pkg: '{{ timescale_db_deb_pkgs }}'
|
||||||
|
|
Loading…
Reference in New Issue