mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-08-24 06:51:45 -07:00
Add % instead of the default 'localhost' since we use remote connection
Previously, everything was on localhost. Now ansible-test is in a venv and the db is in a container. The db see the IP address from the podman host (10.88.0.2)
This commit is contained in:
parent
8c5806848f
commit
c895a86c2a
3 changed files with 3 additions and 0 deletions
|
@ -36,6 +36,7 @@
|
||||||
login_host: 127.0.0.1
|
login_host: 127.0.0.1
|
||||||
login_port: '{{ mysql_primary_port }}'
|
login_port: '{{ mysql_primary_port }}'
|
||||||
name: '{{ db_user }}'
|
name: '{{ db_user }}'
|
||||||
|
host: '%'
|
||||||
password: '{{ db_user_unsafe_password }}'
|
password: '{{ db_user_unsafe_password }}'
|
||||||
priv: '*.*:ALL'
|
priv: '*.*:ALL'
|
||||||
state: present
|
state: present
|
||||||
|
|
|
@ -179,6 +179,7 @@
|
||||||
login_host: 127.0.0.1
|
login_host: 127.0.0.1
|
||||||
login_port: '{{ mysql_primary_port }}'
|
login_port: '{{ mysql_primary_port }}'
|
||||||
name: user1
|
name: user1
|
||||||
|
host: '%'
|
||||||
password: 'Hfd6fds^dfA8Ga'
|
password: 'Hfd6fds^dfA8Ga'
|
||||||
priv: '*.*:ALL'
|
priv: '*.*:ALL'
|
||||||
state: present
|
state: present
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
mysql_user:
|
mysql_user:
|
||||||
<<: *mysql_params
|
<<: *mysql_params
|
||||||
name: '{{ test_user_name }}'
|
name: '{{ test_user_name }}'
|
||||||
|
host: '%'
|
||||||
password: '{{ initial_password }}'
|
password: '{{ initial_password }}'
|
||||||
priv: '{{ test_default_priv }}'
|
priv: '{{ test_default_priv }}'
|
||||||
state: present
|
state: present
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue