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 if required #202

Open
colin-nolan opened this issue May 23, 2017 · 0 comments
Open

Only update apt cache if required #202

colin-nolan opened this issue May 23, 2017 · 0 comments

Comments

@colin-nolan
Copy link

Updating the apt cache as the first install step is not a great idea:
https://github.com/savagegus/ansible-consul/blob/b655bf22a711e865ef52609f7cfc1d97db42cbb2/tasks/install.yml#L2-L6

This is beacuse:

  • We might not have to apt install anything yet have to wait for the cache to update/pay for the bandwidth.
  • If the cache update, it will count as a change, despite the fact that nothing of interest to this role has been changed.
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

No branches or pull requests

1 participant