Small example on how to set up letsencrypt with nginx and ansible.
- Include nginx snippet in default configuration and configuration of every vhost you would like to have letsencrypt enabled for
- Make sure nginx is reloaded before letsencrypt role (protip:
- meta: flush_handlers
) - Use
playbook.yml
as a further example.