summaryrefslogtreecommitdiff
path: root/roles/rudpad/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/rudpad/tasks/main.yml')
-rw-r--r--roles/rudpad/tasks/main.yml9
1 files changed, 8 insertions, 1 deletions
diff --git a/roles/rudpad/tasks/main.yml b/roles/rudpad/tasks/main.yml
index eb26d81..043c6f9 100644
--- a/roles/rudpad/tasks/main.yml
+++ b/roles/rudpad/tasks/main.yml
@@ -27,10 +27,17 @@
src: /home/{{ ansible_user }}/go1.17.linux-amd64.tar.gz
remote_src: true
-- name: Add Go tool path to path
+- name: Remove Go download
+ file:
+ path: /home/{{ ansible_user }}/go1.17.linux-amd64.tar.gz
+ state: absent
+ become: no
+
+- name: Add Go tools to path
lineinfile:
path: /home/{{ ansible_user }}/.profile
line: PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
+ become: no
- name: Get go repos
git: