forked from evolix/ansible-roles
postfix: add lines in /etc/.gitignore
This commit is contained in:
parent
02fdbb9126
commit
8a498bb3a3
|
@ -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
22
postfix/tasks/common.yml
Normal 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
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue