forked from evolix/ansible-roles
etc-git: install a script to optimize the repository each month
This commit is contained in:
parent
6077986204
commit
3e3c6437e8
|
@ -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
|
||||
|
|
3
etc-git/files/optimize-etc-git
Normal file
3
etc-git/files/optimize-etc-git
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
git --git-dir /etc/.git gc --quiet
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue