ghyde.golang
golang
Install and configure Go on Fedora.
Role Variables
| name | description | type | default |
|---|---|---|---|
| go_111_module | Enable Go 1.11 modules | One of [auto, on, off] | auto |
| go_install_packages | A list of Go packages (name) and the path to a file created after installation (created_file) |
list | [] |
| go_user_gopath | User's GOPATH | string | "{{ ansible_user_dir }}/go" |
| go_os_output_gopath | If set to 1, create an isolated GOPATH inside _output using symlinks to avoid other packages being accidentally included | bool | 1 |
Example Playbook
- hosts: servers
tasks:
- import_role:
name: golang
vars:
go_111_module: auto
go_user_gopath: "{{ ansible_user_dir }}/go"
go_os_output_path: 1
go_install_packages:
- name: github.com/go-delve/delve/cmd/dlv
created_file: "{{ go_user_gopath}}/bin/dlv"
Extra Tasks
upgrade.yml contains tasks for upgrading Go and packages
listed in go_install_packages. However, these tasks are not executed by default.
License
Install
ansible-galaxy install ghyde.golangLicense
mit
Downloads
83
Owner
Just your average software engineering, Japanese speaking, Army training, computer gaming, Linux fanboy.
