Updated users and passwords for mysql

This commit is contained in:
2016-02-02 22:26:58 -05:00
parent d0840d63ce
commit bf4135224c

View File

@@ -13,3 +13,10 @@
action: shell mysql -e "UPDATE mysql.user SET password=PASSWORD('$root_mysql_password') where user='root'; FLUSH PRIVILEGES;"
only_if: $(is_mysql_running.rc} > 0
- name: Set up haproxy_check user
action: shell mysql -u root -p -e "INSERT INTO mysql.user (Host,User) values ('%','haproxy_check'); FLUSH PRIVILEGES;"
only_if: $(is_mysql_running.rc} > 0
- name: Set up user for wrestlingtourney
action: shell mysql -u root -p -e "CREATE USER 'heroku_jcw'@'%' IDENTIFIED BY '($heroku_jcw_password)';GRANT ALL PRIVILEGES ON wrestlingtourney.* TO 'heroku_jcw'@'%'; FLUSH PRIVILEGES;"
only_if: $(is_mysql_running.rc} > 0