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

Vagrant provision fail #1

Open
ad-m opened this issue Jul 30, 2017 · 1 comment
Open

Vagrant provision fail #1

ad-m opened this issue Jul 30, 2017 · 1 comment

Comments

@ad-m
Copy link

ad-m commented Jul 30, 2017

01:21 $ vagrant provision
==> default: Running provisioner: ansible...
    default: Running ansible-playbook...

PLAY [all] *********************************************************************

TASK [Gathering Facts] *********************************************************
ok: [default]

TASK [role_under_test : update apt cache] **************************************
ok: [default]

TASK [role_under_test : create user] *******************************************
ok: [default]

TASK [role_under_test : create beehive folder] *********************************
ok: [default]

TASK [role_under_test : create beehive config folder] **************************
ok: [default]

TASK [role_under_test : install go] ********************************************
ok: [default]

TASK [role_under_test : go get beehive] ****************************************
fatal: [default]: FAILED! => {"changed": true, "cmd": "go get -v github.com/muesli/beehive", "delta": "0:00:00.186946", "end": "2017-07-30 23:22:02.430113", "failed": true, "rc": 1, "start": "2017-07-30 23:22:02.243167", "stderr": "package context: unrecognized import path \"context\" (import path does not begin with hostname)", "stderr_lines": ["package context: unrecognized import path \"context\" (import path does not begin with hostname)"], "stdout": "", "stdout_lines": []}
	to retry, use: --limit @/tmp/ansible-role-beehive/tests/role.retry

PLAY RECAP *********************************************************************
default                    : ok=6    changed=0    unreachable=0    failed=1   

Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.

I suggest add vars for conditional add golang-go PPA (ppa:longsleep/golang-backports), default disabled, then enable in Vagrantfile.

@morbidick
Copy link
Owner

the "context" package requires go version 1.7, the ppa solution is probably best, thanks for your input i will look into it. PRs welcome ;)

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

2 participants