Skip to content

borisskert/ansible-golang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-golang

Installs the golang tools on a Ubuntu/Debian machine.

Requirements

CPU architecture:

  • x86_64 / amd64
  • armv7l / armhf
  • aarch64 / arm64

Operating systems:

  • Ubuntu:
    • 16.04 (xenial)
    • 18.04 (bionic)
    • 20.04 (focal)
  • Debian
    • 9 (stretch)
    • 10 (buster)

Role parameters

Variable Type Mandatory? Default Description
golang_version text no 1.14.4 The golang version

Usage

Add to requirements.yml

- name: install-golang
  src: https://github.com/borisskert/ansible-golang.git
  scm: git

example playbook.yml

- hosts: test_machine
  become: yes

  roles:
    - role: install-golang
      golang_version: 1.14.4

Testing

Requirements:

Run within docker

molecule test --all

I recommend to use pyenv for local testing. Within the Github Actions pipeline I use my molecule Docker image.

License

MIT

Author Information

About

Ansible-role to install the golang tools on a Ubuntu/Debian machine.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published