Browse Source

Rename mail_virtual_domains to only virtual_domains, will later also use for web.

Thomas Buck 5 years ago
parent
commit
e452e31e42

+ 3
- 2
group_vars/sovereign View File

@@ -12,10 +12,11 @@ organization: (required)
12 12
 # fail2ban reports will be sent to this address
13 13
 admin_email: "{{ main_user_name }}@{{ domain }}"
14 14
 
15
-# mail
16
-mail_virtual_domains:
15
+virtual_domains:
17 16
   - name: "{{ domain }}"
18 17
     pk_id: 1
18
+
19
+# mail
19 20
 mail_virtual_users:
20 21
   - account: "{{ main_user_name }}"
21 22
     domain: "{{ domain }}"

+ 1
- 1
roles/mailserver/tasks/dovecot.yml View File

@@ -24,7 +24,7 @@
24 24
 
25 25
 - name: Ensure mail domain directories are in place
26 26
   file: state=directory path=/data/{{ item.name }} owner=vmail group=dovecot mode=0770
27
-  with_items: '{{ mail_virtual_domains }}'
27
+  with_items: '{{ virtual_domains }}'
28 28
 
29 29
 - name: Ensure mail directories are in place
30 30
   file: state=directory path=/data/{{ item.domain }}/{{ item.account }} owner=vmail group=dovecot

+ 1
- 1
roles/mailserver/tasks/rspamd.yml View File

@@ -53,7 +53,7 @@
53 53
   args:
54 54
     creates: /var/lib/rspamd/dkim/{{ item.name }}.default.key
55 55
     chdir: /var/lib/rspamd/dkim/
56
-  with_items: "{{ mail_virtual_domains }}"
56
+  with_items: "{{ virtual_domains }}"
57 57
 
58 58
 - name: Start redis
59 59
   service: name=redis-server state=started

+ 1
- 1
roles/mailserver/templates/mailserver.sql.j2 View File

@@ -35,7 +35,7 @@ CREATE TABLE IF NOT EXISTS "virtual_aliases" (
35 35
 
36 36
 CREATE INDEX source_idx ON virtual_aliases (source);
37 37
 
38
-{% for virtual_domain in mail_virtual_domains %}
38
+{% for virtual_domain in virtual_domains %}
39 39
 INSERT INTO "virtual_domains" ("id", "name")
40 40
         VALUES ('{{ virtual_domain.pk_id }}', '{{ virtual_domain.name }}');
41 41
 {% endfor %}

Loading…
Cancel
Save