ansible-roles/mysql/tasks/tmpdir.yml

24 lines
469 B
YAML
Raw Normal View History

---
- block:
- name: "Create {{ mysql_custom_tmpdir }}"
file:
path: "{{ mysql_custom_tmpdir }}"
owner: mysql
group: mysql
mode: "700"
state: directory
tags:
- mysql
- name: Configure tmpdir
ini_file:
2016-12-16 00:26:08 +01:00
dest: /etc/mysql/conf.d/zzz_evolinux.cnf
section: mysqld
option: tmpdir
value: "{{ mysql_custom_tmpdir }}"
notify: restart mysql
tags:
- mysql
when: mysql_custom_tmpdir != ''