Skip to content

Commit

Permalink
Merge pull request openshift#2528 from abutcher/named-cert-symlinks
Browse files Browse the repository at this point in the history
Set named certificate destinations as basenames of provided paths.
  • Loading branch information
sdodson authored Sep 29, 2016
2 parents be3a68a + b1c6bd7 commit 762df1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions roles/openshift_named_certificates/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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') }}"

0 comments on commit 762df1e

Please sign in to comment.