community.general/lib/ansible/modules/packaging/os
Abhijit Menon-Sen 46c015375d Clarify HAVE_PYTHON_APT/install_python_apt handling in apt_repository
1. Don't test check_mode in both the caller and in the callee.
2. Don't test HAVE_PYTHON_APT inside an if that tests HAVE_PYTHON_APT
3. Don't be irritatingly vague about why the module fails ("You may be
   seeing this because…").

Note that if «apt-get -y install python-apt» succeeds with rc==0, but
for some reason python_apt is not usable afterwards, this will break
because the imports in install_python_apt aren't wrapped inside a
try/except.

In other words, we assume that install_python_apt either succeeds or
fails with a traceback. This commit doesn't affect that behaviour.
2016-12-08 11:23:27 -05:00
..
__init__.py Some more module categorization. 2016-12-08 11:22:25 -05:00
apt.py updated upgrade to a more sensible default as the previous was prone to confusion fixes #1667 2016-12-08 11:23:17 -05:00
apt_key.py Proper author info for all remaining modules 2016-12-08 11:23:07 -05:00
apt_repository.py Clarify HAVE_PYTHON_APT/install_python_apt handling in apt_repository 2016-12-08 11:23:27 -05:00
apt_rpm.py Proper author info for all remaining modules 2016-12-08 11:23:07 -05:00
package.py updated to add missing 'use' option 2016-12-08 11:23:22 -05:00
redhat_subscription.py Proper author info for all remaining modules 2016-12-08 11:23:07 -05:00
rhn_channel.py Proper author info for all remaining modules 2016-12-08 11:23:07 -05:00
rhn_register.py Add version that the profilename param was added 2016-12-08 11:23:16 -05:00
rpm_key.py Small cleanups. * Import url(lib|parse|lib2) if needed by the module rather than relying on module_utils.urls to do so. * Remove stdlib modules from requirements * Use the if __name__ conditional for invoking main() 2016-12-08 11:23:11 -05:00
yum.py Add notes about loop squashing and 1.9.2 change to install packages in one yum transaction 2016-12-08 11:23:19 -05:00