fix .my.cnf somehow
This commit is contained in:
parent
8a7b7f0b81
commit
5b29805865
1 changed files with 3 additions and 4 deletions
|
@ -14,13 +14,12 @@
|
|||
- 127.0.0.1
|
||||
- ::1
|
||||
- localhost
|
||||
|
||||
- name: Set ~/.my.cnf file
|
||||
template:
|
||||
- src: files/mysql_secure-installation-my.conf.j2
|
||||
- dest: /root/.my.cnf
|
||||
- mode: '0600'
|
||||
template: src=files/mysql_secure-installation-my.conf.j2 dest=/root/.my.cnf mode=0600
|
||||
vars:
|
||||
MYSQL_ROOT_PASSWORD: "{{mysql_root_password}}"
|
||||
|
||||
- name: Delete anonymous MySQL user
|
||||
mysql_user: name="" host={{item}} state=absent
|
||||
with_items:
|
||||
|
|
Loading…
Reference in a new issue