Code Monkey home page Code Monkey logo

ansible-go-module's Introduction

ansible-go-module

Build Status

Manage go packages with go command.

https://galaxy.ansible.com/suzuki-shunsuke/go-module/

Notice

  • This module supports only the "go get" command.
  • This module doesn't support the check mode.
  • If this module succeeds, the result's changed attribute is always true.

Requirements

  • Go

Install

This module is distributed in the Ansible Galaxy. So you can install this with ansible-galaxy command.

$ ansible-galaxy install suzuki-shunsuke.go-module
# playbook.yml

- hosts: default
  roles:
  # After you call this role, you can use this module.
  - suzuki-shunsuke.go-module

Options

parameter required default choices comments
name yes The name of go package to install
executable no The executable path of go command
install no yes bool If no, the -d option is added to "go get" command
update no no bool If yes, the -u option is added to "go get" command
command no get get The subcommand of "go" command. Now support only "get"

Example

# Install hub
go:
  name: github.com/github/hub

# Specify the path of go command
go:
  name: github.com/github/hub
  executable: /usr/local/go/bin/go

# Not install
go:
  name: github.com/github/hub
  install: no

# Update
go:
  name: github.com/github/hub
  update: yes

Licence

MIT

For developers

Requirements

  • Vagrant
  • Ansible

Setup test

$ cd tests
$ ansible-galaxy install -r roles.yml

Test in Vagrant Provisioning

$ cd tests
$ vagrant up --provision-with=ansible
$ vagrant up --provision-with=ansible_local

Test in localhost

$ ansible-playbook test.yml

ansible-go-module's People

Contributors

suzuki-shunsuke avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.