Commit 5584bb26 by Maruyama

roles/go: use file module instead of command: /bin/ln

parent 24cafd3e
......@@ -5,8 +5,27 @@
dest: /usr/local
copy: no
- name: make symlinks
command: /bin/ln -sf /usr/local/go/bin/{go,godoc,gofmt} /usr/bin/
- name: make symlink go
file:
src: /usr/local/go/bin/go
dest: /usr/bin/go
state: link
become: yes
become_user: root
- name: make symlink godoc
file:
src: /usr/local/go/bin/godoc
dest: /usr/bin/godoc
state: link
become: yes
become_user: root
- name: make symlink gofmt
file:
src: /usr/local/go/bin/gofmt
dest: /usr/bin/gofmt
state: link
become: yes
become_user: root
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment