Skip to content

ait-cs-IaaS/acr-ansible-simple-systemd-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible-Role: acr-ansible-simple-systemd-service

AIT-CyberRange: Create and run a systemd service

Requirements

  • Debian or Ubuntu

Role Variables

app_name: app
app_user: "{{ app_name }}"
app_group: "{{ app_user }}"

app_basepath: /opt/{{ app_name }}
app_directory: "{{ app_name }}"

app_description: Service {{ app_name }}
app_service_file: templates/app.service.j2

app_autostart: true
app_service_execstart: ""

Example Playbook

- hosts: all
  roles:
    - acr-ansible-simple-systemd-service
      vars:
        app_name: appname
        app_user: "{{ appname_user }}"
        app_basepath: "{{ appname_basepath }}"
        app_service_execstart: "{{ appname_service_execstart }}"

License

GPL-3.0

Author

  • Lenhard Reuter

About

Create and run a systemd service

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages