mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2025-01-09 19:30:18 +01:00
Verify that datadir has been created and selinux context set. Currently
selinux context set separately because I'm not sure that Ubuntu has it installed in all cases.
This commit is contained in:
parent
64a7b7357a
commit
1e75c2f3e3
1 changed files with 13 additions and 0 deletions
|
@ -33,6 +33,19 @@
|
|||
file: "path={{ mysql_slow_query_log_file }} state=touch"
|
||||
when: mysql_slow_query_log_enabled
|
||||
|
||||
- name: Create datadir if it does not exist
|
||||
file:
|
||||
path: "{{ mysql_datadir }}"
|
||||
state: directory
|
||||
owner: mysql
|
||||
group: mysql
|
||||
mode: 0755
|
||||
|
||||
- name: Set selinux context on datadir
|
||||
file:
|
||||
path: "{{ mysql_datadir }}"
|
||||
setype: mysqld_db_t
|
||||
|
||||
- name: Set ownership on slow query log file (if configured).
|
||||
file:
|
||||
path: "{{ mysql_slow_query_log_file }}"
|
||||
|
|
Loading…
Reference in a new issue