nginx/server: Disaable system logrotate on OpenBSD

This commit is contained in:
Timo Makinen 2021-09-16 17:32:25 +00:00
parent f9f194b3a2
commit 287e8264fc

View file

@ -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