Git Product home page Git Product logo

ansible-go's People

Contributors

areski avatar cpu avatar craigmj avatar giganteous avatar jlund avatar keiththomps avatar lorenzbischof avatar olvesh avatar reedloden avatar robbiet480 avatar scorphus avatar telling avatar yourcelf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ansible-go's Issues

ansible-go fails to install go under some circumstances.

ansible-go is failing for me, apparently because of this ansible get_url issue:

Namely, the vanilla ubuntu 14.04.4 host I wish to install go into has python 2.7.6 installed, which doesn't handle SNI.

The suggested workaround is to not validate certificates (which seems sloppy) or to use curl or wget as an alternative.

I was wondering how open you would be to a configuration option in your role that allowed the use of curl as an alternative?

Alternatively, can you suggest another way I can structure my ansible playbook so that I can avoid this issue and still use your role?

Here is the vvv output from my attempt to install go 1.6.:

fatal: [default]: FAILED! => {"changed": false, "failed": true, "invocation": {"module_args": {"backup": null, "checksum": "", "content": null, "delimiter": null, "dest": "/usr/local/src/go1.6.linux-amd64.tar.gz", "directory_mode": null, "follow": false, "force": false, "force_basic_auth": false, "group": null, "headers": null, "http_agent": "ansible-httpget", "mode": null, "owner": null, "regexp": null, "remote_src": null, "selevel": null, "serole": null, "setype": null, "seuser": null, "sha256sum": "5470eac05d273c74ff8bac7bef5bad0b5abbd1c4052efbdbc8db45332e836b0b", "src": null, "timeout": 10, "url": "https://golang.org/dl/go1.6.linux-amd64.tar.gz", "url_password": null, "url_username": null, "use_proxy": true, "validate_certs": true}, "module_name": "get_url"}, "msg": "SSL Certificate does not belong to golang.org.  Make sure the url has a certificate that belongs to it or use validate_certs=False (insecure)"}

NO MORE HOSTS LEFT *************************************************************
    to retry, use: --limit @playbook.retry

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

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

Only using sha256 checksum check

In go 1.5.3 Golang changed their checksum function from SHA1 to SHA256.
The script only makes a sha256-check, which makes it impossible to install earlier versions of go, since their checksums will never match.

Travis builds are broken

When doing a sample provision, Travis CI shows the following errors:

TASK: [go | Register the current Go version (if any)] ************************* 
<localhost> REMOTE_MODULE command /usr/local/go/bin/go version
<localhost> EXEC ['/bin/sh', '-c', 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1445268469.26-239011738322804 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1445268469.26-239011738322804 && echo $HOME/.ansible/tmp/ansible-tmp-1445268469.26-239011738322804']
<localhost> PUT /tmp/tmpTz8dnU TO /home/travis/.ansible/tmp/ansible-tmp-1445268469.26-239011738322804/command
<localhost> EXEC /bin/sh -c 'sudo -k && sudo -H -S -p "[sudo via ansible, key=eugrjnbotjpbhmarzajewmlqonulvyzh] password: " -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-eugrjnbotjpbhmarzajewmlqonulvyzh; LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python /home/travis/.ansible/tmp/ansible-tmp-1445268469.26-239011738322804/command; rm -rf /home/travis/.ansible/tmp/ansible-tmp-1445268469.26-239011738322804/ >/dev/null 2>&1'"'"''
failed: [localhost] => {"changed": false, "cmd": "/usr/local/go/bin/go version", "failed": true, "rc": 2}
msg: [Errno 2] No such file or directory
...ignoring

I'm not sure if this is also related to that:

TASK: [tooling | Forego is installed] ***************************************** 
<localhost> REMOTE_MODULE command export GOROOT=/usr/local/go && export GOPATH=$HOME/go && export PATH=$PATH:$GOROOT/bin:$GOPATH/bin && go get -u github.com/ddollar/forego #USE_SHELL
<localhost> EXEC ['/bin/sh', '-c', 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1445268472.95-210667012243712 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1445268472.95-210667012243712 && echo $HOME/.ansible/tmp/ansible-tmp-1445268472.95-210667012243712']
<localhost> PUT /tmp/tmp3TRJvI TO /home/travis/.ansible/tmp/ansible-tmp-1445268472.95-210667012243712/command
<localhost> EXEC ['/bin/sh', '-c', u'LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python /home/travis/.ansible/tmp/ansible-tmp-1445268472.95-210667012243712/command; rm -rf /home/travis/.ansible/tmp/ansible-tmp-1445268472.95-210667012243712/ >/dev/null 2>&1']
failed: [localhost] => {"changed": true, "cmd": "export GOROOT=/usr/local/go && export GOPATH=$HOME/go && export PATH=$PATH:$GOROOT/bin:$GOPATH/bin && go get -u github.com/ddollar/forego", "delta": "0:00:00.884325", "end": "2015-10-19 15:27:53.925261", "rc": 3, "start": "2015-10-19 15:27:53.040936", "warnings": []}
stderr: go tool: no such tool "6g"

Greetings.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.