mirror of
https://github.com/aljazceru/ansible-role-mysql.git
synced 2025-12-19 03:24:21 +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: []
|
||||
|
||||
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: []
|
||||
|
||||
|
||||
@@ -71,10 +71,8 @@ mysql_log_error: /var/log/mysql.err
|
||||
mysql_syslog_tag: mysql
|
||||
|
||||
mysql_config_include_files: []
|
||||
# Full example:
|
||||
# mysql_config_include_files:
|
||||
# - src: path/relative/to/playbook/file.cnf
|
||||
# - { 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.
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0755
|
||||
when: mysql_config_include_files|length
|
||||
when: mysql_config_include_files | length
|
||||
|
||||
- name: Copy my.cnf override files into include directory.
|
||||
template:
|
||||
@@ -25,7 +25,7 @@
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
force: "{{ item.force|default(False) }}"
|
||||
force: "{{ item.force | default(False) }}"
|
||||
with_items: mysql_config_include_files
|
||||
notify: restart mysql
|
||||
|
||||
|
||||
@@ -97,9 +97,10 @@ max_allowed_packet = {{ mysql_mysqldump_max_allowed_packet }}
|
||||
[mysqld_safe]
|
||||
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!
|
||||
# The files must end with '.cnf', otherwise they'll be ignored.
|
||||
#
|
||||
!includedir {{ mysql_config_include_dir }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user