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 2 months ago
parent
commit
7400e5a9d9
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      tasks/main.yml

+ 2
- 2
tasks/main.yml View File

@ -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