Advertisement
Guest User

Untitled

a guest
Sep 3rd, 2015
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. - name: Give each webserver a mysql account
  2. mysql_user: name={{ mysql_username }} password={{ mysql_password }} host={{ hostvars[{{ item }}]['ansible_all_ipv4_addresses'] }} login_user=root login_password={{ mysql_root_password}} check_implicit_admin=yes priv=*.*:ALL
  3. with_items:
  4. - "{{ groups['webservers'] }}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement