From: Jessica Wagantall Date: Wed, 5 Sep 2018 20:38:55 +0000 (-0700) Subject: Add symbolic link to Go bin X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=b4acd42cb79511787151bdd960263122e8a6f383;p=ci-management.git Add symbolic link to Go bin Add symbolic link in /usr/bin instead of updating PATH since this one gets lost once packer finishes building and does not gets preserved after. Change-Id: Ic523a19351de0eb7f440153a51acd98920135202 Issue-ID: CIMAN-33 Signed-off-by: Jessica Wagantall --- diff --git a/packer/provision/local-docker.yaml b/packer/provision/local-docker.yaml index ecf9e4684..7bb1c0314 100644 --- a/packer/provision/local-docker.yaml +++ b/packer/provision/local-docker.yaml @@ -35,8 +35,11 @@ dest: /usr/local remote_src: true become: true - - name: 'Add golang to PATH' - command: 'echo "export PATH=$PATH:/usr/local/go/bin" >> /etc/profile' + - name: Create symbolic link to go bin + file: + src: "/usr/local/go/bin/go" + dest: "/usr/bin/go" + state: link become: true - name: Install libxml2-utils