nginx/server: Disaable system logrotate on OpenBSD
This commit is contained in:
parent
f9f194b3a2
commit
287e8264fc
1 changed files with 10 additions and 0 deletions
|
@ -35,6 +35,16 @@
|
|||
group: "{{ ansible_wheel }}"
|
||||
notify: restart nginx
|
||||
|
||||
- name: disable system log rotate
|
||||
lineinfile:
|
||||
path: /etc/newsyslog.conf
|
||||
state: absent
|
||||
regexp: '^/var/www/logs/{{ item }}\s+.*'
|
||||
with_items:
|
||||
- access.log
|
||||
- error.log
|
||||
when: ansible_os_family == "OpenBSD"
|
||||
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1725248
|
||||
- block:
|
||||
- name: create drop-in directory for service
|
||||
|
|
Loading…
Add table
Reference in a new issue