my.cnf was going to wrong location.

Got schooled on the difference between .my.cnf and my.cnf. This
should be correct now.

Change-Id: I5f23ae5dc9e824153fb9e85a11e09e422ed1e0f2
This commit is contained in:
Sandy Walsh 2015-01-07 11:10:31 -08:00
parent ff7a73ba86
commit b99a74198f
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,3 @@
---
- name: restart_mysql
action: service name=mysql state=restarted

View File

@ -16,7 +16,9 @@
ignore_errors: yes
- name: copy .my.cnf file with root password credentials
template: src=my.cnf.j2 dest=/root/.my.cnf owner=root mode=0600
template: src=my.cnf.j2 dest=/etc/mysql/my.cnf owner=root mode=0600
notify:
- restart_mysql
- mysql_db: name=winchester state=present login_user=root login_password={{ root_db_password }}