Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - name: Give each webserver a mysql account
- 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
- with_items:
- - "{{ groups['webservers'] }}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement