1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Updated apt module documentation string with a cache_valid_time explanation

This commit is contained in:
Ingo Gottwald 2013-04-23 21:55:04 +02:00
parent 375e9d9721
commit c4df662a7c

View file

@ -44,6 +44,11 @@ options:
required: false
default: "no"
choices: [ "yes", "no" ]
cache_valid_time:
description:
- If C(update_cache) is specified and the last run is less or equal than I(cache_valid_time) seconds ago, the C(update_cache) gets skipped.
required: false
default: "no"
purge:
description:
- Will force purging of configuration files if the module state is set to I(absent).
@ -96,6 +101,8 @@ examples:
description: Update all packages to the latest version
- code: "apt: update_cache=yes"
description: Run the equivalent of C(apt-get update) as a separate step
- code: "apt: update_cache=yes cache_valid_time=3600"
description: Only run C(apt-get update) if the last one is more than more than 3600 seconds ago
requirements: [ python-apt, aptitude ]
'''