Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. - name: set root password
  2. mysql_user:
  3. check_implicit_admin: "yes"
  4. login_user: "root"
  5. login_password: "{{ mysql_root_password }}"
  6. name: "root"
  7. host: "{{ item }}"
  8. password: "{{ mysql_root_password }}"
  9. with_items:
  10. - "{{ ansible_hostname }}"
  11. - "127.0.0.1"
  12. - "::1"
  13. - "localhost"
  14.  
  15. changed: [ansible3.local] => (item=bifrost1)
  16. failed: [ansible3.local] (item=127.0.0.1) => {"failed": true, "item": "127.0.0.1", "msg": "(1396, "Operation CREATE USER failed for 'root'@'127.0.0.1'")"}
  17. failed: [ansible3.local] (item=::1) => {"failed": true, "item": "::1", "msg": "(1396, "Operation CREATE USER failed for 'root'@'::1'")"}
  18. failed: [ansible3.local] (item=localhost) => {"failed": true, "item": "localhost", "msg": "(1396, "Operation CREATE USER failed for 'root'@'localhost'")"}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement