diff --git a/roles/go/defaults/main.yml b/roles/go/defaults/main.yml new file mode 100644 index 0000000..96fa338 --- /dev/null +++ b/roles/go/defaults/main.yml @@ -0,0 +1,3 @@ +--- + +go_version: 1.8.5 diff --git a/roles/go/tasks/main.yml b/roles/go/tasks/main.yml index 201e298..8ce00a2 100644 --- a/roles/go/tasks/main.yml +++ b/roles/go/tasks/main.yml @@ -1,7 +1,7 @@ --- - name: Download and install go - unarchive: src=https://storage.googleapis.com/golang/go1.8.1.linux-amd64.tar.gz dest=/usr/local copy=no + unarchive: src=https://dl.google.com/go/go{{ go_version }}.linux-amd64.tar.gz dest=/usr/local copy=no - name: Configure go copy: src=go.sh dest=/etc/profile.d/go.sh