]> git.phdru.name Git - ansible.git/commitdiff
Remove `monthly-truncate-logs`
authorOleg Broytman <phd@phdru.name>
Sat, 31 Aug 2019 22:14:39 +0000 (01:14 +0300)
committerOleg Broytman <phd@phdru.name>
Sat, 31 Aug 2019 22:14:39 +0000 (01:14 +0300)
It's simple to implement this as a shell and run from cron.

playbooks/monthly-truncate-logs.yml [deleted file]

diff --git a/playbooks/monthly-truncate-logs.yml b/playbooks/monthly-truncate-logs.yml
deleted file mode 100644 (file)
index 61c1472..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-- name: Truncate Linux logs monthly
-  hosts: "{{ hosts | default('all') }}"
-  gather_facts: false
-  tasks:
-    - name: Truncate mail logs
-      copy:
-        content: ''
-        dest: "{{ item }}"
-      loop: ['~/mail/procmail.log', '~/mail/sent-mail']