Merge pull request #10732 from mscherer/prefer_dnf_to_yum

Prefer dnf to yum.
pull/10734/head
Brian Coca 10 years ago
commit abb93d9115

@ -106,6 +106,7 @@ class Facts(object):
# package manager, put the preferred one last. If there is an # package manager, put the preferred one last. If there is an
# ansible module, use that as the value for the 'name' key. # ansible module, use that as the value for the 'name' key.
PKG_MGRS = [ { 'path' : '/usr/bin/yum', 'name' : 'yum' }, PKG_MGRS = [ { 'path' : '/usr/bin/yum', 'name' : 'yum' },
{ 'path' : '/usr/bin/dnf', 'name' : 'dnf' },
{ 'path' : '/usr/bin/apt-get', 'name' : 'apt' }, { 'path' : '/usr/bin/apt-get', 'name' : 'apt' },
{ 'path' : '/usr/bin/zypper', 'name' : 'zypper' }, { 'path' : '/usr/bin/zypper', 'name' : 'zypper' },
{ 'path' : '/usr/sbin/urpmi', 'name' : 'urpmi' }, { 'path' : '/usr/sbin/urpmi', 'name' : 'urpmi' },

@ -105,6 +105,7 @@ class Facts(object):
# package manager, put the preferred one last. If there is an # package manager, put the preferred one last. If there is an
# ansible module, use that as the value for the 'name' key. # ansible module, use that as the value for the 'name' key.
PKG_MGRS = [ { 'path' : '/usr/bin/yum', 'name' : 'yum' }, PKG_MGRS = [ { 'path' : '/usr/bin/yum', 'name' : 'yum' },
{ 'path' : '/usr/bin/dnf', 'name' : 'dnf' },
{ 'path' : '/usr/bin/apt-get', 'name' : 'apt' }, { 'path' : '/usr/bin/apt-get', 'name' : 'apt' },
{ 'path' : '/usr/bin/zypper', 'name' : 'zypper' }, { 'path' : '/usr/bin/zypper', 'name' : 'zypper' },
{ 'path' : '/usr/sbin/urpmi', 'name' : 'urpmi' }, { 'path' : '/usr/sbin/urpmi', 'name' : 'urpmi' },

Loading…
Cancel
Save