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" | - 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" | ||||||
|  |  | ||||||
|  | @ -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 | ||||||
|  |  | ||||||
|  | @ -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: | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue