mirror of
https://github.com/aljazceru/ansible-role-mysql.git
synced 2025-12-19 19:24:19 +01:00
Fixed spacing
This commit is contained in:
@@ -34,7 +34,7 @@ Whether the global my.cnf should be overwritten each time this role is run. Sett
|
|||||||
|
|
||||||
mysql_config_include_files: []
|
mysql_config_include_files: []
|
||||||
|
|
||||||
A list of files that should override the default global my.cnf. Each item in the array requires a "src" parameter which is a path to a file. An optional "force" parameter can force the file to be updated each time ansible runs.
|
A list of files that should override the default global my.cnf. Each item in the array requires a "src" parameter which is a path to a file. An optional "force" parameter can force the file to be updated each time ansible runs.
|
||||||
|
|
||||||
mysql_databases: []
|
mysql_databases: []
|
||||||
|
|
||||||
|
|||||||
@@ -71,10 +71,8 @@ mysql_log_error: /var/log/mysql.err
|
|||||||
mysql_syslog_tag: mysql
|
mysql_syslog_tag: mysql
|
||||||
|
|
||||||
mysql_config_include_files: []
|
mysql_config_include_files: []
|
||||||
# Full example:
|
# - src: path/relative/to/playbook/file.cnf
|
||||||
# mysql_config_include_files:
|
# - { src: path/relative/to/playbook/anotherfile.cnf, force: yes }
|
||||||
# - src: path/relative/to/playbook/file.cnf
|
|
||||||
# - { src: path/relative/to/playbook/anotherfile.cnf, force: yes }
|
|
||||||
|
|
||||||
|
|
||||||
# Databases.
|
# Databases.
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0755
|
mode: 0755
|
||||||
when: mysql_config_include_files|length
|
when: mysql_config_include_files | length
|
||||||
|
|
||||||
- name: Copy my.cnf override files into include directory.
|
- name: Copy my.cnf override files into include directory.
|
||||||
template:
|
template:
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
force: "{{ item.force|default(False) }}"
|
force: "{{ item.force | default(False) }}"
|
||||||
with_items: mysql_config_include_files
|
with_items: mysql_config_include_files
|
||||||
notify: restart mysql
|
notify: restart mysql
|
||||||
|
|
||||||
|
|||||||
@@ -97,9 +97,10 @@ max_allowed_packet = {{ mysql_mysqldump_max_allowed_packet }}
|
|||||||
[mysqld_safe]
|
[mysqld_safe]
|
||||||
pid-file = {{ mysql_pid_file }}
|
pid-file = {{ mysql_pid_file }}
|
||||||
|
|
||||||
{% if mysql_config_include_files|length %}
|
{% if mysql_config_include_files | length %}
|
||||||
# * IMPORTANT: Additional settings that can override those from this file!
|
# * IMPORTANT: Additional settings that can override those from this file!
|
||||||
# The files must end with '.cnf', otherwise they'll be ignored.
|
# The files must end with '.cnf', otherwise they'll be ignored.
|
||||||
#
|
#
|
||||||
!includedir {{ mysql_config_include_dir }}
|
!includedir {{ mysql_config_include_dir }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user