feat: add rustup + go
Some checks are pending
/ sast (push) Waiting to run

This commit is contained in:
Marc 2024-09-29 13:46:55 -04:00
parent 5c389255f3
commit 2f427676c5
Signed by: marc
GPG key ID: 048E042F22B5DC79
3 changed files with 20 additions and 0 deletions

View file

@ -3,6 +3,7 @@
hosts: localhost
roles:
- system-packages
- dev-toolchain
- shell-tweaks
- editor-tweaks
- tool-config

View file

@ -0,0 +1,17 @@
---
- name: Check if rustup is installed
shell: which rustup
register: which_rustup
- name: Install rustup
shell: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
when: which_rustup.rc == 1
- name: Check if go is installed
shell: go version
register: check_go_version
- name: Install go
become: true
shell: |
curl -o /tmp/go.tar.gz -L https://go.dev/dl/go{{go_version}}.linux-amd64.tar.gz &&
rm -rf /usr/local/go &&
sudo tar -C /usr/local -xzf /tmp/go.tar.gz
when: check_go_version.rc == 1 or check_go_version.stdout.find(go_version) == -1

View file

@ -0,0 +1,2 @@
---
go_version: 1.23.1