added proxy
diff --git a/tasks/main.yml b/tasks/main.yml
index 70ae686..5960627 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -9,20 +9,13 @@
   ignore_errors: yes
   shell: 'yum clean all'
 
-- name: Remove apigee, edge, baas and qpid packages
-  become: yes
-  ignore_errors: yes
-  yum:
-    name: '{{ item }}'
-    state: absent
-  with_items:
-  - apigee*
-  - edge*
-  - baas*
-  - qpid*
-  - python-qpid-*
-  - libdb-cxx-*
-  - nginx-*
+- name: Use no proxy definitions
+  include: no_proxy.yml
+  when: http_proxy is not defined and https_proxy is not defined
+
+- name: Use proxy definitions
+  include: with_proxy.yml
+  when: http_proxy is defined and https_proxy is defined
 
 - name: Set target bootstrap script name for 4.16.01
   set_fact:
diff --git a/tasks/no_proxy.yml b/tasks/no_proxy.yml
new file mode 100644
index 0000000..250f920
--- /dev/null
+++ b/tasks/no_proxy.yml
@@ -0,0 +1,15 @@
+---
+- name: Remove apigee, edge, baas and qpid packages
+  become: yes
+  ignore_errors: yes
+  yum:
+    name: '{{ item }}'
+    state: absent
+  with_items:
+  - apigee*
+  - edge*
+  - baas*
+  - qpid*
+  - python-qpid-*
+  - libdb-cxx-*
+  - nginx-*
diff --git a/tasks/with_proxy.yml b/tasks/with_proxy.yml
new file mode 100644
index 0000000..858ff67
--- /dev/null
+++ b/tasks/with_proxy.yml
@@ -0,0 +1,18 @@
+---
+- name: Remove apigee, edge, baas and qpid packages
+  become: yes
+  ignore_errors: yes
+  yum:
+    name: '{{ item }}'
+    state: absent
+  with_items:
+  - apigee*
+  - edge*
+  - baas*
+  - qpid*
+  - python-qpid-*
+  - libdb-cxx-*
+  - nginx-*
+  environment:
+    http_proxy: "{{ http_proxy }}"
+    https_proxy: "{{ https_proxy }}"