From a324b0e7f74ffc934846366c451ffa1297fec6bd Mon Sep 17 00:00:00 2001 From: Nick White Date: Thu, 19 Aug 2021 10:12:33 +0100 Subject: rudpad: Remove go source package once done with it --- roles/rudpad/tasks/main.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'roles/rudpad/tasks/main.yml') 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: -- cgit v1.2.1-24-ge1ad