Revert "postfix: Move common packages installation in common.yml"
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |2624|23|2601|18|:-1: Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/338//ansiblelint">Evolix » ansible-roles » unstable #338</a>
gitea/ansible-roles/pipeline/head This commit looks good

This reverts commit ec4fd5d27f.
This commit is contained in:
William Hirigoyen 2023-08-31 17:48:00 +02:00
parent 1b6700925c
commit 7ad296e74f
3 changed files with 9 additions and 10 deletions

View file

@ -1,14 +1,5 @@
---
- 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,4 +1,10 @@
---
- 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,9 +1,11 @@
---
- name: Complementary packmail packages are installed
- name: ensure packages are installed
ansible.builtin.apt:
name:
- postfix
- postfix-ldap
- postfix-policyd-spf-python
- mailgraph
state: present
tags:
- postfix