fix boolean checks to use 'bool' filter

This commit is contained in:
AnsibleGuy 2023-05-13 16:04:31 +02:00
parent 2c96a40f02
commit 75493340f5
No known key found for this signature in database
GPG Key ID: 52984C069F5AD3CD
3 changed files with 4 additions and 12 deletions

View File

@ -3,9 +3,7 @@
- name: "Certificates | Debian | LetsEncrypt Certbot | {{ le_name }} | Showing debug info" - name: "Certificates | Debian | LetsEncrypt Certbot | {{ le_name }} | Showing debug info"
ansible.builtin.debug: ansible.builtin.debug:
var: le_cert var: le_cert
when: when: debug | bool
- debug is defined
- debug
# ToDo: path validation # ToDo: path validation
- name: "Certificates | Debian | LetsEncrypt Certbot | {{ le_name }} | Checking config" - name: "Certificates | Debian | LetsEncrypt Certbot | {{ le_name }} | Checking config"

View File

@ -26,9 +26,7 @@
- name: Certificates | Debian | LetsEncrypt Certbot | Existing certificates - name: Certificates | Debian | LetsEncrypt Certbot | Existing certificates
ansible.builtin.debug: ansible.builtin.debug:
var: existing_certs_raw.stdout var: existing_certs_raw.stdout
when: when: debug | bool
- debug is defined
- debug
- name: Certificates | Debian | LetsEncrypt Certbot | Adding certificates - name: Certificates | Debian | LetsEncrypt Certbot | Adding certificates
ansible.builtin.include_tasks: cert.yml ansible.builtin.include_tasks: cert.yml

View File

@ -10,16 +10,12 @@
- name: Certificates | Showing debug info - user provided config - name: Certificates | Showing debug info - user provided config
ansible.builtin.debug: ansible.builtin.debug:
var: certs var: certs
when: when: debug | bool
- debug is defined
- debug
- name: Certificates | Showing debug info - running config - name: Certificates | Showing debug info - running config
ansible.builtin.debug: ansible.builtin.debug:
var: CERT_CONFIG var: CERT_CONFIG
when: when: debug | bool
- debug is defined
- debug
- name: Certificates | Checking for invalid domains/hostnames - name: Certificates | Checking for invalid domains/hostnames
ansible.builtin.pause: ansible.builtin.pause: