dehydrated: duplicated domains

This commit is contained in:
Geno 2021-01-13 03:13:58 +01:00
parent 6ebdf268d2
commit cf9084c620
1 changed files with 3 additions and 1 deletions

View File

@ -3,7 +3,9 @@
when: mailserver_mx_domain != "" when: mailserver_mx_domain != ""
lineinfile: lineinfile:
path: /etc/dehydrated/domains.txt path: /etc/dehydrated/domains.txt
line: "{{ mailserver_mx_domain }}" regexp: '(.+){{ mailserver_mx_domain }}(.*)?'
line: '\1{{ mailserver_mx_domain }}\2'
backrefs: yes
- name: website - nginx domain - name: website - nginx domain
notify: reload nginx notify: reload nginx