diff options
author | Nick White <git@njw.name> | 2021-08-19 10:12:33 +0100 |
---|---|---|
committer | Nick White <git@njw.name> | 2021-08-19 10:12:33 +0100 |
commit | a324b0e7f74ffc934846366c451ffa1297fec6bd (patch) | |
tree | 2c23e0239267dfb78afd3f7075226b739b77c967 /roles/rudpad | |
parent | 89cff0ecf987fa69edc52ee1c501b7073a303d0e (diff) |
rudpad: Remove go source package once done with it
Diffstat (limited to 'roles/rudpad')
-rw-r--r-- | roles/rudpad/tasks/main.yml | 9 |
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: |