Merge pull request #137 from joejulian/fix_grant

Fix broken GRANT when not ssl
This commit is contained in:
Forrest 2016-09-07 11:06:26 -07:00 committed by GitHub
commit 740034db89

View file

@ -79,6 +79,7 @@ include:
- grant: {{db['grants']|join(",")}}
- database: '{{ db['database'] }}.{{ db['table'] | default('*') }}'
- grant_option: {{ db['grant_option'] | default(False) }}
{% if 'ssl' in user or 'ssl-X509' in user %}
- ssl_option:
- SSL: {{ user['ssl'] | default(False) }}
{% if user['ssl-X509'] is defined %}
@ -93,6 +94,7 @@ include:
{% if user['ssl-CIPHER'] is defined %}
- CIPHER: {{ user['ssl-CIPHER'] }}
{% endif %}
{% endif %}
- user: {{ name }}
- host: '{{ host }}'
- connection_host: '{{ mysql_host }}'