From a8f7fda2101646b8b8221cf6631d3844345a0d0a Mon Sep 17 00:00:00 2001 From: Daniel Kimsey Date: Wed, 9 Dec 2015 11:59:16 -0600 Subject: [PATCH] Fix yum module failing to initalize yum plugins --- lib/ansible/modules/packaging/os/yum.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/modules/packaging/os/yum.py b/lib/ansible/modules/packaging/os/yum.py index e539e4d4d2b..0686f3ae171 100644 --- a/lib/ansible/modules/packaging/os/yum.py +++ b/lib/ansible/modules/packaging/os/yum.py @@ -195,6 +195,7 @@ def yum_base(conf_file=None): my = yum.YumBase() my.preconf.debuglevel=0 my.preconf.errorlevel=0 + my.preconf.plugins = True if conf_file and os.path.exists(conf_file): my.preconf.fn = conf_file if os.geteuid() != 0: