mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-07-02 06:30:21 -07:00
Backport/stable 1/pr 452 (#464)
* Sync GHA workflow w/ the collection template (#452) * Sync GHA workflow w/ the collection template * Drop the trailing pre-cmd semicolon * Recover missing `-e` flag of `sed` * Use relative paths for version configs * Unquote `env.connector_version_file` * Use string formatting to fix the substitution problem (cherry picked from commit8107530744
) (cherry picked from commit704a0cea6a
) * Backport mysql_version_parts variable assignation (cherry picked from commit79046a88cb
) (cherry picked from commita59d95501e
) * Add changelog fragment (cherry picked from commit26ecd68801
) * Backport flags and variables to differentiate MariaDB from MySQL setup (cherry picked from commitb4303511d5
) * Backport issue-28 check for tls support (cherry picked from commitefde607d25
) * Backport tls_requirements simplified and deduplified tests (cherry picked from commitac5a339644
) Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
This commit is contained in:
parent
fadbd30572
commit
85a63511b6
16 changed files with 146 additions and 117 deletions
|
@ -1,11 +1,17 @@
|
|||
---
|
||||
- name: set fact tls_enabled
|
||||
command: "{{ mysql_command }} \"-e SHOW VARIABLES LIKE 'have_ssl';\""
|
||||
register: result
|
||||
- set_fact:
|
||||
tls_enabled: "{{ 'YES' in result.stdout | bool | default('false', true) }}"
|
||||
|
||||
- vars:
|
||||
mysql_parameters: &mysql_params
|
||||
login_user: '{{ mysql_user }}'
|
||||
login_password: '{{ mysql_password }}'
|
||||
login_host: 127.0.0.1
|
||||
login_port: '{{ mysql_primary_port }}'
|
||||
|
||||
when: tls_enabled
|
||||
block:
|
||||
|
||||
# ============================================================
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue