From f3bdbca1f13a1ca10fd1e9e25aef0f4a2299f26a Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen@paragon-es.de>
Date: Sun, 25 Mar 2018 15:55:51 +0200
Subject: [PATCH] ansible-playbooks/general#72 Always use import_tasks or
 include_tasks instead of just include

---
 tasks/main.yml | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/tasks/main.yml b/tasks/main.yml
index f152ff8..b9000f4 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -7,27 +7,27 @@
 
 - block:
 
-  - include: prepare.yml
+  - import_tasks: prepare.yml
 
-  - include: install.yml
+  - import_tasks: install.yml
 
-  - include: configure.yml
+  - import_tasks: configure.yml
 
-  - include: apache.yml
+  - import_tasks: apache.yml
     when: groups['webserver'] is defined and inventory_hostname in groups['webserver']
 
-  - include: elasticsearch.yml
+  - import_tasks: elasticsearch.yml
     when: groups['logserver'] is defined and inventory_hostname in groups['logserver']
 
-  - include: haproxy.yml
+  - import_tasks: haproxy.yml
     when: groups['proxyserver'] is defined and inventory_hostname in groups['proxyserver']
 
-  - include: mysql.yml
+  - import_tasks: mysql.yml
     when: groups['dbserver-mysql'] is defined and inventory_hostname in groups['dbserver-mysql']
 
-  - include: silent.yml
+  - import_tasks: silent.yml
 
-  - include: varnish.yml
+  - import_tasks: varnish.yml
     when: groups['varnishserver'] is defined and inventory_hostname in groups['varnishserver']
 
   when: '"netdata" not in excluded_roles'
-- 
GitLab