From d24a1b61cdb731dd478380949ab08868c24e6831 Mon Sep 17 00:00:00 2001 From: Thiago Gomes Verissimo Date: Thu, 20 May 2021 09:06:57 -0300 Subject: [PATCH] Optionally not deactivate other sites. Fix #46 (#47) --- defaults/main.yml | 6 ++++++ tasks/main.yml | 2 ++ 2 files changed, 8 insertions(+) diff --git a/defaults/main.yml b/defaults/main.yml index f9aee1e..dc8e63a 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -16,3 +16,9 @@ nginx_revproxy_sites: # List of sites to letsencrypt_email: "" # Set email for letencrypt cert nginx_revproxy_certbot_auto: false + +# Remove WebRoot Sites +nginx_revproxy_remove_webroot_sites: true + +# De-activate Sites +nginx_revproxy_de_activate_sites: true diff --git a/tasks/main.yml b/tasks/main.yml index c8d42d1..6e32876 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -125,6 +125,7 @@ notify: Reload Nginx when: - item not in nginx_revproxy_sites + - nginx_revproxy_de_activate_sites tags: - nginxrevproxy @@ -187,6 +188,7 @@ notify: Reload Nginx when: - item not in nginx_revproxy_sites + - nginx_revproxy_remove_webroot_sites tags: - nginxrevproxy