Skip to content
Snippets Groups Projects
Commit 16432793 authored by Lars Beckers's avatar Lars Beckers
Browse files

postfix: add missing conditions on templated configs

parent cbd89e00
Branches
No related tags found
1 merge request!16Minimal Viable FSMPI Deployment
......@@ -32,10 +32,35 @@
src: "{{ item }}.j2"
dest: "/etc/postfix/{{ item }}"
with_items:
- login_maps.pcre
- master.cf
- main.cf
- postscreen_access.cidr
notify:
- restart postfix
tags:
- postfix
- mail
- name: ensure login maps list is present
template:
src: "login_maps.pcre.j2"
dest: "/etc/postfix/login_maps.pcre"
when:
- not postfix_satellite_only
- postfix_enable_dovecot
- not postfix_fsmpi|default(false)
notify:
- restart postfix
tags:
- postfix
- mail
- name: ensure postscreen access list is present
template:
src: "postscreen_access.cidr.j2"
dest: "/etc/postfix/postscreen_access.cidr"
when:
- not postfix_satellite_only
- postfix_enable_postscreen
notify:
- restart postfix
tags:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment