Add configuration for virtual and relay domains and aliases
This commit is contained in:
parent
8d7838ad26
commit
bce2d91ea3
8 changed files with 81 additions and 24 deletions
20
tasks/domains.yml
Normal file
20
tasks/domains.yml
Normal file
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
- name: "Domains | Copy lookup tables from templates"
|
||||
ansible.builtin.template:
|
||||
src: "postfix/conf.d/{{ item }}.j2"
|
||||
dest: "{{ postfix_conf_dir }}/{{ item }}"
|
||||
mode: "0644"
|
||||
notify: reload postfix
|
||||
loop:
|
||||
- relay_domains
|
||||
- virtual_domains
|
||||
|
||||
- name: "Domains | Run postmap"
|
||||
ansible.builtin.command: "postmap cdb:{{ item }}"
|
||||
args:
|
||||
chdir: "{{ postfix_conf_dir }}"
|
||||
changed_when: false
|
||||
notify: reload postfix
|
||||
loop:
|
||||
- relay_domains
|
||||
- virtual_domains
|
Loading…
Add table
Add a link
Reference in a new issue