Give test user privileges to run test operations

This commit is contained in:
Jorge-Rodriguez 2020-09-30 08:02:16 +03:00
parent 423264226d
commit 0f86c8ed8d
No known key found for this signature in database
GPG key ID: 43153D1EFD8F7D90
4 changed files with 7 additions and 9 deletions

View file

@ -30,6 +30,7 @@
<<: *mysql_params
name: "{{ user_name_1 }}"
password: "{{ user_password_1 }}"
priv: '*.*:ALL,GRANT'
tls_requires:
SSL:
@ -53,7 +54,7 @@
- name: attempt connection with newly created user ignoring hostname
mysql_db:
name: '{{ db_name }}'
state: present
state: absent
login_user: '{{ user_name_1 }}'
login_password: '{{ user_password_1 }}'
login_host: 127.0.0.1

View file

@ -30,6 +30,7 @@
<<: *mysql_params
name: "{{ user_name_1 }}"
password: "{{ user_password_1 }}"
priv: '*.*:ALL,GRANT'
tls_requires:
SSL:
@ -68,9 +69,6 @@
- name: Drop mysql user
mysql_user:
<<: *mysql_params
name: '{{ item }}'
name: '{{ user_name_1 }}'
host: 127.0.0.1
state: absent
with_items:
- "{{ user_name_1 }}"
- "{{ user_name_2 }}"

View file

@ -30,6 +30,7 @@
<<: *mysql_params
name: "{{ user_name_1 }}"
password: "{{ user_password_1 }}"
priv: '*.*:ALL,GRANT'
tls_requires:
SSL:

View file

@ -30,6 +30,7 @@
<<: *mysql_params
name: "{{ user_name_1 }}"
password: "{{ user_password_1 }}"
priv: '*.*:ALL,GRANT'
tls_requires:
SSL:
@ -68,9 +69,6 @@
- name: Drop mysql user
mysql_user:
<<: *mysql_params
name: '{{ item }}'
name: '{{ user_name_1 }}'
host: 127.0.0.1
state: absent
with_items:
- "{{ user_name_1 }}"
- "{{ user_name_2 }}"