mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
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:
@@ -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}}
|
||||
Reference in New Issue
Block a user