mirror of
https://github.com/saltstack-formulas/mysql-formula.git
synced 2025-04-17 10:10:30 +00:00
Fix RedHat MySQL admin root password setup.
This commit is contained in:
parent
0ef2eacce8
commit
5da21111e4
1 changed files with 2 additions and 2 deletions
|
@ -27,8 +27,8 @@ mysql_debconf:
|
||||||
{% elif os_family == 'RedHat' or 'Suse' %}
|
{% elif os_family == 'RedHat' or 'Suse' %}
|
||||||
mysql_root_password:
|
mysql_root_password:
|
||||||
cmd.run:
|
cmd.run:
|
||||||
- name: mysqladmin --user root password '{{ mysql_root_password|replace("'", "'\"'\"'") }}'
|
- name: mysqladmin --user {{ mysql_root_user }} password '{{ mysql_root_password|replace("'", "'\"'\"'") }}'
|
||||||
- unless: mysql --user root --password='{{ mysql_root_password|replace("'", "'\"'\"'") }}' --execute="SELECT 1;"
|
- unless: mysql --user {{ mysql_root_user }} --password='{{ mysql_root_password|replace("'", "'\"'\"'") }}' --execute="SELECT 1;"
|
||||||
- require:
|
- require:
|
||||||
- service: mysqld
|
- service: mysqld
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue