Ansible Golang Service

Ansible Golang Service

Ansible role for deploying and running a Golang binary as a systemd service

  • Copy the files into your playbook and set the service_name and base_path to your application.
  • The service uses rsyslog to create error.log and access.log.
  • Logrotate config included.
  • Handles Beego framework logging.

Install Solr as systemd with restart on failure

Using will install solr with a init.d file which will work well as a service but will not restart on crash. So this ansible script should install solr as a service using systemd: