mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-04 07:37:20 +02:00
Update to 2023-12-14 15:00
This commit is contained in:
@@ -118,7 +118,7 @@
|
||||
|
||||
- name: List database upgrade scripts
|
||||
shell: >
|
||||
ls /opt/squash_tm/app/database-scripts/{{ (squashtm_db_engine == 'postgres') | ternary('postgresql', 'mysql') }}-* |
|
||||
ls /opt/squash_tm/app/database-scripts/{{ (squashtm_db_engine == 'postgres') | ternary('postgresql', 'mariadb') }}-* |
|
||||
grep 'upgrade-to' |
|
||||
perl -pe 's/.*upgrade\-to\-(\d+(\.\d+)+).*/$1/' |
|
||||
sort --version-sort
|
||||
@@ -130,7 +130,7 @@
|
||||
mysql_db:
|
||||
db: "{{ squashtm_db_name }}"
|
||||
state: import
|
||||
target: "{{ squashtm_root_dir }}/app/database-scripts/{{ (squashtm_db_engine == 'postgres') | ternary('postgresql', 'mysql') }}-upgrade-to-{{ item }}.sql"
|
||||
target: "{{ squashtm_root_dir }}/app/database-scripts/{{ (squashtm_db_engine == 'postgres') | ternary('postgresql', 'mariadb') }}-upgrade-to-{{ item }}.sql"
|
||||
login_host: "{{ squashtm_db_server }}"
|
||||
login_port: "{{ squashtm_db_port }}"
|
||||
login_user: "{{ squashtm_db_user }}"
|
||||
|
Reference in New Issue
Block a user