ansible-role-postfix/tasks/aliases.yml
2023-04-19 15:30:48 +02:00

14 lines
403 B
YAML

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