Ignore errors when maintenance mysql user command fails
This commit is contained in:
@@ -38,6 +38,7 @@
|
|||||||
|
|
||||||
- name: Set maintenance password
|
- 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;"
|
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
|
- name: set mysql root password
|
||||||
action: shell mysql -e "UPDATE mysql.user SET password=PASSWORD('{{ root_mysql_password }}') where user='root'; FLUSH PRIVILEGES;"
|
action: shell mysql -e "UPDATE mysql.user SET password=PASSWORD('{{ root_mysql_password }}') where user='root'; FLUSH PRIVILEGES;"
|
||||||
|
|||||||
Reference in New Issue
Block a user