ansible-role-postfix/tasks/aliases.yml

15 lines
388 B
YAML
Raw Normal View History

---
- name: "Aliases | Copy lookup tables from templates"
ansible.builtin.template:
2023-03-24 15:30:27 +01:00
src: postfix/conf.d/virtual_aliases.j2
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