mirror of
https://github.com/geerlingguy/ansible-role-certbot.git
synced 2025-04-19 17:01:37 +02:00
ansible lint fixes -- hopefully all are fixed now
This commit is contained in:
parent
e7464e62aa
commit
2548d4f32b
@ -59,8 +59,8 @@ certbot_dns_create_command: >-
|
||||
|
||||
certbot_create_dns_deploy_hook_services:
|
||||
- haproxy
|
||||
#- nginx
|
||||
#- apache
|
||||
# - nginx
|
||||
# - apache
|
||||
|
||||
certbot_create_standalone_stop_services:
|
||||
- nginx
|
||||
@ -69,7 +69,7 @@ certbot_create_standalone_stop_services:
|
||||
|
||||
certbot_delete_command: >-
|
||||
{{ certbot_script }} delete --noninteractive
|
||||
--cert-name {{ cert_item.domains | first | replace('*.', '') }}
|
||||
--cert-name {{ cert_item.domains | first | replace('*.', '') }}
|
||||
|
||||
# Available options: 'package', 'snap', 'source'.
|
||||
certbot_install_method: 'package'
|
||||
|
@ -27,7 +27,7 @@
|
||||
- name: "Create DNS RFC {{ certbot_dns_plugin }} Credentials File."
|
||||
template:
|
||||
src: dns_plugin_credentials.j2
|
||||
dest: "{{certbot_dns_credentials_file}}"
|
||||
dest: "{{ certbot_dns_credentials_file }}"
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0600
|
||||
@ -45,7 +45,7 @@
|
||||
when:
|
||||
- certbot_dns_plugin != 'rfc2136'
|
||||
- certbot_dns_credentials_custom_file is defined
|
||||
|
||||
|
||||
- name: Generate new certificate if one doesn't exist.
|
||||
command: "{{ certbot_dns_create_command }}"
|
||||
when: not letsencrypt_cert.stat.exists
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
- name: Delete Certificate
|
||||
command: "{{ certbot_delete_command }}"
|
||||
when:
|
||||
when:
|
||||
- letsencrypt_cert.stat.exists
|
||||
- certbot_delete_certificate|bool
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
file:
|
||||
path: /etc/letsencrypt/live/{{ cert_item.domains | first | replace('*.', '') }}
|
||||
state: absent
|
||||
when:
|
||||
when:
|
||||
- letsencrypt_cert.stat.exists
|
||||
- certbot_delete_certificate|bool
|
||||
|
||||
|
@ -37,12 +37,12 @@
|
||||
|
||||
- name: Make sure certbot Trust Plugins With Root is set.
|
||||
command: snap set certbot trust-plugin-with-root=ok
|
||||
when:
|
||||
when:
|
||||
- certbot_dns_plugin is defined
|
||||
|
||||
- name: Install DNS Plugin - {{ certbot_dns_plugin }}.
|
||||
snap:
|
||||
name: "certbot-dns-{{certbot_dns_plugin}}"
|
||||
name: "certbot-dns-{{ certbot_dns_plugin }}"
|
||||
classic: true
|
||||
when: certbot_dns_plugin is defined
|
||||
|
||||
|
@ -39,5 +39,5 @@
|
||||
loop_var: cert_item
|
||||
|
||||
- import_tasks: renew-cron.yml
|
||||
when:
|
||||
when:
|
||||
- certbot_auto_renew
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
certbot_dns_credentials_file: "/etc/letsencrypt/dns-{{certbot_dns_plugin}}-credentials"
|
||||
certbot_dns_credentials_file: "/etc/letsencrypt/dns-{{ certbot_dns_plugin }}-credentials"
|
||||
certbot_supported_dns_plugins:
|
||||
- rfc2136
|
||||
- cloudflare
|
||||
|
Loading…
x
Reference in New Issue
Block a user