Rework mysql role

This commit is contained in:
Salt 2020-07-28 08:39:14 -05:00
parent 9488b4541e
commit 4e90230c43

View File

@ -5,16 +5,14 @@
block:
- name: Install MySQL
apt:
name: "{{ packages }}"
vars:
packages:
name:
- mariadb-server
- python3-mysqldb
- name: Start MySQL
service:
systemd:
name: mysql
enabled: yes
state: started
enabled: true
- name: Update root password
mysql_user:
name: root
@ -24,4 +22,4 @@
login_password: "{{ mysql_root_password }}"
check_implicit_admin: yes
priv: "*.*:ALL,GRANT"
become: true
become: yes