change record type to dkim
This commit is contained in:
parent
ce1745cd29
commit
7bbf3f7667
2 changed files with 15 additions and 15 deletions
|
@ -39,21 +39,21 @@
|
||||||
backup: true
|
backup: true
|
||||||
notify: Restart OpenDKIM service
|
notify: Restart OpenDKIM service
|
||||||
|
|
||||||
- name: Configure OpenDKIM domains
|
# - name: Configure OpenDKIM domains
|
||||||
lineinfile:
|
# lineinfile:
|
||||||
path: /etc/opendkim.conf
|
# path: /etc/opendkim.conf
|
||||||
regexp: '^Domain '
|
# regexp: '^Domain '
|
||||||
line: "Domain {{ domains|join(',') }}"
|
# line: "Domain {{ mail_domains|join(',') }}"
|
||||||
backup: true
|
# backup: true
|
||||||
notify: Restart OpenDKIM service
|
# notify: Restart OpenDKIM service
|
||||||
|
|
||||||
- name: Configure OpenDKIM key file
|
# - name: Configure OpenDKIM key file
|
||||||
lineinfile:
|
# lineinfile:
|
||||||
path: /etc/opendkim.conf
|
# path: /etc/opendkim.conf
|
||||||
regexp: '^KeyFile '
|
# regexp: '^KeyFile '
|
||||||
line: "KeyFile /etc/dkimkeys/{{ domains[0] }}.private"
|
# line: "KeyFile /etc/dkimkeys/{{ mail_domains[0] }}.private"
|
||||||
backup: true
|
# backup: true
|
||||||
notify: Restart OpenDKIM service
|
# notify: Restart OpenDKIM service
|
||||||
|
|
||||||
- name: Configure OpenDKIM selector
|
- name: Configure OpenDKIM selector
|
||||||
lineinfile:
|
lineinfile:
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
synthesio.ovh.domain:
|
synthesio.ovh.domain:
|
||||||
domain: "{{ item }}"
|
domain: "{{ item }}"
|
||||||
value: "{{ dkim_key }}"
|
value: "{{ dkim_key }}"
|
||||||
record_type: "TXT"
|
record_type: "DKIM"
|
||||||
name: '_domainkey'
|
name: '_domainkey'
|
||||||
record_ttl: 10
|
record_ttl: 10
|
||||||
append: true
|
append: true
|
||||||
|
|
Loading…
Reference in a new issue