add lets-encrypt-tiny
[ansible.git] / roles / postfix / tasks / opendkim.yml
index 49543afaf8022930ae668c05bad4bf7616fd256e..1ac9e5a4509a2bd8e2df091b17b7d3b17ba16ae3 100644 (file)
@@ -9,8 +9,8 @@
     dest: /etc/default/opendkim
     src: templates/opendkim.env
 - name: regenerate opendkim service
-  shell: /lib/opendkim/opendkim.service.generate && systemctl daemon-reload
   when: opendkim_env.changed
+  shell: /lib/opendkim/opendkim.service.generate && systemctl daemon-reload
   notify: opendkim
 # tables
 - name: generate opendkim keys