Commit 90618df8 authored by Nikhil Doifode's avatar Nikhil Doifode
Browse files

Resolved golang bug

parent 4fb61b5b
Loading
Loading
Loading
Loading
+17 −13
Original line number Diff line number Diff line
@@ -37,16 +37,20 @@
  args:
    executable: /bin/bash

# - name: Update bashrc gopath
#   become: false
#   lineinfile:
#     dest: /home/{{ ansible_user }}/.bashrc
#     state: present
#     line: 'export GOPATH=$HOME/gocode'

# - name: Update bashrc path
#   become: false
#   lineinfile:
#     dest: /home/{{ ansible_user }}/.bashrc
#     state: present
#     line: 'export PATH=$PATH:$GOPATH/bin:/usr/local/go/bin'
# source .bashrc doesn't work so added golang part in .profile. But .profile
# only works if logging into the machine remotely or use login shell option is
# selected in terminal preferences. So adding it in .profile and .bashrc both.

- name: Update bashrc gopath
  become: false
  lineinfile:
    dest: /home/{{ ansible_user }}/.bashrc
    state: present
    line: 'export GOPATH=$HOME/gocode'

- name: Update bashrc path
  become: false
  lineinfile:
    dest: /home/{{ ansible_user }}/.bashrc
    state: present
    line: 'export PATH=$PATH:$GOPATH/bin:/usr/local/go/bin'