etc-git: install a script to optimize the repository each month

This commit is contained in:
Jérémy Lecour 2018-08-24 00:28:15 +02:00
parent 6077986204
commit 3e3c6437e8
3 changed files with 13 additions and 0 deletions

View File

@ -18,6 +18,7 @@ The **patch** part changes incrementally at each release.
* evocheck: the crontab is updated by the role (default: `True`)
* evolinux-base: add mail related aliases
* fail2ban: add a variable to disable the ssh filter (default: `False`)
* etc-git: install a script to optimize the repository each month
* fail2ban: add a variable to update the list of ignored IP addresses/blocs (default: `False`)
* generate-ldif: detect installed packages even if "held" by APT
* java: support for Oracle JRE

View File

@ -0,0 +1,3 @@
#!/bin/sh
git --git-dir /etc/.git gc --quiet

View File

@ -65,3 +65,12 @@
when: git_log.rc != 0 or (git_init is defined and git_init.changed)
tags:
- etc-git
- name: Optimize script is installed in monthly crontab
copy:
src: optimize-etc-git
dest: /etc/cron.monthly/optimize-etc-git
mode: "0750"
force: no
tags:
- etc-git