26 lines
626 B
YAML
26 lines
626 B
YAML
- name: Install Golang for MacOS
|
|
community.general.homebrew:
|
|
name: go
|
|
state: present
|
|
when: ansible_facts.distribution == 'MacOSX'
|
|
|
|
- name: Install Golang for Debian based systems
|
|
become: true
|
|
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
|
|
become: true
|
|
ansible.builtin.dnf:
|
|
name: go-toolset
|
|
state: present
|
|
when: ansible_facts.os_family == 'RedHat'
|