mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-03 21:22:29 +08:00
Hubs: fix letsencrypt setup
This commit is contained in:
@@ -58,7 +58,7 @@
|
||||
hubs_secret_key: demotestinghubsmachine
|
||||
hubs_db_type: sqlite
|
||||
hubs_dev_mode: false
|
||||
hubs_ssl_cert: /etc/letsencrypt/live/{{ ansible_fqdn }}/cert.pem
|
||||
hubs_ssl_cert: /etc/letsencrypt/live/{{ ansible_fqdn }}/fullchain.pem
|
||||
hubs_ssl_key: /etc/letsencrypt/live/{{ ansible_fqdn }}/privkey.pem
|
||||
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
dnf: name=python2-certbot-nginx state=present
|
||||
|
||||
- name: get the letencrypt cert
|
||||
command: certbot certonly -n --nginx -d {{ ansible_fqdn }}
|
||||
command: certbot certonly -n --nginx -d {{ ansible_fqdn }} --agree-tos --email admin@fedoraproject.org
|
||||
args:
|
||||
creates: /etc/letsencrypt/live/{{ ansible_fqdn }}/privkey.pem
|
||||
notify:
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
ssl on;
|
||||
ssl_certificate {{ hubs_ssl_cert }};
|
||||
ssl_certificate_key {{ hubs_ssl_key }};
|
||||
include /etc/letsencrypt/options-ssl-nginx.conf;
|
||||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
|
||||
|
||||
Reference in New Issue
Block a user