Skip to content

sansible/golang

Repository files navigation

Golang

Master: Build Status
Develop: Build Status

This roles installs Golang.

Installation and Dependencies

To install run ansible-galaxy install sansible.golang or add this to your roles.yml.

- name: sansible.golang
  version: v2.0

and run ansible-galaxy install -p ./roles -r roles.yml

Tags

This role uses one tag: build

  • build - Installs Golang and all its dependencies.

Examples

To install:

- name: Install and configure Golang
  hosts: "somehost"

  roles:
    - role: sansible.golang

Setup Golang workspace for a user:

- name: Install and configure Golang
  hosts: "somehost"

  roles:
    - role: sansible.golang
      sansible_golang_workspace_user: api_user