Creates overrides for existing systemd unit files.
The defined systemd unit file that you want to override must be already in place.
unit_config_enabled: false
Enable this explicitly on a host or group basis.
unit_item.type
Defaults to .service
through the _default_unit_type
variable. This will be added to the unit file name.
unit_config: []
See example for usage.
No dependencies.
- hosts: server
become: true
roles:
- role: chrisvanmeer.unit_config
vars:
unit_config_enabled: true
unit_config:
- name: jira
Unit:
Before: ngninx.service
EUPL-1.2
- Chris van Meer c.v.meer@atcomputing.nl