use multiline string for dockerengine_service_override_unit
All checks were successful
continuous-integration/drone/pr Build is passing
All checks were successful
continuous-integration/drone/pr Build is passing
This commit is contained in:
parent
d483d01ff6
commit
537ef1c2fc
@ -18,7 +18,16 @@ dockerengine_ansible_deps:
|
||||
- docker
|
||||
|
||||
dockerengine_service: docker
|
||||
dockerengine_service_override_unit: []
|
||||
|
||||
# @var dockerengine_service_override_unit:description: >
|
||||
# Multiline string of options to add to the `systemd` service override unit section.
|
||||
# @end
|
||||
# @var dockerengine_service_override_unit: $ "_unset_"
|
||||
# @var dockerengine_service_override_unit:example: >
|
||||
# dockerengine_service_override_unit: |
|
||||
# After=time-sync.target
|
||||
# Requires=time-sync.target
|
||||
# @end
|
||||
|
||||
dockerengine_docker_group_enabled: False
|
||||
|
||||
|
@ -1,10 +1,9 @@
|
||||
#jinja2: lstrip_blocks: True
|
||||
{{ ansible_managed | comment }}
|
||||
{% if dockerengine_service_override_unit | default([]) | length > 0 %}
|
||||
{% if dockerengine_service_override_unit is defined %}
|
||||
[Unit]
|
||||
{% for item in dockerengine_service_override_unit %}
|
||||
{{ item }}
|
||||
{% endfor %}
|
||||
{{ dockerengine_service_override_unit }}
|
||||
{% endif %}
|
||||
[Service]
|
||||
EnvironmentFile=-/etc/sysconfig/docker
|
||||
ExecStart=
|
||||
|
Loading…
Reference in New Issue
Block a user