Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix MySQL tests when running under Docker. #50047

Merged
merged 2 commits into from
Dec 17, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 8 additions & 2 deletions test/integration/targets/setup_mysql_db/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: >
Expand Down