Skip to content

Ansible role for services creation. Run and deploy your instances of any program by systemwide way!

Notifications You must be signed in to change notification settings

rh-messaging-qe/ansible-service-creator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Service creator | Ansible role

Build Status GitHub Issues GitHub Issues Contributions welcome License

Description

Create custom service for SystemD or SysV based operating systems.

Requirements

  • SystemD or Init.D on remote
  • Ansible >2.5

Role Variables

ansible-service-creator options

Name Default Value Description
service_opts {} Include settings for this role

Common Supported service_opts for SystemD

Name Default Value Description
Enabled False
Description Service for {{ item.key }}
After ""
Before ""
User ""
Group ""
Type ""
PIDfile ""
OOMScoreAdjust ""
Nice ""
ExecStart ""
ExecStartPre ""
ExecStartPost ""
ExecStop ""
ExecStopPost ""
ExecReload ""
Restart ""
RestartSec ""
TimeoutSec '30'
Wants ""
Requires ""
Environment ""
EnvironmentFile ""
WorkingDirectory ""
StandardInput ""
StandardOutput ""
StandardError ""
WantedBy ""
RequiredBy ""

Common supported service_opts for Init.D

Name Default Value Description
Enabled False
User ""
PIDFile ""
ExecStart ""
WorkingDirectory ""
StandardOutput ""
StandardError ""

Usage

- hosts: node01
  roles:
    - role: ansible-service-creator
      services_opts:
        qdrouterd01:
          Enabled: Yes
          Started: Yes
          ExecStart: "qdrouterd -c /etc/qdrouterd/qdrouterd-01.conf"
          User: "qdrouterd"
          Group: "qdrouterd"
        qdrouterd02:
          Enabled: No
          Started: No
          ExecStart: "qdrouterd -c /etc/qdrouterd/qdrouterd-02.conf"
          User: "qdrouterd"
          Group: "qdrouterd"

NOTICE

License

  • Apache 2.0

Author Information

Messaging QE team @ redhat.com

Initial work and current maintainer

About

Ansible role for services creation. Run and deploy your instances of any program by systemwide way!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages