From 85ca980088e59ba2bdc19cd7714d9178295dcf1a Mon Sep 17 00:00:00 2001 From: Nurlan Moldomurov Date: Wed, 18 Oct 2023 14:07:05 +0300 Subject: [PATCH] PMM-12587 Fix drop DB for EL7. (#2560) --- .../playbook/tasks/roles/sqlite-to-postgres/tasks/main.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/update/ansible/playbook/tasks/roles/sqlite-to-postgres/tasks/main.yml b/update/ansible/playbook/tasks/roles/sqlite-to-postgres/tasks/main.yml index 5c12040c39..76a51febf6 100644 --- a/update/ansible/playbook/tasks/roles/sqlite-to-postgres/tasks/main.yml +++ b/update/ansible/playbook/tasks/roles/sqlite-to-postgres/tasks/main.yml @@ -23,9 +23,7 @@ state: stopped - name: Drop grafana database from postgres EL7 - postgresql_query: - db: postgres - query: DROP DATABASE grafana WITH (FORCE); + command: dropdb -f grafana -U postgres when: - ansible_distribution == "CentOS" - ansible_distribution_major_version == "7"