Skip to content

Commit

Permalink
Update apt.py (ansible#37972)
Browse files Browse the repository at this point in the history
* 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 ansible#37972.

 label: docsite_pr
  • Loading branch information
rigarash authored and mkrizek committed Apr 18, 2018
1 parent d684c51 commit 1cc2aeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ansible/modules/packaging/os/apt.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
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:
Expand Down

0 comments on commit 1cc2aeb

Please sign in to comment.