瀏覽代碼

Set named certificate destinations as basenames of provided paths.

Andrew Butcher 8 年之前
父節點
當前提交
b1c6bd781f
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      roles/openshift_named_certificates/tasks/main.yml

+ 3 - 3
roles/openshift_named_certificates/tasks/main.yml

@@ -28,19 +28,19 @@
 - name: Land named certificates
   copy:
     src: "{{ item.certfile }}"
-    dest: "{{ named_certs_dir }}"
+    dest: "{{ named_certs_dir }}/{{ item.certfile | basename }}"
   with_items: "{{ named_certificates }}"
 
 - name: Land named certificate keys
   copy:
     src: "{{ item.keyfile }}"
-    dest: "{{ named_certs_dir }}"
+    dest: "{{ named_certs_dir }}/{{ item.keyfile | basename }}"
     mode: 0600
   with_items: "{{ named_certificates }}"
 
 - name: Land named CA certificates
   copy:
     src: "{{ item }}"
-    dest: "{{ named_certs_dir }}"
+    dest: "{{ named_certs_dir }}/{{ item | basename }}"
     mode: 0600
   with_items: "{{ named_certificates | oo_collect('cafile') }}"