Skip to main content
Sign in
Snippets Groups Projects
Commit e5e55c74 authored by Achim Herwig's avatar Achim Herwig
Browse files

Avoid -p option if password is empty.

Fixes #176
parent 31844ed1
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,7 @@ include:
{{ state_id }}_load:
cmd.wait:
- name: mysql -u {{ mysql_salt_user }} -h{{ mysql_host }} -p{{ mysql_salt_pass }} {{ database }} < /etc/mysql/{{ database }}.schema
- name: mysql -u {{ mysql_salt_user }} -h{{ mysql_host }} {% if mysql_salt_pass %}-p{% endif %}{{ mysql_salt_pass }} {{ database }} < /etc/mysql/{{ database }}.schema
- watch:
- file: {{ state_id }}_schema
- mysql_database: {{ state_id }}
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment