updated https logic and use of apigee_repo
diff --git a/tasks/main.yml b/tasks/main.yml
index c506a37..4541738 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -2,8 +2,9 @@
 # tasks file for apigee-opdk-setup-local-repository
 - name: Install the local mirror with no proxy
   include: with_no_proxy.yml
-  when: https_proxy is not defined and http_proxy is not defined
+  when: https_proxy is defined and https_proxy | trim != '' and http_proxy is defined and http_proxy | trim != ''
+
 
 - name: Install the local mirror with no proxy
   include: with_proxy.yml
-  when: https_proxy is defined and http_proxy is defined
+  when: (https_proxy is not defined or https_proxy | trim == '') and (http_proxy is not defined or http_proxy | trim == '')