86cd68e465
It is now included in the common role itself, which is applied to all.
29 lines
548 B
YAML
29 lines
548 B
YAML
# Install a docker based mariadb.
|
|
---
|
|
- name: install service file.
|
|
template:
|
|
src: files/mysql.service
|
|
dest: /etc/systemd/system/mysql.service
|
|
mode: 644
|
|
owner: root
|
|
group: root
|
|
|
|
- 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
|
|
|
|
- name: make sure service is started
|
|
systemd:
|
|
name: mysql.service
|
|
state: started
|