Run MTA-STS tasks only on selected hosts

This commit is contained in:
phil 2023-05-03 10:07:29 +02:00
parent 36c2bc159a
commit 9f81479691

View file

@ -34,7 +34,9 @@
ansible.builtin.include_tasks: mta-sts.yml
tags: mta-sts
loop: "{{ postfix_domains }}"
when: postfix_domains is defined
when:
- postfix_domains is defined
- postfix_type == "internet"
args:
apply:
delegate_to: "{{ gateway_host }}"