add clean of mysql folder when new install
This commit is contained in:
parent
22eb4b8094
commit
2393c4d792
@ -6,6 +6,10 @@
|
|||||||
pacman: "name={{ mysql_packages }} state=present"
|
pacman: "name={{ mysql_packages }} state=present"
|
||||||
register: arch_mysql_install_packages
|
register: arch_mysql_install_packages
|
||||||
|
|
||||||
|
- name: clean /var/lib/mysql if new instaled
|
||||||
|
file: path=/var/lib/mysql state=absent
|
||||||
|
when: arch_mysql_install_packages.changed
|
||||||
|
|
||||||
- name: Run mysql_install_db if MySQL packages were changed.
|
- name: Run mysql_install_db if MySQL packages were changed.
|
||||||
command: mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
|
command: mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
|
||||||
when: arch_mysql_install_packages.changed
|
when: arch_mysql_install_packages.changed
|
||||||
|
Loading…
Reference in New Issue
Block a user