19 lines
323 B
YAML
19 lines
323 B
YAML
#!/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
|