Merge "Add 'load' boolean for services."
This commit is contained in:
commit
17852bc111
@ -121,6 +121,7 @@ systemd_environment: {}
|
|||||||
# will place only overrides for the existing service.
|
# will place only overrides for the existing service.
|
||||||
# `systemd_run_dir` -- (optional) Run directory that will be used for service runtime. Service slice or name is added to the path
|
# `systemd_run_dir` -- (optional) Run directory that will be used for service runtime. Service slice or name is added to the path
|
||||||
# `systemd_lock_dir` -- (optional) Lock directory that will be used for service runtime. Service slice or name is added to the path
|
# `systemd_lock_dir` -- (optional) Lock directory that will be used for service runtime. Service slice or name is added to the path
|
||||||
|
# `load` -- (optional) Boolean to set if the service is loaded. Socket activated services with '@' may not need to be loaded.
|
||||||
|
|
||||||
# Under the service dictionary the "sockets" key can be added, which may contain list of the sockets
|
# Under the service dictionary the "sockets" key can be added, which may contain list of the sockets
|
||||||
# for the given service_name. Each socket in the lsit may have following structure:
|
# for the given service_name. Each socket in the lsit may have following structure:
|
||||||
|
@ -146,6 +146,8 @@
|
|||||||
enabled: "{{ item.enabled | default(systemd_service_enabled) }}"
|
enabled: "{{ item.enabled | default(systemd_service_enabled) }}"
|
||||||
state: "{{ (item.timer is defined) | ternary(omit, (item.state | default(omit))) }}"
|
state: "{{ (item.timer is defined) | ternary(omit, (item.state | default(omit))) }}"
|
||||||
with_items: "{{ systemd_services }}"
|
with_items: "{{ systemd_services }}"
|
||||||
|
when:
|
||||||
|
- item.load | default(True)
|
||||||
tags:
|
tags:
|
||||||
- systemd-service
|
- systemd-service
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user