From 51b0dffa85c0d971ed5d9826e47d519346a0e918 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuli=20Sepp=C3=A4nen?= Date: Sun, 7 Jan 2024 19:41:26 +0200 Subject: [PATCH] Replace deprecated "include" with "include_tasks" (#291) The existing code does not work on any semi-recent Ansible versions. URL: https://github.com/DavidWittman/ansible-redis/issues/281 URL: https://github.com/DavidWittman/ansible-redis/pull/178 --- tasks/main.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 11f3c34..5e0324b 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,35 +1,35 @@ --- -- include: check_vars.yml +- include_tasks: check_vars.yml -- include: download.yml +- include_tasks: download.yml when: redis_install_from_source tags: - download -- include: dependencies.yml +- include_tasks: dependencies.yml when: redis_install_from_source tags: - install -- include: install.yml +- include_tasks: install.yml when: redis_install_from_source tags: - install -- include: install_from_repo.yml +- include_tasks: install_from_repo.yml when: not redis_install_from_source tags: - install -- include: server.yml +- include_tasks: server.yml when: not redis_sentinel tags: - config -- include: sentinel.yml +- include_tasks: sentinel.yml when: redis_sentinel tags: - config -- include: local_facts.yml +- include_tasks: local_facts.yml when: redis_local_facts|bool