2024-09-28 12:40:58 +02:00
|
|
|
---
|
|
|
|
|
2024-11-01 16:42:54 +01:00
|
|
|
- name: Initiate dmarc_txt_records dict
|
2024-09-28 12:40:58 +02:00
|
|
|
ansible.builtin.set_fact:
|
2024-11-01 16:42:54 +01:00
|
|
|
dmarc_txt_records: {}
|
|
|
|
|
|
|
|
- name: Set DMARC TXT records
|
|
|
|
loop: "{{ virtual_domains }}"
|
|
|
|
loop_control:
|
|
|
|
loop_var: domain
|
|
|
|
ansible.builtin.set_fact:
|
|
|
|
dmarc_txt_records: "{{ dmarc_txt_records | combine({domain: '_dmarc.' + domain + '. IN TXT \"v=DMARC1; p=reject; pct=100; adkim=s; rua=mailto:postmaster@' + domain + '\"'}) }}"
|