Browse Source

Fix ansible_pkg_mgr

ansible_pkg_mgr isn't in facts apparently, it's available from ansible
vars directly.

Change-Id: I21462446aeb01bbd280ee9c0cf9ef2bb222425b0
tags/1.1.0
Emilien Macchi 3 months ago
parent
commit
a529e8c4f5
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      tasks/main.yml

+ 2
- 2
tasks/main.yml View File

@@ -32,12 +32,12 @@
set_fact:
rhsm_package_manager_config_file: /etc/yum.conf
when:
- ansible_facts.ansible_pkg_mgr == 'yum'
- ansible_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_facts.ansible_pkg_mgr == 'dnf'
- ansible_pkg_mgr == 'dnf'

- name: Configure proxy settings to package manager
ini_file:


Loading…
Cancel
Save