Browse Source

Use ansible_facts

ansible_pkg_mgr requires that the facts be injected as vars. We should
use ansible_facts instead.

Change-Id: I84ae549b549363d32207dff324657dd7df1f5ac0
changes/09/776809/3 1.1.2
Alex Schultz 8 months ago
parent
commit
7400e5a9d9
  1. 4
      tasks/main.yml

4
tasks/main.yml

@ -35,12 +35,12 @@
set_fact:
rhsm_package_manager_config_file: /etc/yum.conf
when:
- ansible_pkg_mgr == 'yum'
- ansible_facts['pkg_mgr'] == 'yum'
- name: Set rhsm_package_manager_config_file for dnf
set_fact:
rhsm_package_manager_config_file: /etc/dnf/dnf.conf
when:
- ansible_pkg_mgr == 'dnf'
- ansible_facts['pkg_mgr'] == 'dnf'
- name: Configure proxy settings to package manager
when:

Loading…
Cancel
Save