-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
HAProxy not found because apt cache not up to date (deployments-balancer) #239
Comments
didn't find any issue with it. |
|
weird, seems like the package is updated from : |
Could that be caused by an update in the underlying Vagrant image? |
probably :
|
@SearsAW - Are you using this playbook? https://github.com/geerlingguy/ansible-for-devops/blob/master/deployments-balancer/playbooks/provision.yml Almost every time I build a playbook for Ubuntu or Debian, I add a pre_tasks section with an apt cache update task. But it looks like I didn't add that in this case. The example's also using Ubuntu 14.04 currently, which is a bit out of date (I thought I had updated all examples to use at least 16.04!). I will need to get this example updated to make it work better out of the box. And @MacFlurry - sometimes I use a different module (like |
Yeah sure, make sense on using package in that case. no pb 🥰 |
When running the playbook for the "Deploying to app servers behind a load balancer" in chapter 9, the HAProxy role errors out because it can't find
haproxy
package. I had to runansible deployments -i inventory -a "sudo apt-get update"
to update the apt cache and then ran the playbook again. It worked this time around. Might want to update the instructions to add that as a step somehow.The text was updated successfully, but these errors were encountered: