From 1cc2aeb40a99e7c55ac500c1fddacfba8199e925 Mon Sep 17 00:00:00 2001 From: Ryo IGARASHI Date: Wed, 18 Apr 2018 15:41:10 +0900 Subject: [PATCH] Update apt.py (#37972) * Update apt.py Proposing description of "cache_valid_time" for Ansible 2.4 or greater. If 'cache_valid_time' is set, 'update_cache' is set implicitly. This means the logic should be reversed. label: docsite_pr * Proposing the description of "cache_valid_time".. This commit follows the discussion in #37972. label: docsite_pr --- lib/ansible/modules/packaging/os/apt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/packaging/os/apt.py b/lib/ansible/modules/packaging/os/apt.py index 67d4388cd81..95401c38e08 100644 --- a/lib/ansible/modules/packaging/os/apt.py +++ b/lib/ansible/modules/packaging/os/apt.py @@ -41,7 +41,7 @@ options: cache_valid_time: description: - Update the apt cache if its older than the I(cache_valid_time). This option is set in seconds. - As of Ansible 2.4, this implicitly sets I(update_cache) if set. + As of Ansible 2.4, this sets I(update_cache=yes). default: 0 purge: description: