Skip to content

Commit 1b1e11b

Browse files
author
Solomon Gifford
committed
Fixed spacing
1 parent 0556899 commit 1b1e11b

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Whether the global my.cnf should be overwritten each time this role is run. Sett
3434

3535
mysql_config_include_files: []
3636

37-
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.
37+
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.
3838

3939
mysql_databases: []
4040

defaults/main.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,8 @@ mysql_log_error: /var/log/mysql.err
7171
mysql_syslog_tag: mysql
7272

7373
mysql_config_include_files: []
74-
# Full example:
75-
# mysql_config_include_files:
76-
# - src: path/relative/to/playbook/file.cnf
77-
# - { src: path/relative/to/playbook/anotherfile.cnf, force: yes }
74+
# - src: path/relative/to/playbook/file.cnf
75+
# - { src: path/relative/to/playbook/anotherfile.cnf, force: yes }
7876

7977

8078
# Databases.

tasks/configure.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
owner: root
1717
group: root
1818
mode: 0755
19-
when: mysql_config_include_files|length
19+
when: mysql_config_include_files | length
2020

2121
- name: Copy my.cnf override files into include directory.
2222
template:
@@ -25,7 +25,7 @@
2525
owner: root
2626
group: root
2727
mode: 0644
28-
force: "{{ item.force|default(False) }}"
28+
force: "{{ item.force | default(False) }}"
2929
with_items: mysql_config_include_files
3030
notify: restart mysql
3131

templates/my.cnf.j2

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,10 @@ max_allowed_packet = {{ mysql_mysqldump_max_allowed_packet }}
9797
[mysqld_safe]
9898
pid-file = {{ mysql_pid_file }}
9999

100-
{% if mysql_config_include_files|length %}
100+
{% if mysql_config_include_files | length %}
101101
# * IMPORTANT: Additional settings that can override those from this file!
102102
# The files must end with '.cnf', otherwise they'll be ignored.
103103
#
104104
!includedir {{ mysql_config_include_dir }}
105-
{% endif %}
105+
{% endif %}
106+

0 commit comments

Comments
 (0)