From 447842c52432673c8ed6837caae595040ff57cde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Moser?= Date: Sun, 6 Nov 2016 17:21:41 +0100 Subject: [PATCH] apt: fix changed when cache updated but not pkg (#5487) --- lib/ansible/modules/packaging/os/apt.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/ansible/modules/packaging/os/apt.py b/lib/ansible/modules/packaging/os/apt.py index be8e1016a6..20306cd6de 100644 --- a/lib/ansible/modules/packaging/os/apt.py +++ b/lib/ansible/modules/packaging/os/apt.py @@ -938,12 +938,6 @@ def main(): retvals['cache_updated'] = updated_cache # Store when the update time was last retvals['cache_update_time'] = updated_cache_time - # If the cache was updated and the general state change was set to - # False make sure that the change in cache state is accurately - # updated by setting the general changed state to the same as - # the cache state. - if updated_cache and not retvals['changed']: - retvals['changed'] = updated_cache if success: module.exit_json(**retvals)