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:
parent
a529e8c4f5
commit
fbfb0909cd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue