2023-03-24 14:56:37 +01:00
|
|
|
---
|
|
|
|
- name: "Aliases | Copy lookup tables from templates"
|
|
|
|
ansible.builtin.template:
|
2023-04-19 12:58:19 +02:00
|
|
|
src: postfix/conf.d/virtual_aliases.j2
|
2023-04-19 15:30:48 +02:00
|
|
|
dest: "{{ postfix_conf_dir }}/virtual_aliases"
|
2023-03-24 14:56:37 +01:00
|
|
|
mode: "0644"
|
|
|
|
notify: reload postfix
|
|
|
|
|
2023-04-19 15:30:48 +02:00
|
|
|
- name: "Aliases | Run postmap"
|
2023-03-24 14:56:37 +01:00
|
|
|
ansible.builtin.command: "postmap cdb:virtual_aliases"
|
|
|
|
args:
|
|
|
|
chdir: "{{ postfix_conf_dir }}"
|
|
|
|
changed_when: false
|
|
|
|
notify: reload postfix
|