Browse Source

Simplify the template paths for the storage setup

Because the templates are present in a role, the `template` module is
able to look them up directly, without having to use `{{ role_path
}}/templates`.
Tomas Sedovic 7 years ago
parent
commit
4fd33e96ee
1 changed files with 3 additions and 3 deletions
  1. 3 3
      roles/openshift_openstack/tasks/container-storage-setup.yml

+ 3 - 3
roles/openshift_openstack/tasks/container-storage-setup.yml

@@ -2,7 +2,7 @@
 - block:
     - name: create the docker-storage config file
       template:
-        src: "{{ role_path }}/templates/docker-storage-setup-overlayfs.j2"
+        src: docker-storage-setup-overlayfs.j2
         dest: /etc/sysconfig/docker-storage-setup
         owner: root
         group: root
@@ -14,7 +14,7 @@
 - block:
     - name: create the docker-storage-setup config file
       template:
-        src: "{{ role_path }}/templates/docker-storage-setup-dm.j2"
+        src: docker-storage-setup-dm.j2
         dest: /etc/sysconfig/docker-storage-setup
         owner: root
         group: root
@@ -26,7 +26,7 @@
 - block:
     - name: create the docker-storage-setup config file for CentOS
       template:
-        src: "{{ role_path }}/templates/docker-storage-setup-dm.j2"
+        src: docker-storage-setup-dm.j2
         dest: /etc/sysconfig/docker-storage-setup
         owner: root
         group: root