ansible-role-postfix/tasks/virtual_domains.yml
phil 822dfdb408 Create single virtual domain task
for use in other playbooks
2023-03-24 13:19:22 +01:00

14 lines
412 B
YAML

---
- 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