change record type to dkim

This commit is contained in:
Antonio J. Delgado 2023-09-18 19:03:28 +03:00
parent ce1745cd29
commit 7bbf3f7667
2 changed files with 15 additions and 15 deletions

View file

@ -39,21 +39,21 @@
backup: true
notify: Restart OpenDKIM service
- name: Configure OpenDKIM domains
lineinfile:
path: /etc/opendkim.conf
regexp: '^Domain '
line: "Domain {{ domains|join(',') }}"
backup: true
notify: Restart OpenDKIM service
# - name: Configure OpenDKIM domains
# lineinfile:
# path: /etc/opendkim.conf
# regexp: '^Domain '
# line: "Domain {{ mail_domains|join(',') }}"
# backup: true
# notify: Restart OpenDKIM service
- name: Configure OpenDKIM key file
lineinfile:
path: /etc/opendkim.conf
regexp: '^KeyFile '
line: "KeyFile /etc/dkimkeys/{{ domains[0] }}.private"
backup: true
notify: Restart OpenDKIM service
# - name: Configure OpenDKIM key file
# lineinfile:
# path: /etc/opendkim.conf
# regexp: '^KeyFile '
# line: "KeyFile /etc/dkimkeys/{{ mail_domains[0] }}.private"
# backup: true
# notify: Restart OpenDKIM service
- name: Configure OpenDKIM selector
lineinfile:

View file

@ -21,7 +21,7 @@
synthesio.ovh.domain:
domain: "{{ item }}"
value: "{{ dkim_key }}"
record_type: "TXT"
record_type: "DKIM"
name: '_domainkey'
record_ttl: 10
append: true