Missing package 'ansible' #171
-
I dug around in the logs of the partially-installed VM that Packer was trying to build, and eventually found this: And then it crashes and halts. I've set up a proxy, but I'm still using the apt sources specified in this project's user-data.pkrtpl.hcl. Why would it not be able to find the ansible package? The other packages (openssh-server, open-vm-tools, cloud-init) all install fine. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
This is interesting - I removed the 'ansible' item and got a lot further. Packer moved on to "Executing Ansible" and from the output it seemed to be running so I guess there was some version of Ansible installed anyway. At After that failure Packer powered off and removed the VM, so I can't explore it for logs unless there is some way to tell Packer to leave the VM? |
Beta Was this translation helpful? Give feedback.
This is interesting - I removed the 'ansible' item and got a lot further. Packer moved on to "Executing Ansible" and from the output it seemed to be running so I guess there was some version of Ansible installed anyway. At
TASK [base : Updating the guest operating system.]
I got
fatal: [default]: FAILED! => {"changed": false, "msg": "Failed to update apt cache: "}
After that failure Packer powered off and removed the VM, so I can't explore it for logs unless there is some way to tell Packer to leave the VM?