feat: add golang installer

This commit is contained in:
Price Hiller 2022-08-02 20:44:43 -05:00
parent 39a6e5669e
commit 6e73181c43

23
tasks/install-golang.yml Normal file
View 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'