Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - name: Update "root" user password and grant all permissions for all hosts
- mysql_user:
- login_user: "{{ mysql.user }}"
- login_password: "{{ mysql.oldpassword }}"
- host: "{{ item }}"
- check_implicit_admin: yes
- name: "{{ mysql.user }}"
- password: "{{ mysql.newpassword }}"
- priv: "*.*:ALL,GRANT"
- state: present
- with_items:
- - "{{ mysql.hosts }}"
- tags:
- - mysql
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement