More futzing with cert selection.

This commit is contained in:
Ralph Bean 2014-12-08 15:07:41 +00:00
parent 564cd2ce29
commit bf91f58612

View file

@ -21,12 +21,12 @@
- name: Copy {{name}}.cert - name: Copy {{name}}.cert
copy: > copy: >
src={{item}} src={{item}}
dest=/etc/pki/tls/certs/{{item}} dest=/etc/pki/tls/certs/{{item | basename}}
owner=root owner=root
group=root group=root
mode=0644 mode=0644
with_first_found: with_first_found:
- "{{cert}}" - "{{private}}/files/httpd/{{cert}}.cert"
- "{{private}}/files/httpd/{{name}}.cert" - "{{private}}/files/httpd/{{name}}.cert"
notify: notify:
- restart httpd - restart httpd
@ -37,12 +37,12 @@
- name: Copy {{name}}.key - name: Copy {{name}}.key
copy: > copy: >
src={{item}} src={{item}}
dest=/etc/pki/tls/private/{{item}} dest=/etc/pki/tls/private/{{item | basename}}
owner=root owner=root
group=root group=root
mode=0600 mode=0600
with_first_found: with_first_found:
- "{{key}}" - "{{private}}/files/httpd/{{key}}.key"
- "{{private}}/files/httpd/{{name}}.key" - "{{private}}/files/httpd/{{name}}.key"
notify: notify:
- restart httpd - restart httpd