1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix MySQL tests when running under Docker. (#50047)

This commit is contained in:
Matt Clay 2018-12-17 12:59:40 -08:00 committed by GitHub
parent a8292778f0
commit 0ccd231afd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -72,8 +72,14 @@
line: 'mysql_server_enable="YES"'
when: ansible_os_family == "FreeBSD"
- name: start mysql_db service if not running
service: name={{ mysql_service }} state=started
- name: apply work-around for OverlayFS issue
# 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
shell: >