Kaynağa Gözat

Update variable for postfix install (with_smtp -> with_postfix)

Emmanuel Bouthenot 11 yıl önce
ebeveyn
işleme
520c9d599d
2 değiştirilmiş dosya ile 4 ekleme ve 4 silme
  1. 1 1
      group_vars/all
  2. 3 3
      roles/common/tasks/smtp.yml

+ 1 - 1
group_vars/all

@@ -24,7 +24,7 @@ with_chkrootkit: True
 
 with_smartd: False
 
-with_smtp: False
+with_postfix: False
 with_mail_aliases: False
 
 with_ssh: True

+ 3 - 3
roles/common/tasks/smtp.yml

@@ -1,15 +1,15 @@
 - name: Install postfix packages
   action: apt pkg=postfix state=installed update_cache=yes
-  when_boolean: ${with_smtp}
+  when_boolean: ${with_postfix}
 
 - name: Install mail aliases file
   action: template src=aliases.j2 dest=/etc/aliases owner=root group=root mode=0644
   notify:
     - Regenerate aliases cache
-  when_boolean: ${with_smtp} or ${with_mail_aliases}
+  when_boolean: ${with_postfix} or ${with_mail_aliases}
 
 - name: Install postfix main configuration
   action: template src=postfix/main.cf.j2 dest=/etc/postfix/main.cf owner=root group=root mode=0644
   notify:
     - Restart postfix
-  when_boolean: ${with_smtp}
+  when_boolean: ${with_postfix}