ansible/ansible — pull request #1050 by sfromm (2012-09-14 18:32:42+00:00)
Title: Add pkg_mgr fact to setup

This should help facilitate playbook decision making that are not
strictly distribution specific, but more package manager.

My real motive is to allow simple package installation to work without having to create multiple plays to install a package. For example, this will now work:

-name: install wget
action: $ansible_pkg_mgr name=wget state=present

This enables simple package installation across distributions -- as long as there is a module for the package manager.

I know you weren't in favor of a generic pkg module. Let me know if you hate this idea. :-)