2020-07-10 00:58:55 +02:00
|
|
|
---
|
|
|
|
{%- from "golang/map.jinja" import golang with context %}
|
|
|
|
golang-archive-extract:
|
|
|
|
archive.extracted:
|
2022-01-25 00:17:39 +01:00
|
|
|
- name: {{ golang.release_dir }}/golang-{{ 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'
|
2022-01-25 00:17:39 +01:00
|
|
|
- if_missing: {{ golang.release_dir }}/golang-{{ golang.version }}
|
2020-07-10 00:58:55 +02:00
|
|
|
|
|
|
|
golang-binary-symlink:
|
|
|
|
file.symlink:
|
2022-01-25 00:17:39 +01:00
|
|
|
- name: {{ golang.install_dir }}/golang
|
|
|
|
- target: {{ golang.release_dir }}/golang-{{ 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:
|
2022-01-25 00:17:39 +01:00
|
|
|
- name: golang
|
2021-11-14 13:37:49 +01:00
|
|
|
- path: {{ golang.release_dir }}
|
2021-12-29 15:45:48 +01:00
|
|
|
- version: "{{ golang.version }}"
|