2020-07-10 00:58:55 +02:00
|
|
|
---
|
|
|
|
{%- from "golang/map.jinja" import golang with context %}
|
|
|
|
golang-archive-extract:
|
|
|
|
archive.extracted:
|
2021-11-14 13:37:49 +01:00
|
|
|
- name: {{ golang.release_dir }}/go-{{ golang.version }}
|
2020-07-10 00:58:55 +02:00
|
|
|
- source: {{ golang.mirror }}/go{{ golang.version }}.{{ golang.os }}-{{ golang.arch }}.tar.gz
|
2020-09-12 17:41:35 +02:00
|
|
|
- skip_verify: true
|
|
|
|
- enforce_toplevel: false
|
2020-07-10 00:58:55 +02:00
|
|
|
- options: --transform 's/^go\///g'
|
2021-11-14 13:37:49 +01:00
|
|
|
- if_missing: {{ golang.release_dir }}/go-{{ golang.version }}
|
2020-07-10 00:58:55 +02:00
|
|
|
|
|
|
|
golang-binary-symlink:
|
|
|
|
file.symlink:
|
|
|
|
- name: {{ golang.install_dir }}/go
|
2021-11-14 13:37:49 +01:00
|
|
|
- target: {{ golang.release_dir }}/go-{{ golang.version }}
|
2020-09-12 17:41:35 +02:00
|
|
|
- force: true
|
2020-07-10 00:58:55 +02:00
|
|
|
- require:
|
2020-11-30 22:29:49 +01:00
|
|
|
- archive: golang-archive-extract
|
2021-11-14 13:37:49 +01:00
|
|
|
|
|
|
|
golang-cleanup:
|
|
|
|
software.cleanup:
|
|
|
|
- name: go
|
|
|
|
- path: {{ golang.release_dir }}
|
|
|
|
- version: {{ golang.version }}
|