mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-11-14 19:29:45 +00:00
e5e5ee4f72
At some point, we can drop v9.6 support and use a single variable that holds this value. Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/2191
30 lines
1.1 KiB
YAML
30 lines
1.1 KiB
YAML
---
|
|
|
|
- name: Fail if required Postgres settings not defined
|
|
ansible.builtin.fail:
|
|
msg: >-
|
|
You need to define a required configuration setting (`{{ item }}`).
|
|
when: "vars[item] == ''"
|
|
with_items:
|
|
- "matrix_postgres_backup_connection_hostname"
|
|
- "matrix_postgres_backup_connection_username"
|
|
- "matrix_postgres_backup_connection_password"
|
|
- "matrix_postgres_backup_connection_port"
|
|
- "matrix_postgres_backup_schedule"
|
|
- "matrix_postgres_backup_keep_days"
|
|
- "matrix_postgres_backup_keep_weeks"
|
|
- "matrix_postgres_backup_keep_months"
|
|
- "matrix_postgres_backup_path"
|
|
- "matrix_postgres_backup_databases"
|
|
|
|
- name: (Deprecation) Catch and report renamed settings
|
|
ansible.builtin.fail:
|
|
msg: >-
|
|
Your configuration contains a variable, which now has a different name.
|
|
Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
|
|
when: "item.old in vars"
|
|
with_items:
|
|
- {'old': 'matrix_postgres_backup_docker_image_suffix', 'new': 'matrix_postgres_backup_docker_image_distro'}
|
|
|
|
|