Sfoglia il codice sorgente

Fix bare variable depreciation

Newer versions of Ansible complain when using bare variables like
`mail_virtual_users` and prefer the newer `'{{ mail_virtual_users }}'`
syntax.

Noticed the depreciation warning with Ansible version 2.1.2.0.
Simon Schoeters 7 anni fa
parent
commit
dbf0c05d88
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2
    2
      roles/mailserver/tasks/dovecot.yml

+ 2
- 2
roles/mailserver/tasks/dovecot.yml Vedi File

@@ -23,11 +23,11 @@
23 23
 
24 24
 - name: Ensure mail domain directories are in place
25 25
   file: state=directory path=/decrypted/{{ item.name }} owner=vmail group=dovecot mode=0770
26
-  with_items: mail_virtual_domains
26
+  with_items: '{{ mail_virtual_domains }}'
27 27
 
28 28
 - name: Ensure mail directories are in place
29 29
   file: state=directory path=/decrypted/{{ item.domain }}/{{ item.account }} owner=vmail group=dovecot
30
-  with_items: mail_virtual_users
30
+  with_items: '{{ mail_virtual_users }}'
31 31
 
32 32
 - name: Copy dovecot.conf into place
33 33
   copy: src=etc_dovecot_dovecot.conf dest=/etc/dovecot/dovecot.conf

Loading…
Annulla
Salva