community.general/lib/ansible/modules/packaging/os
Peter Oliver caddf863df pkg returns 4 for "nothing to do" (#23007)
* pkg returns 4 for "nothing to do"

We need to handle this because our own checking for whether there's anything to do returns false negatives in certain circumstances.

We need to rename the response `rc`, because that name is reserved by
Ansible to indicate a failure if it is non-zero.

Fixes ansible/ansible#22781 and ansible/ansible-modules-extras#932.

* Don't rename `rc` to to `pkg_rc`, and instead override the failure state.

* Drop mention of renamed variable in `pkg5` module.
2018-05-15 11:52:54 -04:00
..
__init__.py
apk.py Convert more http links to https. 2018-04-25 23:12:46 -07:00
apt.py apt: fix build-dep idempotency (#38999) 2018-04-20 07:57:14 +02:00
apt_key.py apt_key: clarify the keyring option in docs (#39950) 2018-05-11 07:45:20 +02:00
apt_repository.py apt_repository: fix rendering default mode in docs (#40152) 2018-05-15 17:36:23 +02:00
apt_rpm.py Clean up non-standard module shebangs. 2018-03-21 11:04:55 -07:00
dnf.py dnf: handle error when latest pkg not found (#39720) 2018-05-09 10:05:00 +02:00
dpkg_selections.py Fix packaging/os modules for wildcard imports and get_exception 2018-02-06 08:44:49 -08:00
homebrew.py Homebrew: Update _uninstall_current_package to use the --force option (#33360) 2018-05-05 13:03:05 -04:00
homebrew_cask.py Clean up module documentation (#36909) 2018-03-15 22:15:24 +01:00
homebrew_tap.py Fix packaging/os modules for wildcard imports and get_exception 2018-02-06 08:44:49 -08:00
layman.py Clean up module documentation (#36909) 2018-03-15 22:15:24 +01:00
macports.py More validate module fixes (#39097) 2018-04-24 18:05:50 +01:00
openbsd_pkg.py Fix invalid string escape sequences. 2017-11-21 20:59:08 -08:00
opkg.py More validate module fixes (#39097) 2018-04-24 18:05:50 +01:00
package.py
package_facts.py added check mode spport to package_facts (#39801) 2018-05-11 14:04:08 -04:00
pacman.py Convert more http links to https. 2018-04-25 23:12:46 -07:00
pkg5.py pkg returns 4 for "nothing to do" (#23007) 2018-05-15 11:52:54 -04:00
pkg5_publisher.py Clean up module documentation (#36909) 2018-03-15 22:15:24 +01:00
pkgin.py Clean up module documentation (#36909) 2018-03-15 22:15:24 +01:00
pkgng.py Convert more http links to https. 2018-04-25 23:12:46 -07:00
pkgutil.py Fix packaging/os modules for wildcard imports and get_exception 2018-02-06 08:44:49 -08:00
portage.py Clean up module documentation (#36909) 2018-03-15 22:15:24 +01:00
portinstall.py More validate module fixes (#39097) 2018-04-24 18:05:50 +01:00
pulp_repo.py Clean up module documentation (#36909) 2018-03-15 22:15:24 +01:00
redhat_subscription.py Update redhat_subscription.py (#39512) 2018-05-01 14:09:13 -05:00
rhn_channel.py
rhn_register.py Clean up module documentation (#36909) 2018-03-15 22:15:24 +01:00
rhsm_repository.py Add aliases for parameters to rhsm_repository module (#35800) 2018-02-08 14:13:47 +01:00
rpm_key.py rpm_key: PEP8 compliancy and documentation changes (#33426) 2017-12-04 13:30:27 +01:00
slackpkg.py Convert more http links to https. 2018-04-25 23:12:46 -07:00
sorcery.py Clean up module documentation (#36909) 2018-03-15 22:15:24 +01:00
svr4pkg.py More validate module fixes (#39097) 2018-04-24 18:05:50 +01:00
swdepot.py Clean up non-standard module shebangs. 2018-03-21 11:04:55 -07:00
swupd.py Clean up module documentation (#36909) 2018-03-15 22:15:24 +01:00
urpmi.py urpmi module improvements (#37596) 2018-04-10 13:10:56 -04:00
xbps.py Clean up module documentation (#36909) 2018-03-15 22:15:24 +01:00
yum.py More validate module fixes (#39097) 2018-04-24 18:05:50 +01:00
yum_repository.py Clean up module documentation (#36909) 2018-03-15 22:15:24 +01:00
zypper.py More validate module fixes (#39097) 2018-04-24 18:05:50 +01:00
zypper_repository.py Clean up module documentation (#36909) 2018-03-15 22:15:24 +01:00