postfix: Move common packages installation in common.yml

This commit is contained in:
William Hirigoyen 2023-08-31 17:02:54 +02:00
parent 73c0a0d29a
commit ec4fd5d27f
3 changed files with 10 additions and 9 deletions

View file

@ -1,5 +1,14 @@
---
- name: Postfix packages are installed
ansible.builtin.apt:
name:
- postfix
- mailgraph
state: present
tags:
- postfix
- name: check if main.cf is default
ansible.builtin.shell:
cmd: 'grep -v -E "^(myhostname|mydestination|mailbox_command)" /etc/postfix/main.cf | md5sum -'

View file

@ -1,10 +1,4 @@
---
- name: ensure packages are installed
ansible.builtin.apt:
name: postfix
state: present
tags:
- postfix
- name: create minimal main.cf
ansible.builtin.template:

View file

@ -1,11 +1,9 @@
---
- name: ensure packages are installed
- name: Complementary packmail packages are installed
ansible.builtin.apt:
name:
- postfix
- postfix-ldap
- postfix-policyd-spf-python
- mailgraph
state: present
tags:
- postfix