mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-07-27 15:11:28 -07:00
Fix replication due to usage of gateway_addr instead of localhost
This commit is contained in:
parent
72b3ecb6da
commit
17f8ecef35
3 changed files with 18 additions and 10 deletions
|
@ -15,13 +15,19 @@
|
|||
- name: "{{ role_name }} | setvars | Set Fact using above facts"
|
||||
ansible.builtin.set_fact:
|
||||
connector_ver: "{{ connector_name.split('=')[2].strip() }}"
|
||||
mysql_command: >
|
||||
mysql_command: >-
|
||||
mysql
|
||||
-h{{ gateway_addr }}
|
||||
-P{{ mysql_primary_port }}
|
||||
-u{{ mysql_user }}
|
||||
-p{{ mysql_password }}
|
||||
--protocol=tcp
|
||||
mysql_command_wo_port: >-
|
||||
mysql
|
||||
-h{{ gateway_addr }}
|
||||
-u{{ mysql_user }}
|
||||
-p{{ mysql_password }}
|
||||
--protocol=tcp
|
||||
|
||||
- name: "{{ role_name }} | setvars | Debug connector info"
|
||||
ansible.builtin.debug:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue