ansible-consul icon indicating copy to clipboard operation
ansible-consul copied to clipboard

Only update apt cache if required

Open colin-nolan opened this issue 7 years ago • 0 comments

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.

colin-nolan avatar May 23 '17 15:05 colin-nolan