mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Detect the socket path after starting the service. Fixes #47582
This commit is contained in:
parent
1c37471274
commit
10e129e2e9
1 changed files with 9 additions and 9 deletions
|
@ -37,15 +37,6 @@
|
|||
- 'default{{ python_suffix }}.yml'
|
||||
paths: '../vars'
|
||||
|
||||
- name: Detect socket path
|
||||
shell: >
|
||||
echo "show variables like 'socket'\G" | mysql | grep 'Value: ' | sed 's/[ ]\+Value: //'
|
||||
register: _socket_path
|
||||
|
||||
- name: Set socket path
|
||||
set_fact:
|
||||
mysql_socket: '{{ _socket_path["stdout"] }}'
|
||||
|
||||
- name: install mysqldb_test rpm dependencies
|
||||
yum: name={{ item }} state=latest
|
||||
with_items: "{{mysql_packages}}"
|
||||
|
@ -82,3 +73,12 @@
|
|||
|
||||
- name: start mysql_db service if not running
|
||||
service: name={{ mysql_service }} state=started
|
||||
|
||||
- name: Detect socket path
|
||||
shell: >
|
||||
echo "show variables like 'socket'\G" | mysql | grep 'Value: ' | sed 's/[ ]\+Value: //'
|
||||
register: _socket_path
|
||||
|
||||
- name: Set socket path
|
||||
set_fact:
|
||||
mysql_socket: '{{ _socket_path["stdout"] }}'
|
||||
|
|
Loading…
Reference in a new issue