fix boolean checks to use 'bool' filter
This commit is contained in:
parent
2c96a40f02
commit
75493340f5
|
|
@ -3,9 +3,7 @@
|
|||
- name: "Certificates | Debian | LetsEncrypt Certbot | {{ le_name }} | Showing debug info"
|
||||
ansible.builtin.debug:
|
||||
var: le_cert
|
||||
when:
|
||||
- debug is defined
|
||||
- debug
|
||||
when: debug | bool
|
||||
|
||||
# ToDo: path validation
|
||||
- name: "Certificates | Debian | LetsEncrypt Certbot | {{ le_name }} | Checking config"
|
||||
|
|
|
|||
|
|
@ -26,9 +26,7 @@
|
|||
- name: Certificates | Debian | LetsEncrypt Certbot | Existing certificates
|
||||
ansible.builtin.debug:
|
||||
var: existing_certs_raw.stdout
|
||||
when:
|
||||
- debug is defined
|
||||
- debug
|
||||
when: debug | bool
|
||||
|
||||
- name: Certificates | Debian | LetsEncrypt Certbot | Adding certificates
|
||||
ansible.builtin.include_tasks: cert.yml
|
||||
|
|
|
|||
|
|
@ -10,16 +10,12 @@
|
|||
- name: Certificates | Showing debug info - user provided config
|
||||
ansible.builtin.debug:
|
||||
var: certs
|
||||
when:
|
||||
- debug is defined
|
||||
- debug
|
||||
when: debug | bool
|
||||
|
||||
- name: Certificates | Showing debug info - running config
|
||||
ansible.builtin.debug:
|
||||
var: CERT_CONFIG
|
||||
when:
|
||||
- debug is defined
|
||||
- debug
|
||||
when: debug | bool
|
||||
|
||||
- name: Certificates | Checking for invalid domains/hostnames
|
||||
ansible.builtin.pause:
|
||||
|
|
|
|||
Loading…
Reference in New Issue