Skip to content

Commit 9274407

Browse files
committed
change condition to discover version
1 parent 1cdd8ab commit 9274407

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

defaults/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
---
2+
# (TODO defaults->documentation)
3+
# this overrides version discovery using github releases
4+
#go_version: "1.10"
5+
26
# mirror for Go release tarballs
37
go_mirror: "https://storage.googleapis.com/golang/"
48

@@ -7,7 +11,6 @@ go_mirror: "https://storage.googleapis.com/golang/"
711
# if they are ALL not set, version will be autodiscovered.
812
# the version will be found thanks to github releases.
913
# the shasum will be fetched from "{{ go_download_location }}/{{ go_tarball }}.sha256"
10-
#go_version: "1.7.1"
1114
#go_tarball: "go{{ go_version }}.linux-amd64.tar.gz"
1215
#go_tarball_checksum: "sha256:43ad621c9b014cde8db17393dc108378d37bc853aa351a6c74bf6432c1bbd182"
1316
go_version_target: "go version go{{ go_version }} linux/amd64"

tasks/main.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
register: latest_release
66
changed_when: False
77
when:
8-
- go_tarball is not defined
8+
- go_version is not defined
99
- go_tarball_checksum is not defined
10-
- go_download_location is not defined
1110

1211
- name: Setting facts for autodiscovered version
1312
set_fact:

0 commit comments

Comments
 (0)