In latest Docker 17.05 restart-retires and unless-stopped are
mutually exclusive. Remove restart-retries where used.
This commit is contained in:
parent
ba6d30c10a
commit
20e3b75547
@ -30,4 +30,4 @@ docker_registry_tag: "latest"
|
||||
docker_registry_image_full: "{{ docker_registry_image }}:{{ docker_registry_tag }}"
|
||||
|
||||
docker_registry_restart_policy: "unless-stopped"
|
||||
docker_registry_restart_retries: 10
|
||||
#docker_registry_restart_retries:
|
||||
|
@ -7,7 +7,7 @@
|
||||
privileged: "{{ item.value.privileged | default(omit) }}"
|
||||
read_only: "{{ item.value.read_only | default(omit) }}"
|
||||
restart_policy: "{{ docker_registry_restart_policy }}"
|
||||
restart_retries: "{{ docker_registry_restart_retries }}"
|
||||
restart_retries: "{{ docker_registry_restart_retries | default(omit) }}"
|
||||
state: "{{ (item.value.enabled and action != 'destroy') | ternary('started', 'absent') }}"
|
||||
volumes: "{{ item.value.volumes }}"
|
||||
with_dict: "{{ docker_registry_services }}"
|
||||
|
@ -34,4 +34,4 @@ inspection_store_tag: "latest"
|
||||
inspection_store_image_full: "{{ inspection_store_image }}:{{ inspection_store_tag }}"
|
||||
|
||||
inspection_store_restart_policy: "unless-stopped"
|
||||
inspection_store_restart_retries: 10
|
||||
#inspection_store_restart_retries:
|
||||
|
@ -7,7 +7,7 @@
|
||||
privileged: "{{ item.value.privileged | default(omit) }}"
|
||||
read_only: "{{ item.value.read_only | default(omit) }}"
|
||||
restart_policy: "{{ inspection_store_restart_policy }}"
|
||||
restart_retries: "{{ inspection_store_restart_retries }}"
|
||||
restart_retries: "{{ inspection_store_restart_retries | default(omit) }}"
|
||||
state: "{{ item.value.enabled | ternary('started', 'absent') }}"
|
||||
volumes: "{{ item.value.volumes }}"
|
||||
with_dict: "{{ inspection_store_services }}"
|
||||
|
@ -27,4 +27,4 @@ opensm_tag: "latest"
|
||||
opensm_image_full: "{{ opensm_image }}:{{ opensm_tag }}"
|
||||
|
||||
opensm_restart_policy: "unless-stopped"
|
||||
opensm_restart_retries: 10
|
||||
#opensm_restart_retries:
|
||||
|
@ -7,7 +7,7 @@
|
||||
privileged: "{{ item.value.privileged | default(omit) }}"
|
||||
read_only: "{{ item.value.read_only | default(omit) }}"
|
||||
restart_policy: "{{ opensm_restart_policy }}"
|
||||
restart_retries: "{{ opensm_restart_retries }}"
|
||||
restart_retries: "{{ opensm_restart_retries | default(omit) }}"
|
||||
state: "{{ (item.value.enabled and action != 'destroy') | ternary('started', 'absent') }}"
|
||||
volumes: "{{ item.value.volumes }}"
|
||||
with_dict: "{{ opensm_services }}"
|
||||
|
Loading…
Reference in New Issue
Block a user