feat: add golang installer
This commit is contained in:
parent
39a6e5669e
commit
6e73181c43
23
tasks/install-golang.yml
Normal file
23
tasks/install-golang.yml
Normal file
@ -0,0 +1,23 @@
|
||||
- name: Install Golang for MacOS
|
||||
community.general.homebrew:
|
||||
name: go
|
||||
state: present
|
||||
when: ansible_facts.distribution == 'MacOSX'
|
||||
|
||||
- name: Install Golang for Debian based systems
|
||||
ansible.builtin.apt:
|
||||
name: golang-go
|
||||
state: present
|
||||
when: ansible_facts.os_family == 'Debian'
|
||||
|
||||
- name: Install Golang for Arch
|
||||
community.general.pacman:
|
||||
name: go
|
||||
state: present
|
||||
when: ansible_facts.distribution == 'Archlinux'
|
||||
|
||||
- name: Install Golang for RedHat based systems
|
||||
ansible.builtin.dnf:
|
||||
name: go-toolset
|
||||
state: present
|
||||
when: ansible_facts.os_family == 'RedHat'
|
Loading…
Reference in New Issue
Block a user