From 7b242c65a6db7ce3f7a0693458d2b78ee8db140a Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Mon, 20 Apr 2020 22:26:41 -0500 Subject: [PATCH] fix upgrade bug --- roles/go/tasks/main.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/go/tasks/main.yaml b/roles/go/tasks/main.yaml index eb1ce06..7bc8a09 100644 --- a/roles/go/tasks/main.yaml +++ b/roles/go/tasks/main.yaml @@ -52,7 +52,8 @@ src: "/usr/local/src/go{{ go_version }}.{{ ansible_system | lower }}-{{ go_arch }}.tar.gz" dest: /usr/local remote_src: yes - when: st.stat.exists is defined and not st.stat.exists + when: + - (st.stat.exists is defined and not st.stat.exists) or gv.stdout != go_version_str - name: environment copy: