|
@@ -6,7 +6,11 @@
|
|
|
{{ systemd_unit_config }}
|
|
|
mode: a=r
|
|
|
vars: ©_config_file_vars
|
|
|
- _config_dir_path: '/etc/systemd/{{ "user" if (systemd_unit_scope == "global") else systemd_unit_scope }}'
|
|
|
+ _config_dir_path: >-
|
|
|
+ {{ '~/.config/systemd/user' if systemd_unit_scope == 'user'
|
|
|
+ else '/etc/systemd/' + (
|
|
|
+ "user" if systemd_unit_scope == "global" else systemd_unit_scope
|
|
|
+ ) }}
|
|
|
register: _config_file
|
|
|
when: systemd_unit_config is defined
|
|
|
- name: 'create parent folder for drop-in config files of systemd unit {{ systemd_unit_name }}'
|