2021-02-11 16:18:25 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Fail if required Postgres settings not defined
|
2022-07-18 07:39:08 +00:00
|
|
|
ansible.builtin.fail:
|
2021-02-11 16:18:25 +00:00
|
|
|
msg: >-
|
|
|
|
You need to define a required configuration setting (`{{ item }}`).
|
|
|
|
when: "vars[item] == ''"
|
|
|
|
with_items:
|
2021-03-16 09:24:47 +00:00
|
|
|
- "matrix_postgres_backup_connection_hostname"
|
|
|
|
- "matrix_postgres_backup_connection_username"
|
|
|
|
- "matrix_postgres_backup_connection_password"
|
|
|
|
- "matrix_postgres_backup_connection_port"
|
2021-02-11 16:18:25 +00:00
|
|
|
- "matrix_postgres_backup_schedule"
|
|
|
|
- "matrix_postgres_backup_keep_days"
|
|
|
|
- "matrix_postgres_backup_keep_weeks"
|
|
|
|
- "matrix_postgres_backup_keep_months"
|
|
|
|
- "matrix_postgres_backup_path"
|
2021-03-16 10:40:16 +00:00
|
|
|
- "matrix_postgres_backup_databases"
|
2022-10-27 03:45:37 +00:00
|
|
|
|
|
|
|
- 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'}
|