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