Rework mysql role
This commit is contained in:
parent
9488b4541e
commit
4e90230c43
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user