3
0
mirror of https://github.com/spantaleev/matrix-docker-ansible-deploy.git synced 2025-10-26 10:03:25 +00:00

Replace include usage with include_tasks and import_tasks

The long-deprecated (since Ansible 2.4) use of include is
no more.
This commit is contained in:
Slavi Pantaleev
2019-01-03 15:24:08 +02:00
parent 76506f34e0
commit 99af4543ac
12 changed files with 48 additions and 48 deletions

View File

@@ -35,7 +35,7 @@
msg: "Detected that a left-over {{ postgres_auto_upgrade_backup_data_path }} exists. You should rename it to {{ matrix_postgres_data_path }} if the previous upgrade went wrong, or delete it if it went well."
when: "result_auto_upgrade_path.stat.exists"
- include: tasks/util/detect_existing_postgres_version.yml
- import_tasks: tasks/util/detect_existing_postgres_version.yml
- name: Abort, if no existing Postgres version detected
fail: msg="Could not find existing Postgres installation"
@@ -77,7 +77,7 @@
- debug:
msg: "NOTE: Your Postgres data directory has been moved from `{{ matrix_postgres_data_path }}` to `{{ postgres_auto_upgrade_backup_data_path }}`. In the event of failure, you can move it back and run the playbook with --tags=setup-postgres to restore operation."
- include: tasks/setup/setup_postgres.yml
- import_tasks: tasks/setup/setup_postgres.yml
- name: Ensure matrix-postgres autoruns and is restarted
service: name=matrix-postgres enabled=yes state=restarted daemon_reload=yes