ansible-roles/postfix/tasks/minimal.yml
William Hirigoyen 7ad296e74f
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
Revert "postfix: Move common packages installation in common.yml"
This reverts commit ec4fd5d27f.
2023-08-31 17:48:00 +02:00

21 lines
507 B
YAML

---
- name: ensure packages are installed
ansible.builtin.apt:
name: postfix
state: present
tags:
- postfix
- name: create minimal main.cf
ansible.builtin.template:
src: evolinux_main.cf.j2
dest: /etc/postfix/main.cf
owner: root
group: root
mode: "0644"
force: true
notify: restart postfix
when: (postfix_force_main_cf | bool) or (postfix_maincf_md5_jessie in default_main_cf.stdout) or (postfix_maincf_md5_stretch in default_main_cf.stdout)
tags:
- postfix