From 90b780849e08a2535c94c2217f493683f0343e6e Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen@paragon-es.de>
Date: Wed, 8 Nov 2017 12:02:46 +0100
Subject: [PATCH] ansible-playbooks/general#72 All includes are now
 include_tasks and they always have a tag associated

---
 tasks/main.yml | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/tasks/main.yml b/tasks/main.yml
index 38e588b..18c388f 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -3,7 +3,7 @@
 
 - name: "Zabbix Agent Role"
   set_fact: role_zabbix_agent_started=true
-  tags: always
+  tags: 'always'
 
 - block:
 
@@ -12,13 +12,15 @@
       path: '/etc/init.d/zabbix-agent'
     register: zabbix_available
 
-  - import_tasks: install.yml
+  - include_tasks: install.yml
     when: not zabbix_available.stat.exists
+    tags: 'always'
 
-  - import_tasks: config.yml
+  - include_tasks: config.yml
+    tags: 'always'
 
   - name: 'Remember that this role had been run'
     set_fact: role_zabbix_agent_completed=true
-    tags: always
+    tags: 'always'
 
   when: '"zabbix_agent" not in excluded_roles and role_zabbix_agent_completed is not defined'
-- 
GitLab