2018-02-04 11:49:14 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: check if main.cf is default
|
2023-03-20 23:33:19 +01:00
|
|
|
ansible.builtin.shell:
|
|
|
|
cmd: 'grep -v -E "^(myhostname|mydestination|mailbox_command)" /etc/postfix/main.cf | md5sum -'
|
2018-02-04 11:49:14 +01:00
|
|
|
changed_when: False
|
|
|
|
check_mode: no
|
|
|
|
register: default_main_cf
|
|
|
|
tags:
|
|
|
|
- postfix
|
|
|
|
|
|
|
|
- name: add lines in /etc/.gitignore
|
2023-03-20 23:33:19 +01:00
|
|
|
ansible.builtin.lineinfile:
|
2018-02-04 11:49:14 +01:00
|
|
|
dest: /etc/.gitignore
|
|
|
|
line: '{{ item }}'
|
|
|
|
state: present
|
|
|
|
create: no
|
2021-05-04 14:18:40 +02:00
|
|
|
loop:
|
2018-02-04 11:49:14 +01:00
|
|
|
- "postfix/sa-blacklist.access"
|
|
|
|
- "postfix/*.db"
|
|
|
|
tags:
|
|
|
|
- postfix
|
|
|
|
- etc-git
|