Ensure that apt is always chosen on debian/ubuntu (#44413)

One can install alternate packages managers on debuntu machines.
However, doing so doesn't mean you want to suddenly start using them.

Add in a check similar to the fedora yum/dnf check that sets apt as the
pkg_mgr if the ansible_os_family is Debian.
This commit is contained in:
Monty Taylor
2018-08-20 14:59:56 -05:00
committed by ansibot
parent 6d52afeed6
commit 27ac2fc67c
3 changed files with 32 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
bugfixes:
- Fixed an issue where ``ansible_facts.pkg_mgr`` would incorrectly set
to ``zypper`` on Debian/Ubuntu systems that happened to have the
command installed.