Skip proxy tasks when not needed

if rhsm_rhsm_proxy_hostname is not defined, we don't need to run the
tasks used to configure proxy bits.

Change-Id: I15b70179ced343a1abbbb3ca8bd24fed50bfd758
This commit is contained in:
Emilien Macchi 2020-03-26 09:09:35 -04:00
parent a529e8c4f5
commit fbfb0909cd
1 changed files with 4 additions and 0 deletions

View File

@ -24,6 +24,8 @@
- rhsm_conf
- name: Block to set rhsm_package_manager_config_file
when:
- rhsm_rhsm_proxy_hostname is defined
tags:
- rhsm
- rhsm_conf
@ -40,6 +42,8 @@
- ansible_pkg_mgr == 'dnf'
- name: Configure proxy settings to package manager
when:
- rhsm_rhsm_proxy_hostname is defined
ini_file:
path: "{{ rhsm_package_manager_config_file }}"
section: main