Skip to content

Commit

Permalink
Update playbook.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
perguth authored Jun 20, 2024
1 parent 39160ef commit 919abd8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,16 @@
url: https://go.dev/VERSION?m=text
return_content: yes
register: golang_version
- name: '[Golang] Set Golang version'
set_fact:
golang_version_first_line: "{{ golang_version.content.split('\n')[0] }}"
- name: '[Golang] Get tarball'
get_url:
url: 'https://go.dev/dl/{{(golang_version.content | splitext)[0]}}.linux-amd64.tar.gz'
url: 'https://go.dev/dl/{{ golang_version_first_line }}.linux-amd64.tar.gz'
dest: '{{tmp_dir.path}}'
- name: '[Golang] Extract'
unarchive:
src: '{{tmp_dir.path}}/{{(golang_version.content | splitext)[0]}}.linux-amd64.tar.gz'
src: '{{tmp_dir.path}}/{{ golang_version_first_line }}.linux-amd64.tar.gz'
copy: no
dest: /usr/local
- name: '[Golang] Configure `~/.bashrc`'
Expand Down

0 comments on commit 919abd8

Please sign in to comment.