summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorAndrew Butcher <abutcher@redhat.com>2016-09-29 11:13:37 -0400
committerAndrew Butcher <abutcher@redhat.com>2016-09-29 11:13:37 -0400
commitb1c6bd781f833efe3532fe574b41b57bce9a72bc (patch)
tree8fa77424a08475fffb0e6eeaef9457fcf419d8d5 /roles
parentbe3a68ae520d518daef2e35553c28cd150d3c344 (diff)
downloadopenshift-b1c6bd781f833efe3532fe574b41b57bce9a72bc.tar.gz
openshift-b1c6bd781f833efe3532fe574b41b57bce9a72bc.tar.bz2
openshift-b1c6bd781f833efe3532fe574b41b57bce9a72bc.tar.xz
openshift-b1c6bd781f833efe3532fe574b41b57bce9a72bc.zip
Set named certificate destinations as basenames of provided paths.
Diffstat (limited to 'roles')
-rw-r--r--roles/openshift_named_certificates/tasks/main.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/roles/openshift_named_certificates/tasks/main.yml b/roles/openshift_named_certificates/tasks/main.yml
index 7f20cf401..1bcf9ef67 100644
--- a/roles/openshift_named_certificates/tasks/main.yml
+++ b/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') }}"