No Description

Fabian Peter Hammerle bdbda7bc0b add option `systemd_unit_scope=global` 8 months ago
defaults bdbda7bc0b add option `systemd_unit_scope=global` 8 months ago
tasks bdbda7bc0b add option `systemd_unit_scope=global` 8 months ago
README.md bdbda7bc0b add option `systemd_unit_scope=global` 8 months ago

README.md

Ansible Role: Systemd Unit

Required Variables

systemd_unit_name: some.service

Optional Variables

systemd_unit_scope: global # all users (default: system)
systemd_unit_config: |
  [Unit]
  Description=…
  # …
systemd_unit_dropin_config: |
  [Service]
  LogLevelMax=notice
  # …
systemd_unit_state: started
systemd_unit_enabled: yes
systemd_unit_restart_if_active: no

Limitations

For systemd_unit_scope != "system" the following features are not yet supported: automatic daemon reloads, changing unit's state and enabling/disabling units