mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 23:21:22 -07:00
Enable MySQL tests on FreeBSD.
This commit is contained in:
parent
c5446d95cc
commit
9389fafae8
5 changed files with 24 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue