Fix templating type error could not cconvert to bool with ansible devel

This commit is contained in:
Laurent Indermuehle 2024-06-07 17:49:47 +02:00
commit b1fa90dc28
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09

View file

@ -3,7 +3,7 @@
command: "{{ mysql_command }} \"-e SHOW VARIABLES LIKE 'have_ssl';\""
register: result
- set_fact:
tls_enabled: "{{ 'YES' in result.stdout | bool | default('false', true) }}"
tls_enabled: "{{ 'YES' in result.stdout }}"
- vars:
mysql_parameters: &mysql_params