SHARE
TWEET

Untitled

a guest Apr 24th, 2019 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top