only run if proxy variables are added

pull/230/head
Spencer Smith 2016-05-10 15:53:32 -07:00
parent adceaf60e1
commit ebf8231c9a
1 changed files with 2 additions and 1 deletions

View File

@ -56,7 +56,8 @@
- name: allow for proxies on RHEL systems
include: rhel-proxies.yml
when: ansible_distribution in ["CentOS","RedHat"] and
ansible_distribution_major_version >= 7
ansible_distribution_major_version >= 7 and
(http_proxy is defined or https_proxy is defined or no_proxy is defined)
- meta: flush_handlers