Fixed spacing

This commit is contained in:
Solomon Gifford
2015-12-16 16:12:02 -05:00
parent 0556899ab4
commit 1b1e11b689
4 changed files with 8 additions and 9 deletions

View File

@@ -71,8 +71,6 @@ 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:
# mysql_config_include_files:
# - src: path/relative/to/playbook/file.cnf # - src: path/relative/to/playbook/file.cnf
# - { src: path/relative/to/playbook/anotherfile.cnf, force: yes } # - { src: path/relative/to/playbook/anotherfile.cnf, force: yes }

View File

@@ -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

View File

@@ -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 %}