Ignore errors when maintenance mysql user command fails

This commit is contained in:
2016-02-16 13:20:04 -05:00
parent 0d506181b9
commit 77e787731b

View File

@@ -38,6 +38,7 @@
- name: Set maintenance password
action: shell mysql -e "GRANT ALL PRIVILEGES ON *.* TO 'debian-sys-maint'@'localhost' IDENTIFIED BY '{{ debian_sys_maint_password }}' WITH GRANT OPTION; FLUSH PRIVILEGES;"
ignore_errors: yes
- name: set mysql root password
action: shell mysql -e "UPDATE mysql.user SET password=PASSWORD('{{ root_mysql_password }}') where user='root'; FLUSH PRIVILEGES;"