mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-07-23 13:20:25 -07:00
tmp
This commit is contained in:
parent
915d125d70
commit
83b76a4804
3 changed files with 22 additions and 4 deletions
|
@ -49,8 +49,21 @@
|
|||
<<: *mysql_params
|
||||
name: '{{ user_name_5 }}'
|
||||
password: '{{ user_password_5 }}'
|
||||
priv: '*.*:SELECT'
|
||||
state: present
|
||||
|
||||
- name: Create user with default charset again
|
||||
mysql_user:
|
||||
<<: *mysql_params
|
||||
name: '{{ user_name_5 }}'
|
||||
password: '{{ user_password_5 }}'
|
||||
state: present
|
||||
priv: '*.*:SELECT'
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
that: result is not changed
|
||||
|
||||
- name: Try to get connect and get info, must fail
|
||||
mysql_query:
|
||||
login_host: 127.0.0.1
|
||||
|
@ -79,9 +92,10 @@
|
|||
name: '{{ user_name_5 }}'
|
||||
password: '{{ user_password_5 }}'
|
||||
state: present
|
||||
priv: '*.*:SELECT'
|
||||
charset: utf8mb4
|
||||
|
||||
- name: Try to get connect and get info, must succeed
|
||||
- name: Try to connect and get info, must succeed
|
||||
mysql_query:
|
||||
login_host: 127.0.0.1
|
||||
login_port: '{{ mysql_primary_port }}'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue