2017-04-25 14:47:04 +02:00
|
|
|
# Install a docker based mariadb.
|
|
|
|
---
|
|
|
|
- include: ../common/tasks/docker.yml
|
|
|
|
- name: install service file.
|
|
|
|
template:
|
|
|
|
src: files/mysql.service
|
|
|
|
dest: /etc/systemd/system/mysql.service
|
|
|
|
mode: 644
|
|
|
|
owner: root
|
|
|
|
group: root
|
2017-06-22 09:19:08 +02:00
|
|
|
|
|
|
|
- name: make mariadb settings volume
|
|
|
|
file:
|
|
|
|
path: /srv/mariadb/etc/mysql
|
|
|
|
state: directory
|
|
|
|
mode: 0777
|
|
|
|
|
|
|
|
- name: place settings file
|
|
|
|
copy:
|
|
|
|
src: files/my.cnf
|
|
|
|
dest: /srv/mariadb/etc/mysql
|
|
|
|
mode: 660
|
|
|
|
|
|
|
|
- command: systemctl daemon-reload
|
|
|
|
|
2017-04-25 14:47:04 +02:00
|
|
|
- name: make sure service is started
|
|
|
|
systemd:
|
|
|
|
name: mysql.service
|
|
|
|
state: started
|