[stable-2.7] Fix MySQL tests when running under Docker. (#50047)
(cherry picked from commit 0ccd231afd
)
Co-authored-by: Matt Clay <matt@mystile.com>
This commit is contained in:
parent
8c8301142e
commit
79d3c0eab3
1 changed files with 8 additions and 2 deletions
|
@ -71,8 +71,14 @@
|
||||||
line: 'mysql_server_enable="YES"'
|
line: 'mysql_server_enable="YES"'
|
||||||
when: ansible_os_family == "FreeBSD"
|
when: ansible_os_family == "FreeBSD"
|
||||||
|
|
||||||
- name: start mysql_db service if not running
|
- name: apply work-around for OverlayFS issue
|
||||||
service: name={{ mysql_service }} state=started
|
# https://github.com/docker/for-linux/issues/72#issuecomment-319904698
|
||||||
|
command: find /var/lib/mysql -type f -exec touch {} ;
|
||||||
|
# find will fail if mysql has never been started, as the directory won't exist
|
||||||
|
ignore_errors: yes
|
||||||
|
|
||||||
|
- name: restart mysql_db service
|
||||||
|
service: name={{ mysql_service }} state=restarted
|
||||||
|
|
||||||
- name: Detect socket path
|
- name: Detect socket path
|
||||||
shell: >
|
shell: >
|
||||||
|
|
Loading…
Reference in a new issue