]> TLD Linux GIT Repositories - packages/ansible.git/blob - poldek.patch
- ansible-core 2.16.2
[packages/ansible.git] / poldek.patch
1 -diff -ur ansible-2.16.2.orig/lib/ansible/module_utils/facts/system/pkg_mgr.py ansible-2.16.2/lib/ansible/module_utils/facts/system/pkg_mgr.py
2 --- ansible-2.16.2.orig/lib/ansible/module_utils/facts/system/pkg_mgr.py        2023-12-11 21:48:58.000000000 +0100
3 +++ ansible-2.16.2/lib/ansible/module_utils/facts/system/pkg_mgr.py     2024-01-07 20:19:31.342969058 +0100
4 @@ -15,7 +15,8 @@
5  # A list of dicts.  If there is a platform with more than one
6  # package manager, put the preferred one last.  If there is an
7  # ansible module, use that as the value for the 'name' key.
8 -PKG_MGRS = [{'path': '/usr/bin/rpm-ostree', 'name': 'atomic_container'},
9 +PKG_MGRS = [{'path': '/usr/bin/poldek', 'name': 'poldek'},
10 +            {'path': '/usr/bin/rpm-ostree', 'name': 'atomic_container'},
11              {'path': '/usr/bin/yum', 'name': 'yum'},
12  
13              # NOTE the `path` key for dnf/dnf5 is effectively discarded when matched for Red Hat OS family,