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