Merge "my.cnf was going to wrong location."
This commit is contained in:
commit
804db37954
3
ansible/roles/stv3-db/handlers/main.yaml
Normal file
3
ansible/roles/stv3-db/handlers/main.yaml
Normal file
@ -0,0 +1,3 @@
|
||||
---
|
||||
- name: restart_mysql
|
||||
action: service name=mysql state=restarted
|
@ -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 }}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user