Fix replication due to usage of gateway_addr instead of localhost

This commit is contained in:
Laurent Indermuehle 2023-01-04 17:13:21 +01:00
commit 17f8ecef35
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09
3 changed files with 18 additions and 10 deletions

View file

@ -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: