Skip to content

Commit

Permalink
change condition to discover version
Browse files Browse the repository at this point in the history
  • Loading branch information
yogo1212 committed Feb 26, 2018
1 parent 1cdd8ab commit 9274407
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 4 additions & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
---
# (TODO defaults->documentation)
# this overrides version discovery using github releases
#go_version: "1.10"

# mirror for Go release tarballs
go_mirror: "https://storage.googleapis.com/golang/"

Expand All @@ -7,7 +11,6 @@ go_mirror: "https://storage.googleapis.com/golang/"
# if they are ALL not set, version will be autodiscovered.
# the version will be found thanks to github releases.
# the shasum will be fetched from "{{ go_download_location }}/{{ go_tarball }}.sha256"
#go_version: "1.7.1"
#go_tarball: "go{{ go_version }}.linux-amd64.tar.gz"
#go_tarball_checksum: "sha256:43ad621c9b014cde8db17393dc108378d37bc853aa351a6c74bf6432c1bbd182"
go_version_target: "go version go{{ go_version }} linux/amd64"
Expand Down
3 changes: 1 addition & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
register: latest_release
changed_when: False
when:
- go_tarball is not defined
- go_version is not defined
- go_tarball_checksum is not defined
- go_download_location is not defined

- name: Setting facts for autodiscovered version
set_fact:
Expand Down

0 comments on commit 9274407

Please sign in to comment.