From a98295f19de87c38ef3accdb7a282c3e8d92dbbc Mon Sep 17 00:00:00 2001
From: Eduardo Gonzalez <dabarren@gmail.com>
Date: Fri, 26 Jan 2018 08:21:49 +0100
Subject: [PATCH] Fix odl custom config

Copy custom config files to remote hosts.
with_first_found items are not used.

Change-Id: I78faaded2c2b738454e6c6d971fd28994c753fb8
Closes-Bug: #1745559
---
 ansible/roles/opendaylight/tasks/config.yml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ansible/roles/opendaylight/tasks/config.yml b/ansible/roles/opendaylight/tasks/config.yml
index 06e4957337..903c3b5ff5 100644
--- a/ansible/roles/opendaylight/tasks/config.yml
+++ b/ansible/roles/opendaylight/tasks/config.yml
@@ -126,7 +126,7 @@
 
 - name: Copying over akka.conf
   template:
-    src: "{{ role_path }}/templates/akka.conf.j2"
+    src: "{{ item }}"
     dest: "{{ node_config_directory }}/opendaylight/akka.conf"
   with_first_found:
     - "{{ node_custom_config }}/opendaylight/{{ inventory_hostname }}/akka.conf"
@@ -138,7 +138,7 @@
 
 - name: Copying over modules.conf
   template:
-    src: "{{ role_path }}/templates/modules.conf.j2"
+    src: "{{ item }}"
     dest: "{{ node_config_directory }}/opendaylight/modules.conf"
   with_first_found:
     - "{{ node_custom_config }}/opendaylight/{{ inventory_hostname }}/modules.conf"
@@ -150,7 +150,7 @@
 
 - name: Copying over module-shards.conf
   template:
-    src: "{{ role_path }}/templates/module-shards.conf.j2"
+    src: "{{ item }}"
     dest: "{{ node_config_directory }}/opendaylight/module-shards.conf"
   with_first_found:
     - "{{ node_custom_config }}/opendaylight/{{ inventory_hostname }}/module-shards.conf"