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"