Keep just 2 weeks of Apache logs on Droplet.
authorMatt Birkholz <matt@birchwood-abbey.net>
Sat, 15 Mar 2025 21:15:49 +0000 (16:15 -0500)
committerMatt Birkholz <matt@birchwood-abbey.net>
Sat, 15 Mar 2025 21:15:49 +0000 (16:15 -0500)
README.org
roles_t/abbey-front/tasks/main.yml

index fdb1dc463376f69e15a68c6fa1586f08f3f98fc4..b56ee0d09b681d3fee20f272c2bbdba391dca245 100644 (file)
@@ -474,7 +474,7 @@ rest of the Let's Encrypt configuration is discussed in the following
 ** Configure Apache Log Archival
 
 These tasks hack Apache's ~logrotate(8)~ configuration to rotate
-weekly, keep the last 12 weeks, and email each week's log to ~root~.
+weekly, keep a couple weeks, and email each week's log to ~root~.
 The ~logrotate(8)~ manual page explains the configuration options.
 
 The Systemd configuration drop tells ~logrotate~ to use a special
@@ -494,7 +494,7 @@ The replacement =logrotate-mailer= does, and includes it in a
     line: "{{ item.line }}"
   loop:
   - { regexp: '^ *daily', line: "\tweekly" }
-  - { regexp: '^ *rotate', line: "\trotate 12" }
+  - { regexp: '^ *rotate', line: "\trotate 2" }
 
 - name: Configure Apache log email.
   become: yes
index 1b25a1e9b73dc2d5fa68ac6ace58d8d9a8986076..f5d560ba264b2a8bec6201868e005c018943cbbd 100644 (file)
     line: "{{ item.line }}"
   loop:
   - { regexp: '^ *daily', line: "\tweekly" }
-  - { regexp: '^ *rotate', line: "\trotate 12" }
+  - { regexp: '^ *rotate', line: "\trotate 2" }
 
 - name: Configure Apache log email.
   become: yes