mirror of
https://github.com/geerlingguy/ansible-role-certbot.git
synced 2026-09-11 16:21:15 +02:00
ansible lint fixes -- hopefully all are fixed now
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
+1
-1
@@ -39,5 +39,5 @@
|
||||
loop_var: cert_item
|
||||
|
||||
- import_tasks: renew-cron.yml
|
||||
when:
|
||||
when:
|
||||
- certbot_auto_renew
|
||||
|
||||
Reference in New Issue
Block a user