Ansible role to manage systemd services
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Zuul 05066f5bef Merge "Missing document start "---"" 10 hours ago
defaults Require network-online insetad of network target 11 months ago
doc Updated from OpenStack Ansible Tests 4 months ago
examples Add tests to the service role 2 years ago
handlers Build out the PrivateNetwork function for services 1 year ago
html-docs Drop static content from html-docs 4 months ago
meta Add integrated coverage 10 months ago
releasenotes Replace git.openstack.org with opendev.org 4 months ago
tasks Build out the PrivateNetwork function for services 1 year ago
templates Build out the PrivateNetwork function for services 1 year ago
tests Build out the PrivateNetwork function for services 1 year ago
zuul.d Missing document start "---" 4 days ago
.gitignore Updated from OpenStack Ansible Tests 7 months ago
.gitreview OpenDev Migration Patch 11 months ago
CONTRIBUTING.rst Replace Chinese punctuation with English punctuation 1 year ago
LICENSE Initial Commit 2 years ago
README.md Add release note link in README 1 year ago
Vagrantfile Updated from OpenStack Ansible Tests 8 months ago
ansible-role-requirements.yaml Replace git.openstack.org with opendev.org 4 months ago
bindep.txt Updated from OpenStack Ansible Tests 2 weeks ago
manual-test.rc Initial Commit 2 years ago
run_tests.sh Updated from OpenStack Ansible Tests 8 months ago
setup.cfg Update home-page 1 year ago
setup.py Initial Commit 2 years ago
tox.ini [ussuri][goal] Updates for python 2.7 drop 4 weeks ago

README.md

Ansible systemd_service

This Ansible role that installs and configures systemd unit files and all of its corresponding services. This role requires the openstack-ansible-plugins repository to be available on your local system. The Ansible galaxy resolver will not retrieve this role for you. To get this role in place clone the plugins repository before installing this role.

# git clone https://github.com/openstack/openstack-ansible-plugins /etc/ansible/roles/plugins

Release notes for the project can be found at: https://docs.openstack.org/releasenotes/ansible-role-systemd_service

You can also use the ansible-galaxy command on the ansible-role-requirements.yml file.

# ansible-galaxy install -r ansible-role-requirements.yml

Example playbook
- name: Create a systemd unit file for ServiceX
  hosts: localhost
  become: true
  roles:
    - role: "systemd_service"
      systemd_services:
        # Normal Service
        - service_name: ServiceX
          execstarts:
            - /path/ServiceX --flag1

        # Timer Service (AKA CRON)
        - service_name: TimerServiceX
          execstarts:
            - /path/TimerServiceX --flag1
          timer:
            state: "started"
            options:
              OnBootSec: 30min
              OnUnitActiveSec: 1h
              Persistent: true
      tags:
        - servicex-init