postfix: add lines in /etc/.gitignore

This commit is contained in:
Jérémy Lecour 2018-02-04 11:49:14 +01:00 committed by Jérémy Lecour
parent 02fdbb9126
commit 8a498bb3a3
3 changed files with 27 additions and 7 deletions

View file

@ -10,6 +10,9 @@ The **patch** part changes incrmentally at each release.
## [Unreleased]
### Added
* postfix: add lines in /etc/.gitignore
## [9.1.6] - 2018-02-02
### Added

22
postfix/tasks/common.yml Normal file
View file

@ -0,0 +1,22 @@
---
- name: check if main.cf is default
shell: 'grep -v -E "^(myhostname|mydestination|mailbox_command)" /etc/postfix/main.cf | md5sum -'
changed_when: False
check_mode: no
register: default_main_cf
tags:
- postfix
- name: add lines in /etc/.gitignore
lineinfile:
dest: /etc/.gitignore
line: '{{ item }}'
state: present
create: no
with_items:
- "postfix/sa-blacklist.access"
- "postfix/*.db"
tags:
- postfix
- etc-git

View file

@ -1,11 +1,6 @@
---
- name: check if main.cf is default
shell: 'grep -v -E "^(myhostname|mydestination|mailbox_command)" /etc/postfix/main.cf | md5sum -'
changed_when: False
check_mode: no
register: default_main_cf
tags:
- postfix
- include: common.yml
- include: minimal.yml
when: postfix_packmail == False