summaryrefslogtreecommitdiff
path: root/roles/web/tasks/logrotate.yml
diff options
context:
space:
mode:
authorDmitry Ilvokhin <d@ilvokhin.com>2023-12-21 16:37:22 +0000
committerDmitry Ilvokhin <d@ilvokhin.com>2023-12-21 16:37:22 +0000
commit074a92bc1571cf5f1d039cea2348d8b134aa1f75 (patch)
treec703e9d55c6966a93b78b32ee9b6932c4048d7f5 /roles/web/tasks/logrotate.yml
parentb615331899acdf1ef51fc36d5b7f3eace057734c (diff)
downloadinfra-074a92bc1571cf5f1d039cea2348d8b134aa1f75.tar.gz
infra-074a92bc1571cf5f1d039cea2348d8b134aa1f75.tar.bz2
infra-074a92bc1571cf5f1d039cea2348d8b134aa1f75.zip
Enable logrotate for nginx logs
Diffstat (limited to 'roles/web/tasks/logrotate.yml')
-rw-r--r--roles/web/tasks/logrotate.yml11
1 files changed, 11 insertions, 0 deletions
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