Skip to content

Commit

Permalink
PMM-12136 force remove db 2.38 (#2332)
Browse files Browse the repository at this point in the history
* PMM-7 Force remove pmm-managed DB

* PMM-7 Fix EL7 OVF build
  • Loading branch information
BupycHuk authored Jun 29, 2023
1 parent 4224035 commit 4d92125
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion build/ansible/pmm2/post-build-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,20 @@
ignore_errors: yes
when: ansible_virtualization_type != "docker"

- name: Remove pmm-managed database
- name: Remove pmm-managed database EL7
when: ansible_distribution == 'CentOS' and ansible_distribution_major_version == '7'
postgresql_db:
login_user: postgres
name: pmm-managed
state: absent
register: db_check_result

- name: Remove pmm-managed database EL9
when: (ansible_distribution == 'OracleLinux' or ansible_distribution == 'AlmaLinux') and ansible_distribution_major_version == '9'
postgresql_db:
login_user: postgres
name: pmm-managed
force: true
state: absent
register: db_check_result

Expand Down

0 comments on commit 4d92125

Please sign in to comment.