|
|
|
|
|
|
|
|
- database: '{{ database_name }}.*' |
|
|
- database: '{{ database_name }}.*' |
|
|
- user: '{{ user.name }}' |
|
|
- user: '{{ user.name }}' |
|
|
- host: '{{ user.host }}' |
|
|
- host: '{{ user.host }}' |
|
|
|
|
|
- ssl_option: {{ user.get('ssl_option', False) }} |
|
|
#- connection_user: {{ connection.user }} |
|
|
#- connection_user: {{ connection.user }} |
|
|
#- connection_pass: {{ connection.password }} |
|
|
#- connection_pass: {{ connection.password }} |
|
|
#- connection_charset: {{ connection.charset }} |
|
|
#- connection_charset: {{ connection.charset }} |
|
|
|
|
|
|
|
|
- defaults: |
|
|
- defaults: |
|
|
database_name: {{ database_name }} |
|
|
database_name: {{ database_name }} |
|
|
database: {{ database }} |
|
|
database: {{ database }} |
|
|
- require: |
|
|
|
|
|
|
|
|
- require: |
|
|
- file: mysql_dirs |
|
|
- file: mysql_dirs |
|
|
- mysql_database: mysql_database_{{ database_name }} |
|
|
- mysql_database: mysql_database_{{ database_name }} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{%- if grains.get('noservices') %} |
|
|
{%- if grains.get('noservices') %} |
|
|
- onlyif: /bin/false |
|
|
- onlyif: /bin/false |
|
|
{%- endif %} |
|
|
{%- endif %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{%- if 'grants' in user %} |
|
|
{%- if 'grants' in user %} |
|
|
mysql_user_{{ user.name }}_{{ host }}_grants: |
|
|
mysql_user_{{ user.name }}_{{ host }}_grants: |
|
|
mysql_grants.present: |
|
|
mysql_grants.present: |
|
|
|
|
|
|
|
|
- grant_option: {{ user['grant_option'] | default(False) }} |
|
|
- grant_option: {{ user['grant_option'] | default(False) }} |
|
|
- user: {{ user.name }} |
|
|
- user: {{ user.name }} |
|
|
- host: '{{ host }}' |
|
|
- host: '{{ host }}' |
|
|
|
|
|
- ssl_option: {{ user.get('ssl_option', False) }} |
|
|
#- connection_user: {{ connection.user }} |
|
|
#- connection_user: {{ connection.user }} |
|
|
#- connection_pass: {{ connection.password }} |
|
|
#- connection_pass: {{ connection.password }} |
|
|
#- connection_charset: {{ connection.charset }} |
|
|
#- connection_charset: {{ connection.charset }} |
|
|
|
|
|
|
|
|
- grant_option: {{ db['grant_option'] | default(False) }} |
|
|
- grant_option: {{ db['grant_option'] | default(False) }} |
|
|
- user: {{ user.name }} |
|
|
- user: {{ user.name }} |
|
|
- host: '{{ host }}' |
|
|
- host: '{{ host }}' |
|
|
|
|
|
- ssl_option: {{ db.get('ssl_option', False) }} |
|
|
#- connection_user: {{ connection.user }} |
|
|
#- connection_user: {{ connection.user }} |
|
|
#- connection_pass: {{ connection.password }} |
|
|
#- connection_pass: {{ connection.password }} |
|
|
#- connection_charset: {{ connection.charset }} |
|
|
#- connection_charset: {{ connection.charset }} |