Skip to content

Commit

Permalink
PMM-12420 Fix SQLite to Postgres upgrade. (#2455)
Browse files Browse the repository at this point in the history
* PMM-12420 Fix SQLite to Postgres upgrade.

* PMM-12420 Trying to fix ansible script.

* PMM-12420 Trying to fix ansible script.

* PMM-12420 Trying to fix ansible script.
  • Loading branch information
BupycHuk authored Sep 4, 2023
1 parent a0a5048 commit a2a5e44
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion update/ansible/playbook/tasks/roles/grafana/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
dest: /etc/grafana/grafana.ini
section: database
option: type
value: absent
state: absent

- name: Remove database host
ini_file:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
---
- name: Wait for grafana to update DB and be ready
ansible.builtin.uri:
url: "http://127.0.0.1:3000/api/health"
status_code: 200
method: GET
retries: 120
delay: 1

- name: Create Grafana backup dir
file:
path: "/srv/backup/grafana"
Expand Down

0 comments on commit a2a5e44

Please sign in to comment.