Skip to content

Commit

Permalink
Merge pull request #148 from saleh199/auto-create-profile-shell
Browse files Browse the repository at this point in the history
Auto create golang_shell_profile file
  • Loading branch information
fubarhouse authored Jan 9, 2020
2 parents 10adca5 + 6060136 commit 6676ccd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions tasks/install-shell.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
---

- name: Go_Lang | create configured shell profile
file:
path: "{{ golang_shell_profile }}"
state: touch
when:
- golang_shell_profile is defined

- name: "Go_Lang | Identify if configured shell profile exists"
stat:
path: "{{ golang_shell_profile }}"
Expand Down
3 changes: 2 additions & 1 deletion tests/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
GOROOT: /home/travis/goroot1.9
GOPATH: /home/travis/gopath
GOROOT_BOOTSTRAP: /home/travis/goroot1.4
golang_shell_profile: /etc/profile.d/go.sh
GO111MODULE: "on"
go_get:
# Test install package with no modules config (default):
Expand Down Expand Up @@ -56,4 +57,4 @@
delay: 2

roles:
- role_under_test
- role_under_test

0 comments on commit 6676ccd

Please sign in to comment.