lint fixes

This commit is contained in:
AnsibleGuy 2023-03-25 22:06:50 +01:00
parent b29a18084f
commit 1be153902c
No known key found for this signature in database
GPG Key ID: 52984C069F5AD3CD
2 changed files with 4 additions and 0 deletions

View File

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

View File

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