]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Fix template reference for ganesha.conf
authorAndy McCrae <andy.mccrae@gmail.com>
Mon, 19 Feb 2018 16:57:18 +0000 (16:57 +0000)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 17 May 2018 13:23:52 +0000 (15:23 +0200)
We can simply reference the template name since it exists within the
role that we are calling. We don't need to check the ANSIBLE_ROLE_PATH
or playbooks directory for the file.

roles/ceph-nfs/tasks/start_nfs.yml

index bfd3266e46114b3e1282c881df2308378a4467f5..775480d33906aa08acf10de64d28333f67ae5b74 100644 (file)
@@ -25,7 +25,7 @@
 - name: generate ganesha configuration file
   action: config_template
   args:
-    src: "{{ lookup('env', 'ANSIBLE_ROLES_PATH') | default (playbook_dir + '/roles', true) }}/ceph-nfs/templates/ganesha.conf.j2"
+    src: "ganesha.conf.j2"
     dest: /etc/ganesha/ganesha.conf
     owner: "root"
     group: "root"