2022-08-02 20:44:43 -05:00
|
|
|
- name: Install Golang for MacOS
|
|
|
|
community.general.homebrew:
|
|
|
|
name: go
|
|
|
|
state: present
|
|
|
|
when: ansible_facts.distribution == 'MacOSX'
|
|
|
|
|
|
|
|
- name: Install Golang for Debian based systems
|
2022-08-02 23:12:29 -05:00
|
|
|
become: true
|
2022-08-02 20:44:43 -05:00
|
|
|
ansible.builtin.apt:
|
|
|
|
name: golang-go
|
|
|
|
state: present
|
|
|
|
when: ansible_facts.os_family == 'Debian'
|
|
|
|
|
|
|
|
- name: Install Golang for Arch
|
2022-08-05 15:39:49 -05:00
|
|
|
become: true
|
2022-08-02 20:44:43 -05:00
|
|
|
community.general.pacman:
|
|
|
|
name: go
|
|
|
|
state: present
|
|
|
|
when: ansible_facts.distribution == 'Archlinux'
|
|
|
|
|
|
|
|
- name: Install Golang for RedHat based systems
|
2022-08-02 23:12:29 -05:00
|
|
|
become: true
|
2022-08-02 20:44:43 -05:00
|
|
|
ansible.builtin.dnf:
|
|
|
|
name: go-toolset
|
|
|
|
state: present
|
|
|
|
when: ansible_facts.os_family == 'RedHat'
|