From c2a2a766c3b3f136a95f52b3e1f35aa1ef61e88f Mon Sep 17 00:00:00 2001 From: jamesalford Date: Sat, 31 Mar 2018 08:30:06 +0100 Subject: [PATCH 1/2] fixing deprecation warnings for include --- tasks/main.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 77327f71..e8927cc4 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,27 +1,27 @@ --- -- include: check_vars.yml +- import_tasks: check_vars.yml -- include: download.yml +- import_tasks: download.yml tags: - download -- include: dependencies.yml +- import_tasks: dependencies.yml tags: - install -- include: install.yml +- import_tasks: install.yml 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 From 25587123e0dfb8fc266df0db3209563116aec8ba Mon Sep 17 00:00:00 2001 From: jamesalford Date: Tue, 3 Apr 2018 10:34:13 +0100 Subject: [PATCH 2/2] Adjusting module to work in 2.4 with include_tasks and import_tasks to fix deprecation warnings --- meta/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/main.yml b/meta/main.yml index d3884b56..e0b9674e 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -2,7 +2,7 @@ galaxy_info: author: David Wittman description: Highly configurable role to install Redis and Redis Sentinel from source - min_ansible_version: 1.9.0 + min_ansible_version: 2.4 license: MIT platforms: - name: Ubuntu