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:
parent
c5446d95cc
commit
9389fafae8
5 changed files with 24 additions and 3 deletions
|
@ -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
|
||||
|
|
5
test/integration/targets/setup_mysql_db/vars/FreeBSD.yml
Normal file
5
test/integration/targets/setup_mysql_db/vars/FreeBSD.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
mysql_service: 'mysql-server'
|
||||
|
||||
mysql_packages:
|
||||
- mariadb101-server
|
||||
- py27-mysql-connector-python2
|
Loading…
Reference in a new issue