Skip to content

Commit

Permalink
Remove postgres service jinja template + fix DB_URI for migration
Browse files Browse the repository at this point in the history
  • Loading branch information
harishsurf committed Jul 1, 2024
1 parent 5f64d83 commit fd850a5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,20 @@
state: absent
when: container_result.rc == 0

- name: Update DB_URI in config.yaml
replace:
path: "{{ quay_root }}/quay-config/config.yaml"
regexp: '^DB_URI: postgresql://.*$'
replace: 'DB_URI: sqlite:////sqlite/quay_sqlite.db'
register: db_uri_update

- name: Ensure DB_URI was updated successfully
assert:
that:
- db_uri_update.changed
fail_msg: "Failed to update DB_URI in quay's config"
success_msg: "DB_URI has been updated successfully"

- name: Stop Quay service
systemd:
name: quay-app.service
Expand Down

This file was deleted.

0 comments on commit fd850a5

Please sign in to comment.