From 245953523a3c55bc7d9ac899664afd547145f92a 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/install.yml | 3 +--
 tasks/main.yml    | 4 ++--
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/tasks/install.yml b/tasks/install.yml
index 3a5b58d..d61c4cf 100644
--- a/tasks/install.yml
+++ b/tasks/install.yml
@@ -24,5 +24,4 @@
   when: discourse_repository.changed
 
 - name: "Configure Apache"
-  include_tasks: apache.yml
-  tags: 'always'
+  import_tasks: apache.yml
diff --git a/tasks/main.yml b/tasks/main.yml
index 261ce21..79ba2bd 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -7,7 +7,7 @@
 
 - block:
   - name: "Install Certs"
-    include: '../../letsencrypt/tasks/cert.yml'
+    include_tasks: '../../letsencrypt/tasks/cert.yml'
     with_items:
       - domain: '{{ discourse_domain }}'
     loop_control:
@@ -19,6 +19,6 @@
 - block:
 
   - name: "Install Discourse"
-    include: install.yml
+    import_tasks: install.yml
 
   when: '"discourse" not in excluded_roles'
-- 
GitLab