Skip to content

Commit

Permalink
Install etckeeper and run hourly
Browse files Browse the repository at this point in the history
This automatically logs all changes made to /etc in git and is
useful for debugging purposes, while it doesn't hurt.
  • Loading branch information
eldering authored and nickygerritsen committed May 12, 2024
1 parent 1ca5b59 commit e137e03
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ INSTALLED_PACKAGES:
- debootstrap
- default-jdk-headless
- efibootmgr
- etckeeper
- fontconfig
- g++
- gcc
Expand Down
6 changes: 6 additions & 0 deletions provision-contest/ansible/roles/system_fixes/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,11 @@
line: 'DNS=8.8.8.8'
notify: Reboot the machine

- name: Enable etckeeper autocommits every hour
file:
src: /etc/cron.daily/etckeeper
dest: /etc/cron.hourly/etckeeper
state: link

- name: Flush handlers
meta: flush_handlers

0 comments on commit e137e03

Please sign in to comment.