mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-08-04 13:14:26 -07:00
Backport tls_requirements simplified and deduplified tests
(cherry picked from commit ac5a339644
)
This commit is contained in:
parent
653268422d
commit
c121af0ff6
1 changed files with 1 additions and 2 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