container, service: Support reloading containers on template file change
This commit is contained in:
@@ -24,7 +24,9 @@
|
||||
dest: "{{ item[1] }}"
|
||||
mode: "{{ item[0].mode | default('0644') }}"
|
||||
validate: "{{ validate if item[0].template_validate_command is defined else omit }}"
|
||||
notify: Restart container service {{ service_name }}
|
||||
notify: >-
|
||||
{{ 'Reload' if service_container_reload_method != 'none' else 'Restart' }}
|
||||
container service {{ service_name }}
|
||||
loop: "{{ _service_all_template_mounts | zip(_service_all_template_mount_host_files) }}"
|
||||
vars:
|
||||
validate: >-
|
||||
|
||||
Reference in New Issue
Block a user