forked from evolix/ansible-roles
23 lines
472 B
YAML
23 lines
472 B
YAML
---
|
|
|
|
- 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
|