summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/setup_mysql_db
diff options
context:
space:
mode:
authorMatt Martz <matt@sivel.net>2018-10-25 19:25:02 +0200
committerToshio Kuratomi <a.badger@gmail.com>2018-10-25 20:13:23 +0200
commit10e129e2e91e8f9dc6c0626202130d946984430c (patch)
tree2a6208cfbf0dcc78c47ec542bd3cd9f61a4b275f /test/integration/targets/setup_mysql_db
parentFix idempotency issues in set_bios_attributes (diff)
downloadansible-10e129e2e91e8f9dc6c0626202130d946984430c.tar.xz
ansible-10e129e2e91e8f9dc6c0626202130d946984430c.zip
Detect the socket path after starting the service. Fixes #47582
Diffstat (limited to 'test/integration/targets/setup_mysql_db')
-rw-r--r--test/integration/targets/setup_mysql_db/tasks/main.yml18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/integration/targets/setup_mysql_db/tasks/main.yml b/test/integration/targets/setup_mysql_db/tasks/main.yml
index 22c3f0ec7b..8a667d9e0f 100644
--- a/test/integration/targets/setup_mysql_db/tasks/main.yml
+++ b/test/integration/targets/setup_mysql_db/tasks/main.yml
@@ -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"] }}'