Skip to content

debian-apt: cache_valid_time without update_cache #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 18, 2016

Conversation

gaelL
Copy link
Contributor

@gaelL gaelL commented Feb 18, 2016

Reading ansible doc cache_valid_time used without update_cache will
not update apt cache.

If update_cache is specified and the last run is less or equal than cache_valid_time seconds ago, the update_cache gets skipped.

Doc example :

# Only run "update_cache=yes" if the last one is more than 3600 seconds ago
- apt: update_cache=yes cache_valid_time=3600

This commit add update_cache flag to ensure apt is updated to setup java.

I didn't see how to contrib part in your readme. I did the pull request on develop branch is ok for you or I need to do in on master ?

Regards,

Reading ansible doc `cache_valid_time` used without `update_cache` will
not update apt cache.

http://docs.ansible.com/ansible/apt_module.html

```
If update_cache is specified and the last run is less or equal than cache_valid_time seconds ago, the update_cache gets skipped.
```

Doc example :

```
- apt: update_cache=yes cache_valid_time=3600
```

This commit add `update_cache` flag to ensure apt is updated to setup java.
steenzout added a commit that referenced this pull request Feb 18, 2016
 debian-apt: cache_valid_time without update_cache
@steenzout steenzout merged commit fa8adab into ansiblebit:develop Feb 18, 2016
@steenzout
Copy link
Member

@gaelL this is perfect. thank you! I'll make new release...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants