Enable MySQL tests on FreeBSD.

pull/21438/head
Matt Clay 8 years ago
parent c5446d95cc
commit 9389fafae8

@ -1,4 +1,3 @@
destructive
posix/ci/group1
skip/freebsd
skip/osx

@ -1,4 +1,3 @@
destructive
posix/ci/group1
skip/freebsd
skip/osx

@ -1,4 +1,3 @@
destructive
posix/ci/group1
skip/freebsd
skip/osx

@ -41,5 +41,24 @@
with_items: "{{mysql_packages}}"
when: ansible_pkg_mgr == 'apt'
- name: install mysqldb_test FreeBSD dependencies
pkgng:
name: "{{ item }}"
state: present
with_items: "{{mysql_packages}}"
when: ansible_os_family == "FreeBSD"
- name: install mysql-python package via pip (FreeBSD)
pip:
name: mysql-python
state: present
when: ansible_os_family == "FreeBSD"
- name: enable mysql-server service (FreeBSD)
lineinfile:
path: /etc/rc.conf
line: 'mysql_server_enable="YES"'
when: ansible_os_family == "FreeBSD"
- name: start mysql_db service if not running
service: name={{ mysql_service }} state=started

@ -0,0 +1,5 @@
mysql_service: 'mysql-server'
mysql_packages:
- mariadb101-server
- py27-mysql-connector-python2
Loading…
Cancel
Save