86ad639f41
The option `systemd_lock_path` is intended to be set globally and locally however the global implementation has never been implemented. * The global option will ensure the run and lock path is setup for all services within the `systemd_services` array. * The local option provices a way to override a global lock path based on specific service needs. Change-Id: I373b8905c01ff666b5705bd3bb3c76c3e74a64ab
9 lines
866 B
Django/Jinja
9 lines
866 B
Django/Jinja
# {{ ansible_managed }}
|
|
|
|
{% if (item.systemd_lock_path is defined) or (systemd_lock_path is defined) %}
|
|
D {{ item.systemd_lock_path | default(systemd_lock_path) }} 2755 {{ item.systemd_user_name | default(systemd_user_name) }} {{ item.systemd_group_name | default(systemd_group_name) }}
|
|
D {{ (item.systemd_lock_path | default(systemd_lock_path)) | replace('lock', 'run') }} 2755 {{ item.systemd_user_name | default(systemd_user_name) }} {{ item.systemd_group_name | default(systemd_group_name) }}
|
|
{% endif %}
|
|
D /var/lock/{{ item.service_name | replace(' ', '_') }} 2755 {{ item.systemd_user_name | default(systemd_user_name) }} {{ item.systemd_group_name | default(systemd_group_name) }}
|
|
D /var/run/{{ item.service_name | replace(' ', '_') }} 2755 {{ item.systemd_user_name | default(systemd_user_name) }} {{ item.systemd_group_name | default(systemd_group_name) }}
|