morbidick / ansible-role-beehive

Ansible role to install beehive https://github.com/muesli/beehive
9 stars 0 forks source link

Vagrant provision fail #1

Open ad-m opened 7 years ago

ad-m commented 7 years ago
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 commented 7 years ago

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 ;)