Skip to content

Golang ansible role allows you to install a specific Go version (only linux OS is supported at the moment) including setting up an example hello world Go web application as a systemd service

Notifications You must be signed in to change notification settings

raykrishardi/golang-ansible-role

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Golang Ansible Role

The Golang ansible role allows you to install a specific Go version (only linux OS is supported at the moment) including setting up an example hello world Go web application as a systemd service.

  • For Windows, you could simply install go using choco install golang
  • For MacOS, you could simply install go using brew install go

Getting Started

Update the inventory file

Adjust the example.inventory.ini file according to your target host and SSH credentials then rename the file to inventory.ini

Run on local machine

ansible-playbook testapp.yml -i inventory.ini

Test on target machine (defined in the inventory file)

You could test whether the example hello world Go web application has been running successfully using the following commands on the target machine defined in the inventory file:

systemctl status hello-world
curl localhost:8080

About

Golang ansible role allows you to install a specific Go version (only linux OS is supported at the moment) including setting up an example hello world Go web application as a systemd service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages