mirror of
https://github.com/geerlingguy/ansible-role-certbot.git
synced 2025-04-19 17:01:37 +02:00
Fix linting issues
This commit is contained in:
parent
5f476f829c
commit
ca46eab49f
@ -24,11 +24,12 @@ certbot_certs: []
|
||||
# - example3.com
|
||||
|
||||
certbot_create_command: >-
|
||||
{{ certbot_script }} certonly --standalone --noninteractive --agree-tos
|
||||
--{{ certbot_create_method }} {{ `-w ` if certbot_create_method == 'webroot' else '' }}
|
||||
{{ certbot_script }} certonly --{{ certbot_create_method }}
|
||||
{{ `-w ` if certbot_create_method == 'webroot' else '' }}
|
||||
{{ cert_item.webroot if certbot_create_method == 'webroot' else '' }}
|
||||
{{ '--hsts' if certbot_hsts else '' }}
|
||||
{{ '--test-cert' if certbot_testmode else '' }}
|
||||
--noninteractive --agree-tos
|
||||
--email {{ cert_item.email | default(certbot_admin_email) }}
|
||||
-d {{ cert_item.domains | join(',') }}
|
||||
{{ '--pre-hook /etc/letsencrypt/renewal-hooks/pre/stop_services'
|
||||
@ -55,4 +56,4 @@ certbot_keep_updated: true
|
||||
certbot_dir: /opt/certbot
|
||||
|
||||
# Restart this service after successfull certificate creation:
|
||||
certbot_deployhook: "service {{certbot_create_standalone_stop_services }} restart"
|
||||
certbot_deployhook: "service {{certbot_create_standalone_stop_services }} restart"
|
||||
|
@ -9,10 +9,9 @@
|
||||
content: "{{ certbot_deployhook }}"
|
||||
dest: /etc/letsencrypt/renewal-hooks/deploy/ansible.sh
|
||||
mode: u+rwx
|
||||
run_once: yes
|
||||
run_once: true
|
||||
when: certbot_deployhook is defined
|
||||
|
||||
- name: Generate new certificate if one doesn't exist.
|
||||
shell: "{{ certbot_create_command }}"
|
||||
when: not letsencrypt_cert.stat.exists
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user