Skip to content

Ansible role for deploying a simple binary that runs as a systemd service

Notifications You must be signed in to change notification settings

uhlig-it/ansible-role-simple-systemd-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple_systemd_service

Ansible role for deploying a simple binary that runs as a systemd service; either as long-running job or invoked by an accompanying systemd timer.

Variables

systemd:
  target: network.target
  start_limit_interval: 5m
  start_limit_burst: 10
program:
  binary: /tmp/hello.amd64
  name: hello
  description: Says hello in a random language
  parameters:
    - --one
    - --two
  environment:
    foo: some
    bar: thing
  # zero or more of OnActiveSec, OnBootSec, OnStartupSec, OnUnitActiveSec, OnUnitInactiveSec
  # see https://www.freedesktop.org/software/systemd/man/systemd.timer.html#OnActiveSec=
  # if left empty, no timer will be installed and the binary is assumed to run as a daemon.
  timer:
    - OnUnitActiveSec=1m

TODO

About

Ansible role for deploying a simple binary that runs as a systemd service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published