lint fixes
This commit is contained in:
parent
b29a18084f
commit
1be153902c
|
|
@ -58,6 +58,7 @@
|
|||
{% for domain in le_cert.domains %}{% if domain | valid_hostname %}--domain {{ domain }} {% endif %}{% endfor %}
|
||||
{% if le_cert.email is not none %}--email {{ le_cert.email }} {% else %}--email {{ CERT_CONFIG.cert.email }} {% endif %}"
|
||||
when: le_changed
|
||||
changed_when: false
|
||||
|
||||
- name: "Certificates | Debian | LetsEncrypt Certbot | {{ le_name }} | Adding dummy certs"
|
||||
ansible.builtin.include_tasks: test.yml
|
||||
|
|
|
|||
|
|
@ -48,6 +48,7 @@
|
|||
# todo: task gets stuck
|
||||
- name: Certificates | Debian | LetsEncrypt Certbot | Revoking certificates
|
||||
ansible.builtin.command: "certbot revoke --cert-name {{ le_name }}{% if debug or testing %} --staging{% endif %}"
|
||||
changed_when: false
|
||||
when:
|
||||
- le_cert.state != 'present'
|
||||
- existing_certs_raw.stdout.find(le_name) != -1
|
||||
|
|
@ -60,6 +61,7 @@
|
|||
|
||||
- name: Certificates | Debian | LetsEncrypt Certbot | Deleting certificates
|
||||
ansible.builtin.command: "certbot delete --cert-name {{ le_name }}{% if debug or testing %} --staging{% endif %}"
|
||||
changed_when: false
|
||||
when:
|
||||
- le_cert.state != 'present'
|
||||
- existing_certs_raw.stdout.find(le_name) != -1
|
||||
|
|
@ -100,4 +102,5 @@
|
|||
- name: Certificates | Debian | LetsEncrypt Certbot | Running renewal
|
||||
ansible.builtin.command: "certbot renew --force-renewal{% if debug or testing %} --staging{% endif %}"
|
||||
when: CERT_CONFIG.letsencrypt.renew
|
||||
changed_when: false
|
||||
ignore_errors: true
|
||||
|
|
|
|||
Loading…
Reference in New Issue