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: