Selaa lähdekoodia

Set named certificate destinations as basenames of provided paths.

Andrew Butcher 8 vuotta sitten
vanhempi
commit
b1c6bd781f
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  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') }}"