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

Enable MySQL tests on FreeBSD.

This commit is contained in:
Matt Clay 2017-02-14 11:45:32 -08:00
parent c5446d95cc
commit 9389fafae8
5 changed files with 24 additions and 3 deletions

View file

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

View file

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

View file

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

View file

@ -41,5 +41,24 @@
with_items: "{{mysql_packages}}" with_items: "{{mysql_packages}}"
when: ansible_pkg_mgr == 'apt' 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 - name: start mysql_db service if not running
service: name={{ mysql_service }} state=started service: name={{ mysql_service }} state=started

View file

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