mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2025-07-01 13:47:51 +02:00
Fix CONDITIONAL_BARE_VARS deprecation warning in ansible 2.8
This commit is contained in:
@ -5,7 +5,7 @@
|
||||
- name: Fail if Postgres not enabled
|
||||
fail:
|
||||
msg: "Postgres via the matrix-postgres role is not enabled (`matrix_postgres_enabled`). Cannot import."
|
||||
when: "not matrix_postgres_enabled"
|
||||
when: "not matrix_postgres_enabled|bool"
|
||||
|
||||
- name: Fail if playbook called incorrectly
|
||||
fail:
|
||||
@ -20,7 +20,7 @@
|
||||
- name: Fail if provided Postgres dump file doesn't exists
|
||||
fail:
|
||||
msg: "File cannot be found on the server at {{ server_path_postgres_dump }}"
|
||||
when: not result_server_path_postgres_dump_stat.stat.exists
|
||||
when: "not result_server_path_postgres_dump_stat.stat.exists"
|
||||
|
||||
|
||||
# Defaults
|
||||
@ -54,7 +54,7 @@
|
||||
- name: Abort, if no existing Postgres version detected
|
||||
fail:
|
||||
msg: "Could not find existing Postgres installation"
|
||||
when: "not matrix_postgres_detected_existing"
|
||||
when: "not matrix_postgres_detected_existing|bool"
|
||||
|
||||
- name: Generate Postgres database import command
|
||||
set_fact:
|
||||
|
Reference in New Issue
Block a user