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
This commit is contained in:
Ryo IGARASHI 2018-04-18 15:41:10 +09:00 committed by Martin Krizek
parent d684c51815
commit 1cc2aeb40a

View file

@ -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: