De-duplicate the mysql_command alias

This commit is contained in:
Laurent Indermuehle 2023-01-04 13:15:24 +01:00
parent 4b6617ab50
commit 90266f1ad5
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09
10 changed files with 16 additions and 37 deletions

View file

@ -1,7 +1,4 @@
---
- name: alias mysql command to include default options
set_fact:
mysql_command: "mysql -u{{ mysql_user }} -p{{ mysql_password }} -P{{ mysql_primary_port }} --protocol=tcp"
- name: set fact tls_enabled
command: "{{ mysql_command }} \"-e SHOW VARIABLES LIKE 'have_ssl';\""