Simplify root password assignment for MySQL
This commit is contained in:
parent
4c1cf35afa
commit
2d9dd4a9a7
@ -19,15 +19,10 @@
|
|||||||
- name: Update root password
|
- name: Update root password
|
||||||
mysql_user:
|
mysql_user:
|
||||||
name: root
|
name: root
|
||||||
host: "{{ item }}"
|
host: localhost
|
||||||
password: "{{ mysql_root_password }}"
|
password: "{{ mysql_root_password }}"
|
||||||
login_user: root
|
login_user: root
|
||||||
login_password: "{{ mysql_root_password }}"
|
login_password: "{{ mysql_root_password }}"
|
||||||
check_implicit_admin: yes
|
check_implicit_admin: yes
|
||||||
priv: "*.*:ALL,GRANT"
|
priv: "*.*:ALL,GRANT"
|
||||||
loop:
|
|
||||||
- "{{ ansible_hostname }}"
|
|
||||||
- 127.0.0.1
|
|
||||||
- ::1
|
|
||||||
- localhost
|
|
||||||
become: true
|
become: true
|
||||||
|
Loading…
Reference in New Issue
Block a user