ansible/roles/mysql/tasks/main.yml
Salt f4568e7e49 Remove pymysql
Keeps getting auth errors because it's bad or whatever
2020-04-30 08:32:14 -05:00

28 lines
587 B
YAML

#!/usr/bin/ansible-playbook
# vim:ft=ansible:
---
- name: Set up MySQL
block:
- name: Install MySQL
apt:
name: "{{ packages }}"
vars:
packages:
- mariadb-server
- python3-mysqldb
- name: Start MySQL
service:
name: mysql
state: started
enabled: true
- name: Update root password
mysql_user:
name: root
host: localhost
password: "{{ mysql_root_password }}"
login_user: root
login_password: "{{ mysql_root_password }}"
check_implicit_admin: yes
priv: "*.*:ALL,GRANT"
become: true