--- - name: Create the acme hooks directory if it does not exist file: dest=/usr/lib/acme/hooks state=directory tags: [ 'postfix', 'postfix-relay', 'postfix_letsencrypt', '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', 'postfix_letsencrypt', 'letsencrypt' ]