We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb081ea commit 2ff7206Copy full SHA for 2ff7206
tasks/install_apt.yml
@@ -37,6 +37,16 @@
37
creates: /usr/share/postgresql-common/pgdg/apt.postgresql.org.gpg
38
when: ansible_facts['pkg_mgr'] == 'apt'
39
40
+# --- Remove old repository file ---
41
+# We use a new repo file in next task
42
+- name: PostgreSQL | Remove old PostgreSQL repository | apt
43
+ apt_repository:
44
+ repo: "{{ postgresql_apt_repository }}"
45
+ state: absent
46
+ when:
47
+ - ansible_facts['pkg_mgr'] == 'apt'
48
+ - (postgresql_install_repository | default(true)) | bool
49
+
50
# --- Add the PGDG APT repository (HTTPS + signed-by) ---
51
# We explicitly build the repo line to ensure the correct suite and signed-by usage.
52
- name: Add PGDG APT repository
0 commit comments