From feccf7d8130713783515c3876d4a269d220e8ab3 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Thu, 17 Nov 2016 22:19:53 +0200
Subject: [PATCH] - Correct wildcard of templates inside the role.

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

diff --git a/tasks/main.yml b/tasks/main.yml
index 5c09bb9..229bb35 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -50,7 +50,7 @@
 
 - name: Copy configuration templates
   with_fileglob:
-      - templates/nsd/conf.d/*
+      - '{{ role_path }}/templates/nsd/conf.d/*'
       - '{{ playbook_dir }}/templates/nsd/conf.d/*'
   template:
       src: '{{ item }}'
@@ -63,7 +63,7 @@
 
 - name: Copy zones
   with_fileglob:
-      - templates/nsd/zones/*
+      - '{{ role_path }}/templates/nsd/zones/*'
       - '{{ playbook_dir }}/templates/nsd/zones/*'
   template:
       src: '{{ item }}'
-- 
GitLab