# 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 - name: install service file command: systemctl daemon-reload - name: make sure service is started systemd: name: mysql.service state: started - name: Initialize db script: scripts/initialize_db.sh