diff options
| author | 2024-07-29 19:38:45 +0100 | |
|---|---|---|
| committer | 2024-07-31 13:25:54 +0100 | |
| commit | 15c91279d150acd352b10b2700d9077de47feaae (patch) | |
| tree | 7c26f37fbc8c4fcbf29805807a155c89c55fbad6 | |
| parent | postfix: add handler for regenerating aliases (diff) | |
postfix: template virtual address table and regenerate on changes
| -rw-r--r-- | ansible/roles/postfix/tasks/main.yml | 13 | 
1 files changed, 13 insertions, 0 deletions
diff --git a/ansible/roles/postfix/tasks/main.yml b/ansible/roles/postfix/tasks/main.yml index 2e843e5..1c00777 100644 --- a/ansible/roles/postfix/tasks/main.yml +++ b/ansible/roles/postfix/tasks/main.yml @@ -52,3 +52,16 @@      - role::postfix    notify:      - Reload postfix + +- name: Copy virtual address table +  template: +    src: virtual.j2 +    dest: /etc/postfix/virtual +    owner: root +    group: root +    mode: "0644" +  tags: +    - role::postfix +  notify: +    - Regenerate virtual table +    - Reload postfix  |