ansible-roles/mysql/tasks/config_jessie.yml
Mathieu Trossevin 2036db938b
[Cleanup] Cleanup the mysql role
Remove the useless call for `cat` as `grep` take a file as it's second
argument that tell it to search for the pattern in a specific file
instead of whatever is passed to it through stdin.

Name both task defining the position of the config directory for
self-documentation purposes (and please ansible-lint defaults).

Change role description to it's description in the readme instead of the
default description asking for the role to be described.

Don't compare to empty string, an empty string is already false while a
non-empty string is true.
2020-12-23 15:02:20 +01:00

28 lines
643 B
YAML

---
- name: "Define the config directory of mysql"
set_fact:
mysql_config_directory: /etc/mysql/conf.d
- name: "Copy MySQL defaults config file (jessie)"
copy:
src: evolinux-defaults.cnf
dest: "{{ mysql_config_directory }}/{{ mysql_evolinux_defaults_file }}"
owner: root
group: root
mode: "0644"
force: yes
tags:
- mysql
- name: "Copy MySQL custom config file (jessie)"
template:
src: evolinux-custom.cnf.j2
dest: "{{ mysql_config_directory }}/{{ mysql_evolinux_custom_file }}"
owner: root
group: root
mode: "0644"
force: "{{ mysql_force_custom_config }}"
tags:
- mysql