ansible/roles/mysql/tasks/main.yml

19 lines
323 B
YAML
Raw Normal View History

#!/usr/bin/ansible-playbook
# vim:ft=ansible:
---
- name: Set up MySQL
block:
- name: Install MySQL
apt:
name: "{{ packages }}"
vars:
packages:
- mariadb-server
- python-mysqldb
- name: Start MySQL
service:
name: mysql
state: started
enabled: true
become: true