From 074a92bc1571cf5f1d039cea2348d8b134aa1f75 Mon Sep 17 00:00:00 2001 From: Dmitry Ilvokhin Date: Thu, 21 Dec 2023 16:37:22 +0000 Subject: Enable logrotate for nginx logs --- roles/web/tasks/logrotate.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 roles/web/tasks/logrotate.yml (limited to 'roles/web/tasks/logrotate.yml') diff --git a/roles/web/tasks/logrotate.yml b/roles/web/tasks/logrotate.yml new file mode 100644 index 0000000..9171b40 --- /dev/null +++ b/roles/web/tasks/logrotate.yml @@ -0,0 +1,11 @@ +- name: Install logrotate + ansible.builtin.package: + name: + - logrotate + state: present + +- name: Enable logrotate timer + ansible.builtin.service: + name: logrotate.timer + enabled: yes + state: started -- cgit v1.2.3-70-g09d2