Skip to content
Snippets Groups Projects

Update tasks/nginx.yml

Closed barslmn requested to merge barslmn/ansible:barslmn-master-patch-60487 into master
1 file
+ 1
6
Compare changes
  • Side-by-side
  • Inline
+ 1
6
@@ -22,15 +22,10 @@
@@ -22,15 +22,10 @@
dest: /usr/local/bin/certbot-auto
dest: /usr/local/bin/certbot-auto
mode: 0750
mode: 0750
- name: "Install certbot using certbot-auto"
when: funkwhale_nginx_managed and funkwhale_letsencrypt_enabled
become: true
command: certbot-auto --install-only -n -v
- name: Create letsencrypt certificate
- name: Create letsencrypt certificate
when: funkwhale_nginx_managed and funkwhale_letsencrypt_enabled and not funkwhale_letsencrypt_skip_cert
when: funkwhale_nginx_managed and funkwhale_letsencrypt_enabled and not funkwhale_letsencrypt_skip_cert
become: true
become: true
command: certbot-auto -v -n certonly --nginx -m {{ funkwhale_letsencrypt_email }} --agree-tos -d {{ funkwhale_hostname }} {{ funkwhale_letsencrypt_certbot_flags }}
command: certbot -v -n certonly --nginx -m {{ funkwhale_letsencrypt_email }} --agree-tos -d {{ funkwhale_hostname }} {{ funkwhale_letsencrypt_certbot_flags }}
args:
args:
creates: /etc/letsencrypt/live/{{ funkwhale_hostname }}
creates: /etc/letsencrypt/live/{{ funkwhale_hostname }}
Loading