---
- name: Create the acme hooks directory if it does not exist
  file: dest=/usr/lib/acme/hooks/postfix state=directory
  tags: [ 'postfix', 'postfix-relay', 'letsencrypt' ]

- name: Install a hook for letsencrypt
  template: src=postfix-letsencrypt-hook dest=/usr/lib/acme/hooks/postfix owner=root group=root mode=4555
  tags: [ 'postfix', 'postfix-relay', 'letsencrypt' ]