ansible-roles/postfix/tasks/common.yml

24 lines
507 B
YAML
Raw Normal View History

2018-02-04 11:49:14 +01:00
---
- name: check if main.cf is default
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
ansible.builtin.lineinfile:
2018-02-04 11:49:14 +01:00
dest: /etc/.gitignore
line: '{{ item }}'
state: present
create: no
loop:
2018-02-04 11:49:14 +01:00
- "postfix/sa-blacklist.access"
- "postfix/*.db"
tags:
- postfix
- etc-git