Updated to work with yum config.
diff --git a/tasks/with_no_proxy.yml b/tasks/with_no_proxy.yml
index 656ea66..5c28d00 100644
--- a/tasks/with_no_proxy.yml
+++ b/tasks/with_no_proxy.yml
@@ -1,5 +1,11 @@
---
# tasks file for apigee-opdk-setup-os
+- name: Update EPEL with no proxy
+ yum:
+ name: "https://dl.fedoraproject.org/pub/epel/epel-release-latest-{{ ansible_distribution_major_version }}.noarch.rpm"
+ state: present
+
+
- name: Update basic yum os packages
become: yes
yum:
diff --git a/tasks/with_proxy.yml b/tasks/with_proxy.yml
index c48e376..78298fe 100644
--- a/tasks/with_proxy.yml
+++ b/tasks/with_proxy.yml
@@ -1,5 +1,14 @@
---
+- name: Update EPEL with proxy
+ yum:
+ name: "https://dl.fedoraproject.org/pub/epel/epel-release-latest-{{ ansible_distribution_major_version }}.noarch.rpm"
+ state: present
+ environment:
+ http_proxy: "{{ http_proxy }}"
+ https_proxy: "{{ https_proxy }}"
+ no_proxy: "{{ no_proxy }}"
+
- name: Update basic yum os packages
become: yes
yum: