X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=ci%2Fansible%2Froles%2Fcommon%2Ftasks%2Fmain.yml;fp=ci%2Fansible%2Froles%2Fcommon%2Ftasks%2Fmain.yml;h=20f5381a42bbf4fff1c9c59969f7e357539f8f87;hb=64df7bc3bc70d49153409436b411fb327691a4d5;hp=0000000000000000000000000000000000000000;hpb=0786fde30eba926b097617dea9ca4683ac2fa1b7;p=stor4nfv.git diff --git a/ci/ansible/roles/common/tasks/main.yml b/ci/ansible/roles/common/tasks/main.yml new file mode 100644 index 0000000..20f5381 --- /dev/null +++ b/ci/ansible/roles/common/tasks/main.yml @@ -0,0 +1,135 @@ +--- +# If we can't get golang installed before any module is used we will fail +# so just try what we can to get it installed +- name: check for golang + stat: + path: /usr/local/go + ignore_errors: yes + register: systemgolang + +- name: install golang for debian based systems + shell: + cmd: | + set -e + set -x + + wget https://storage.googleapis.com/golang/go1.9.linux-amd64.tar.gz + tar xvf go1.9.linux-amd64.tar.gz -C /usr/local/ + cat >> /etc/profile < opensds.conf <