mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-08-06 22:24:24 -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
|
@ -167,10 +167,9 @@
|
|||
tls_requires:
|
||||
|
||||
- name: retrieve TLS requirements for users
|
||||
command: "{{ mysql_command }} -L -N -s -e \"SHOW GRANTS for '{{ user_name_1 }}'@'localhost'\""
|
||||
command: "{{ mysql_command }} -L -N -s -e \"SHOW CREATE USER '{{ user_name_1 }}'@'localhost'\""
|
||||
register: result
|
||||
|
||||
|
||||
- name: assert user1 TLS requirements
|
||||
assert:
|
||||
that: "'REQUIRE ' not in result.stdout or 'REQUIRE NONE' in result.stdout"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue