ansible-role-postfix/tasks/aliases.yml
2023-03-24 17:36:15 +01:00

14 lines
385 B
YAML

---
- name: "Aliases | Copy lookup tables from templates"
ansible.builtin.template:
src: postfix/conf.d/virtual_aliases
dest: "{{ postfix_conf_dir }}/"
mode: "0644"
notify: reload postfix
- name: "Domains | Run postmap"
ansible.builtin.command: "postmap cdb:virtual_aliases"
args:
chdir: "{{ postfix_conf_dir }}"
changed_when: false
notify: reload postfix