letsencrypt: move the combined cert to a template
content is "undefined" if using variables and you can't put a newline in it, so just move this to a simple template. Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
925760331c
commit
abf5e66531
2 changed files with 4 additions and 3 deletions
|
@ -137,10 +137,9 @@
|
|||
when: certbot_addhost is defined
|
||||
|
||||
- name: Install certificate bundle
|
||||
copy: >
|
||||
template: >
|
||||
dest=/etc/pki/tls/certs/{{site_name}}.bundle.cert
|
||||
content="{{certbot_certificate.stdout}
|
||||
certbot_chain.stdout}}"
|
||||
src=combined.j2
|
||||
owner=root
|
||||
group=root
|
||||
mode=0644
|
||||
|
|
2
roles/letsencrypt/templates/combined.j2
Normal file
2
roles/letsencrypt/templates/combined.j2
Normal file
|
@ -0,0 +1,2 @@
|
|||
{{certbot_certificate.stdout}}
|
||||
{{certbot_chain.stdout}}
|
Loading…
Add table
Add a link
Reference in a new issue