Skip to content

Two repository #605

@elsoa-invitech

Description

@elsoa-invitech

You changed the repository filename in bdccead . When someone upgrade the role from previous version, there will be two apt repo in sources.list.d directory:

root@xxxx:/etc/apt/sources.list.d# ls -l 
total 12
-rw-r--r-- 1 root root 125 Nov  6  2024 apt_postgresql_org_pub_repos_apt.list
-rw-r--r-- 1 root root 130 Dec 10 17:52 pgdg.list

You have to remove the old repo before add the new, something like this:

- name: PostgreSQL | Remove old PostgreSQL repository | apt
  apt_repository:
    repo: "{{ postgresql_apt_repository }}"
    state: absent
  when:
    - ansible_facts['pkg_mgr'] == 'apt'
    - (postgresql_install_repository | default(true)) | bool

Sould i create a pr?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions