More futzing with cert selection.
This commit is contained in:
parent
564cd2ce29
commit
bf91f58612
1 changed files with 4 additions and 4 deletions
|
@ -21,12 +21,12 @@
|
|||
- name: Copy {{name}}.cert
|
||||
copy: >
|
||||
src={{item}}
|
||||
dest=/etc/pki/tls/certs/{{item}}
|
||||
dest=/etc/pki/tls/certs/{{item | basename}}
|
||||
owner=root
|
||||
group=root
|
||||
mode=0644
|
||||
with_first_found:
|
||||
- "{{cert}}"
|
||||
- "{{private}}/files/httpd/{{cert}}.cert"
|
||||
- "{{private}}/files/httpd/{{name}}.cert"
|
||||
notify:
|
||||
- restart httpd
|
||||
|
@ -37,12 +37,12 @@
|
|||
- name: Copy {{name}}.key
|
||||
copy: >
|
||||
src={{item}}
|
||||
dest=/etc/pki/tls/private/{{item}}
|
||||
dest=/etc/pki/tls/private/{{item | basename}}
|
||||
owner=root
|
||||
group=root
|
||||
mode=0600
|
||||
with_first_found:
|
||||
- "{{key}}"
|
||||
- "{{private}}/files/httpd/{{key}}.key"
|
||||
- "{{private}}/files/httpd/{{name}}.key"
|
||||
notify:
|
||||
- restart httpd
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue