apache: Add logsync support
This commit is contained in:
parent
855234f77c
commit
e6e8fd835d
1 changed files with 15 additions and 0 deletions
|
@ -67,6 +67,21 @@
|
|||
group: "{{ ansible_wheel }}"
|
||||
notify: restart apache
|
||||
|
||||
- name: fix log directory permissions
|
||||
file:
|
||||
path: /var/log/httpd
|
||||
state: directory
|
||||
mode: 0755
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
|
||||
- import_role:
|
||||
name: sftpuser
|
||||
vars:
|
||||
chroot: "/var/log/httpd"
|
||||
user: logsync
|
||||
publickeys: "{{ logsync_publickeys }}"
|
||||
|
||||
- name: enable apache
|
||||
service:
|
||||
name: httpd
|
||||
|
|
Loading…
Add table
Reference in a new issue