This commit is contained in:
Andrew Klychkov 2021-04-13 11:22:45 +02:00
commit 83b76a4804
3 changed files with 22 additions and 4 deletions

View file

@ -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 }}'