community.general/lib/ansible/modules/packaging/os
Kevin Carter e2e7f20e34 apt: fix cache time handling (#1517)
This change is in response to issue #1497 where the apt module would not properly updating the apt cache in some situations and never returned a state change on cache update when the module was used without or without an item to be installed or upgraded.

The change simply allows the apt module to update the cache when update_cache option is used without or without a set cache_valid_time.
If cache_valid_time is set and the on disk mtime for apt cache is ">" the provided amount of seconds, which now has a default of 0, the apt cache will be updated. Additionally if no upgrade, package, or deb is installed or changed but the apt cache is updated the module will return a changed state which will help users to know that the state of the environment has changed due to a task operation, even if it was only an apt cache update.

fixes #1497

Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-12-08 11:25:14 -05:00
..
__init__.py Some more module categorization. 2016-12-08 11:22:25 -05:00
apt.py apt: fix cache time handling (#1517) 2016-12-08 11:25:14 -05:00
apt_key.py Fix python 3 issues with apt* modules. (#4848) 2016-12-08 11:25:05 -05:00
apt_repository.py Fix python 3 issues with apt* modules. (#4848) 2016-12-08 11:25:05 -05:00
apt_rpm.py Proper author info for all remaining modules 2016-12-08 11:23:07 -05:00
package.py removed extra space 2016-12-08 11:24:40 -05:00
redhat_subscription.py Add way to specify environment (#3453) 2016-12-08 11:24:43 -05:00
rhn_channel.py Proper author info for all remaining modules 2016-12-08 11:23:07 -05:00
rhn_register.py Convert packaging/* to py3/py2.4 syntax (#3702) 2016-12-08 11:24:30 -05:00
rpm_key.py Fix error reporting for fetch_key (#2662) 2016-12-08 11:24:19 -05:00
yum.py Check whether yum file or URL install is an upgrade (#4547) 2016-12-08 11:25:11 -05:00