ansible lint fixes -- hopefully all are fixed now

This commit is contained in:
brunobenchimol 2021-11-15 20:36:54 -03:00
parent e7464e62aa
commit 2548d4f32b
6 changed files with 11 additions and 11 deletions

View File

@ -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'

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -39,5 +39,5 @@
loop_var: cert_item
- import_tasks: renew-cron.yml
when:
when:
- certbot_auto_renew

View File

@ -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