mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-07 03:00:34 -07:00
Drop test for unsupported version
The set_fact was overwritten our db_version variable and changed its type causing bug later when using the filter version(). We don't support MySQL 5.6 and MariaDB 10.2 so I cut everything.
This commit is contained in:
parent
ea1b287c17
commit
eb3fcd9ec2
1 changed files with 1 additions and 12 deletions
|
@ -15,15 +15,6 @@
|
|||
dest: /tmp/cert.pem
|
||||
delegate_to: localhost
|
||||
|
||||
- name: Issue-121 | Setup | get server version
|
||||
mysql_info:
|
||||
<<: *mysql_params
|
||||
filter: version
|
||||
register: db_version
|
||||
|
||||
- set_fact:
|
||||
old_user_mgmt: "{{ db_version.version.major <= 5 and db_version.version.minor <= 6 or db_version.version.major == 10 and db_version.version.minor < 2 | bool }}"
|
||||
|
||||
- name: Issue-121 | Setup | Drop mysql user if exists
|
||||
mysql_user:
|
||||
<<: *mysql_params
|
||||
|
@ -45,10 +36,8 @@
|
|||
- name: Issue-121 | Verify REQUIRESSL is assigned to the user
|
||||
mysql_query:
|
||||
<<: *mysql_params
|
||||
query: "SHOW {{ what }} '{{ user_name_1}}'@'localhost'"
|
||||
query: "SHOW CREATE USER '{{ user_name_1}}'@'localhost'"
|
||||
register: result
|
||||
vars:
|
||||
what: "{{ 'GRANTS FOR' if old_user_mgmt else 'CREATE USER' }}"
|
||||
|
||||
- name: Issue-121 | Assert that requiressl is assigned to the user
|
||||
assert:
|
||||
|
|
Loading…
Add table
Reference in a new issue