etc-git: some entries of .gitignore are mandatory

This commit is contained in:
Jérémy Lecour 2018-08-24 14:44:51 +02:00 committed by Jérémy Lecour
parent fe064c16d1
commit d138c00db8
3 changed files with 17 additions and 6 deletions

View File

@ -30,6 +30,7 @@ The **patch** part changes incrementally at each release.
* nagios-nrpe: add check_postgrey
### Changed
* etc-git: some entries of .gitignore are mandatory
* evocheck: update upstream script
* evolinux-base: improve hostname configuration (real vs. internal)
* evolinux-base: use the "evolinux-todo" role

View File

@ -1,5 +1 @@
aliases.db
*.swp
postfix/sa-blacklist.access
postfix/*.db
postfix/spamd.cidr
# Default /etc/.gitignore file

View File

@ -26,7 +26,7 @@
tags:
- etc-git
- name: /etc/.git is secure
- name: /etc/.git is restricted to root
file:
path: /etc/.git
owner: root
@ -41,6 +41,20 @@
dest: /etc/.gitignore
owner: root
mode: "0600"
force: no
tags:
- etc-git
- name: Some entries MUST be in the /etc/.gitignore file
lineinfile:
dest: /etc/.gitignore
line: "{{ item }}"
with_items:
- "aliases.db"
- "*.swp"
- "postfix/sa-blacklist.access"
- "postfix/*.db"
- "postfix/spamd.cidr"
tags:
- etc-git