Updated to work with yum config.
diff --git a/tasks/with_no_proxy.yml b/tasks/with_no_proxy.yml index afc12de..1113fda 100644 --- a/tasks/with_no_proxy.yml +++ b/tasks/with_no_proxy.yml
@@ -1,9 +1,5 @@ --- -- 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 - block: - name: Update toubleshooting OS packages
diff --git a/tasks/with_proxy.yml b/tasks/with_proxy.yml index 9386c40..4cce07b 100644 --- a/tasks/with_proxy.yml +++ b/tasks/with_proxy.yml
@@ -1,15 +1,6 @@ --- - block: - - 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 troubleshooting OS packages become: yes yum: