mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-07 03:00:34 -07:00
Add back the computation of old databases version bool
This commit is contained in:
parent
19db9c73df
commit
85148e8186
1 changed files with 8 additions and 1 deletions
|
@ -15,7 +15,14 @@
|
|||
dest: /tmp/cert.pem
|
||||
delegate_to: localhost
|
||||
|
||||
- name: Issue-121 | Drop mysql user if exists
|
||||
- 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 }}"
|
||||
mysql_user:
|
||||
<<: *mysql_params
|
||||
name: '{{ item }}'
|
||||
|
|
Loading…
Add table
Reference in a new issue