updated https logic and use of apigee_repo
diff --git a/tasks/main.yml b/tasks/main.yml
index fee6f6c..4059710 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -3,8 +3,10 @@
 
 - name: Update basic yum os packages with no proxy
   include: with_no_proxy.yml
-  when: http_proxy is not defined and https_proxy is not defined
+  when: https_proxy is not defined or https_proxy | trim == '' and http_proxy is not defined or http_proxy | trim == ''
+  when: (https_proxy is not defined or https_proxy | trim == '') and (http_proxy is not defined or http_proxy | trim == '')
+
 
 - name: Update basic yum os packages with proxy
   include: with_proxy.yml
-  when: http_proxy is defined and https_proxy is defined
+  when: https_proxy is defined and https_proxy | trim != '' and http_proxy is defined and http_proxy | trim != ''