Advertisement
Guest User

Untitled

a guest
Apr 24th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. - name: Update "root" user password and grant all permissions for all hosts
  2. mysql_user:
  3. login_user: "{{ mysql.user }}"
  4. login_password: "{{ mysql.oldpassword }}"
  5. host: "{{ item }}"
  6. check_implicit_admin: yes
  7. name: "{{ mysql.user }}"
  8. password: "{{ mysql.newpassword }}"
  9. priv: "*.*:ALL,GRANT"
  10. state: present
  11. with_items:
  12. - "{{ mysql.hosts }}"
  13. tags:
  14. - mysql
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement