We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbdf94a commit d17162dCopy full SHA for d17162d
infra/ansible/go.yaml
@@ -28,13 +28,14 @@
28
shell: rm -rf go{{version}}.linux-amd64.tar.gz*
29
30
- name: Add go binary path to ~/.profile
31
+ become_user: '{{ app_user }}'
32
when: go_exists is failed
33
lineinfile:
34
path: ~/.profile
- line: 'export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin:/$HOME/go/bin'
35
- create: true
+ line: 'export PATH=$PATH:/usr/local/go/bin'
36
state: present
37
38
- name: Source updated profile and test go version
39
40
- shell: . ~/.profile && go version
41
+ shell: . ~/.profile && go version
0 commit comments