mirror of
https://github.com/saltstack-formulas/mysql-formula.git
synced 2025-04-16 17:50:27 +00:00
Fix duplicate ID if fqdn is localhost/localhost.localdomain
This commit is contained in:
parent
c9b45bc267
commit
8dd3d4da46
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ mysql_root_password:
|
|||
- require:
|
||||
- service: mysqld
|
||||
|
||||
{% for host in ['localhost', 'localhost.localdomain', salt['grains.get']('fqdn')] %}
|
||||
{% for host in {'localhost': '', 'localhost.localdomain': '', salt['grains.get']('fqdn'): ''}.keys() %}
|
||||
mysql_delete_anonymous_user_{{ host }}:
|
||||
mysql_user:
|
||||
- absent
|
||||
|
|
Loading…
Add table
Reference in a new issue