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:
Laurent Indermuehle 2022-12-09 14:12:31 +01:00
parent 8c5806848f
commit c895a86c2a
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09
3 changed files with 3 additions and 0 deletions

View file

@ -36,6 +36,7 @@
login_host: 127.0.0.1
login_port: '{{ mysql_primary_port }}'
name: '{{ db_user }}'
host: '%'
password: '{{ db_user_unsafe_password }}'
priv: '*.*:ALL'
state: present

View file

@ -179,6 +179,7 @@
login_host: 127.0.0.1
login_port: '{{ mysql_primary_port }}'
name: user1
host: '%'
password: 'Hfd6fds^dfA8Ga'
priv: '*.*:ALL'
state: present

View file

@ -24,6 +24,7 @@
mysql_user:
<<: *mysql_params
name: '{{ test_user_name }}'
host: '%'
password: '{{ initial_password }}'
priv: '{{ test_default_priv }}'
state: present