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
|
- name: check if main.cf is default
|
||||||
ansible.builtin.shell:
|
ansible.builtin.shell:
|
||||||
cmd: 'grep -v -E "^(myhostname|mydestination|mailbox_command)" /etc/postfix/main.cf | md5sum -'
|
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
|
- name: create minimal main.cf
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
---
|
---
|
||||||
- name: ensure packages are installed
|
- name: Complementary packmail packages are installed
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
name:
|
name:
|
||||||
- postfix
|
|
||||||
- postfix-ldap
|
- postfix-ldap
|
||||||
- postfix-policyd-spf-python
|
- postfix-policyd-spf-python
|
||||||
- mailgraph
|
|
||||||
state: present
|
state: present
|
||||||
tags:
|
tags:
|
||||||
- postfix
|
- postfix
|
||||||
|
|
Loading…
Reference in a new issue