Skip to content
Snippets Groups Projects
Commit 4fe9c748 authored by Leonard Penzer's avatar Leonard Penzer
Browse files

Improve etckeeper

- use chronic to avoid unnecessary mails from cron
- configure git to use less memory - just in case etc got a bit too big
parent beebbd68
No related branches found
Tags
No related merge requests found
...@@ -4,4 +4,23 @@ ...@@ -4,4 +4,23 @@
name: name:
- etckeeper - etckeeper
- git - git
- moreutils
state: present state: present
- name: Set global git config for etckeeper
git_config:
name: "{{ item.name }}"
value: "{{ item.value }}"
loop:
- { name: 'pack.windowMemory', value: '100m' }
- { name: 'pack.packSizeLimit', value: '100m' }
- { name: 'pack.threads', value: '1' }
- name: Modify cron.daily for etckeeper to use chronic
lineinfile:
path: /etc/cron.daily/etckeeper
regexp: '^.*\/etc\/etckeeper\/daily$'
line: ' chronic /etc/etckeeper/daily'
owner: root
group: root
mode: '0755'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment