Add OneLab Helm chart, Argo CD Application, and GitOps values for k3s
Made-with: Cursor
This commit is contained in:
12
app/playbooks/tasks/pre-update.yml
Normal file
12
app/playbooks/tasks/pre-update.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
- name: Checking current database
|
||||
shell: >
|
||||
cat {{ onelab_path }}/docker-compose.yml | egrep 'image: postgres' | awk '{ print $2 }'
|
||||
register: onelab_db
|
||||
become: true
|
||||
|
||||
#
|
||||
# Postgres pre-migration
|
||||
#
|
||||
- include_tasks: "{{ installer_path }}/app/playbooks/tasks/pre-db-migration.yml"
|
||||
when: onelab_db.stdout != 'hub.andrewalliance.com/releases/postgres:17.8'
|
||||
Reference in New Issue
Block a user