Skip to content

Commit d17162d

Browse files
committed
Adapt go playbook to new way of passing user
1 parent dbdf94a commit d17162d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

infra/ansible/go.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,14 @@
2828
shell: rm -rf go{{version}}.linux-amd64.tar.gz*
2929

3030
- name: Add go binary path to ~/.profile
31+
become_user: '{{ app_user }}'
3132
when: go_exists is failed
3233
lineinfile:
3334
path: ~/.profile
34-
line: 'export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin:/$HOME/go/bin'
35-
create: true
35+
line: 'export PATH=$PATH:/usr/local/go/bin'
3636
state: present
3737

3838
- name: Source updated profile and test go version
39+
become_user: '{{ app_user }}'
3940
when: go_exists is failed
40-
shell: . ~/.profile && go version
41+
shell: . ~/.profile && go version

0 commit comments

Comments
 (0)