]> TLD Linux GIT Repositories - packages/ansible.git/blobdiff - poldek.patch
- added support for poldek package manager
[packages/ansible.git] / poldek.patch
diff --git a/poldek.patch b/poldek.patch
new file mode 100644 (file)
index 0000000..37d2a10
--- /dev/null
@@ -0,0 +1,13 @@
+diff -ur ansible-2.8.0.orig/lib/ansible/module_utils/facts/system/pkg_mgr.py ansible-2.8.0/lib/ansible/module_utils/facts/system/pkg_mgr.py
+--- ansible-2.8.0.orig/lib/ansible/module_utils/facts/system/pkg_mgr.py        2019-06-21 22:50:15.462000000 +0200
++++ ansible-2.8.0/lib/ansible/module_utils/facts/system/pkg_mgr.py     2019-06-21 22:51:42.117000000 +0200
+@@ -13,7 +13,8 @@
+ # A list of dicts.  If there is a platform with more than one
+ # package manager, put the preferred one last.  If there is an
+ # ansible module, use that as the value for the 'name' key.
+-PKG_MGRS = [{'path': '/usr/bin/yum', 'name': 'yum'},
++PKG_MGRS = [{'path': '/usr/bin/poldek', 'name': 'poldek'},
++            {'path': '/usr/bin/yum', 'name': 'yum'},
+             {'path': '/usr/bin/dnf', 'name': 'dnf'},
+             {'path': '/usr/bin/apt-get', 'name': 'apt'},
+             {'path': '/usr/bin/zypper', 'name': 'zypper'},