Simplify root password assignment for MySQL

This commit is contained in:
Salt 2020-04-30 08:29:24 -05:00
parent 4c1cf35afa
commit 2d9dd4a9a7

View File

@ -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