Remove custom http log configurations
This commit is contained in:
parent
ff3d076c20
commit
a49bba39f9
3 changed files with 0 additions and 73 deletions
|
@ -51,49 +51,6 @@
|
|||
group: "{{ ansible_wheel }}"
|
||||
notify: Restart nginx
|
||||
|
||||
- name: Fix logdir permissions
|
||||
ansible.builtin.file:
|
||||
path: "{{ nginx_logdir }}"
|
||||
state: directory
|
||||
mode: 0755
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
|
||||
- name: Disable system log rotate
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/newsyslog.conf
|
||||
state: absent
|
||||
regexp: '^/var/www/logs/{{ item }}\s+.*'
|
||||
with_items:
|
||||
- access.log
|
||||
- error.log
|
||||
when: ansible_os_family == "OpenBSD"
|
||||
|
||||
- name: Install custom logrotate
|
||||
ansible.builtin.template:
|
||||
dest: /usr/local/sbin/nginx-logrotate
|
||||
src: nginx-logrotate.sh
|
||||
mode: 0755
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
when: ansible_os_family == "OpenBSD"
|
||||
|
||||
- name: Add logrotate cron job
|
||||
ansible.builtin.cron:
|
||||
name: nginx-logrotate
|
||||
hour: "0"
|
||||
minute: "0"
|
||||
job: /usr/local/sbin/nginx-logrotate
|
||||
when: ansible_os_family == "OpenBSD"
|
||||
|
||||
- name: Import sftpuser role
|
||||
ansible.builtin.import_role:
|
||||
name: sftpuser
|
||||
vars:
|
||||
chroot: "{{ nginx_logdir }}"
|
||||
user: logsync
|
||||
publickeys: "{{ logsync_publickeys }}"
|
||||
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1725248
|
||||
- name: Create drop-in directory for service
|
||||
ansible.builtin.file:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue