mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-27 00:05:44 +02:00
Update to 2023-12-14 15:00
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
command: tar cf {{ squashtm_root_dir }}/archives/{{ squashtm_current_version }}.tar.zst --use-compress-program=zstd ./
|
||||
args:
|
||||
chdir: "{{ squashtm_root_dir }}/archives/{{ squashtm_current_version }}"
|
||||
warn: False
|
||||
environment:
|
||||
ZSTD_CLEVEL: 10
|
||||
ZSTD_NBTHREADS: 0
|
||||
|
@@ -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