소스 검색

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 년 전
부모
커밋
4fd33e96ee
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  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