Skip to content
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

Only update apt-cache when needed #4

Merged
merged 1 commit into from
Feb 9, 2017
Merged

Conversation

drwahl
Copy link
Contributor

@drwahl drwahl commented Dec 30, 2016

Instead of always updating the apt cache, leverage the 'update_cache'
method during the apt install task. Prior to this patch, every run of
this role resulted in a "changed" state. This patch will clean up that
report to only be "changed" when this actually did indeed change (as
updating the apt-cache isn't a meaningful "change").

Instead of always updating the apt cache, leverage the 'update_cache'
method during the apt install task.  Prior to this patch, every run of
this role resulted in a "changed" state.  This patch will clean up that
report to only be "changed" when this actually did indeed change (as
updating the apt-cache isn't a meaningful "change").
@dbichko
Copy link

dbichko commented Dec 31, 2016

Was about to submit the same thing - thanks for beating me to it!

@mongrelion
Copy link
Owner

Awesome. LGTM!

@mongrelion mongrelion merged commit 278d9a9 into mongrelion:master Feb 9, 2017
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.

3 participants