hpc-cloud/mariadb.yml

21 lines
578 B
YAML
Raw Normal View History

2017-04-18 13:17:32 +02:00
# Install a docker based mariadb.
---
- name: Install a mariadb server with databases in a persistent volume
hosts: all # Should be specified of course
become: True
tasks:
2017-04-18 14:10:41 +02:00
- include: tasks/docker.yml
2017-04-18 13:17:32 +02:00
- name: install service file.
template:
src: files/mysql.service
dest: /etc/systemd/system/mysql.service
mode: 644
owner: root
group: root
- name: install service file
command: systemctl daemon-reload
- name: make sure service is started
systemd:
2017-04-18 14:10:41 +02:00
name: mysql.service
2017-04-18 13:17:32 +02:00
state: started