mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-05-08 02:01:32 -07:00
De-duplicate the mysql_command alias
This commit is contained in:
parent
4b6617ab50
commit
90266f1ad5
10 changed files with 16 additions and 37 deletions
|
@ -10,9 +10,16 @@
|
|||
connector_name: "{{ connector.name.0 }}"
|
||||
gateway_addr: "{{ ip_route_output.stdout }}"
|
||||
|
||||
- name: "{{ role_name }} | setvars | Connector version"
|
||||
- name: "{{ role_name }} | setvars | Set Fact using above facts"
|
||||
ansible.builtin.set_fact:
|
||||
connector_ver: "{{ connector_name.split('=')[2].strip() }}"
|
||||
mysql_command: >
|
||||
mysql
|
||||
-h{{ gateway_addr }}
|
||||
-P{{ mysql_primary_port }}
|
||||
-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