Browse Source

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
tags/1.1.0^0
Emilien Macchi 3 months ago
parent
commit
fbfb0909cd
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      tasks/main.yml

+ 4
- 0
tasks/main.yml 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


Loading…
Cancel
Save