forked from evolix/ansible-roles
postfix: Move common packages installation in common.yml
This commit is contained in:
parent
73c0a0d29a
commit
ec4fd5d27f
|
@ -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 -'
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue