mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-23 04:41:19 +00:00
Fix --cert-name for certbot. (#1631)
This commit is contained in:
parent
12d50e42b4
commit
1cdc5d662c
2 changed files with 4 additions and 4 deletions
|
@ -42,7 +42,7 @@
|
||||||
when: ansible_distribution == 'Ubuntu' and ansible_distribution_version is version('20.04', '>=')
|
when: ansible_distribution == 'Ubuntu' and ansible_distribution_version is version('20.04', '>=')
|
||||||
|
|
||||||
- name: request initial letsencrypt certificate
|
- name: request initial letsencrypt certificate
|
||||||
command: certbot certonly --nginx --agree-tos -d '{{ domain }}' -m '{{ letsencrypt_contact_email }}'
|
command: certbot certonly --nginx --agree-tos --cert-name '{{ domain }}' -d '{{ domain }}' -m '{{ letsencrypt_contact_email }}'
|
||||||
args:
|
args:
|
||||||
creates: '/etc/letsencrypt/live/{{domain}}/privkey.pem'
|
creates: '/etc/letsencrypt/live/{{domain}}/privkey.pem'
|
||||||
|
|
||||||
|
@ -116,4 +116,4 @@
|
||||||
special_time: daily
|
special_time: daily
|
||||||
name: certbot-renew-lemmy
|
name: certbot-renew-lemmy
|
||||||
user: root
|
user: root
|
||||||
job: "certbot certonly --nginx -d '{{ domain }}' --deploy-hook 'nginx -s reload'"
|
job: "certbot certonly --nginx --cert-name '{{ domain }}' -d '{{ domain }}' --deploy-hook 'nginx -s reload'"
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
- 'python-certbot-nginx'
|
- 'python-certbot-nginx'
|
||||||
|
|
||||||
- name: request initial letsencrypt certificate
|
- name: request initial letsencrypt certificate
|
||||||
command: certbot certonly --nginx --agree-tos -d '{{ domain }}' -m '{{ letsencrypt_contact_email }}'
|
command: certbot certonly --nginx --agree-tos --cert-name '{{ domain }}' -d '{{ domain }}' -m '{{ letsencrypt_contact_email }}'
|
||||||
args:
|
args:
|
||||||
creates: '/etc/letsencrypt/live/{{domain}}/privkey.pem'
|
creates: '/etc/letsencrypt/live/{{domain}}/privkey.pem'
|
||||||
|
|
||||||
|
@ -146,4 +146,4 @@
|
||||||
special_time: daily
|
special_time: daily
|
||||||
name: certbot-renew-lemmy
|
name: certbot-renew-lemmy
|
||||||
user: root
|
user: root
|
||||||
job: "certbot certonly --nginx -d '{{ domain }}' --deploy-hook 'nginx -s reload'"
|
job: "certbot certonly --nginx --cert-name '{{ domain }}' -d '{{ domain }}' --deploy-hook 'nginx -s reload'"
|
||||||
|
|
Loading…
Reference in a new issue