jdauphant / ansible-role-nginx

Ansible role to install and manage nginx configuration
655 stars 302 forks source link

Add possibility to not enable the sites that we don't want to be enabled #201

Closed inponomarev closed 6 years ago

inponomarev commented 6 years ago

Sometimes it's feasible to leave site not enabled after running nginx role.

E. g. if we want to use nginx role to pre-configure the site, then automatically obtain an ssl certificate via letsencrypt (that requires nginx to be running) and do some additional configuration steps before we finally enable the site.

If a site is mentioned in nginx_disabled_sites list, then no link to .conf file is created from 'sites-availiable' to 'sites-enabled'.

jdauphant commented 6 years ago

@inponomarev Thanks