[roles/node-exporter] Remove restart-retries for Docker 17.05.

This commit is contained in:
Jonathan Davies 2017-11-13 14:44:06 +00:00
parent fd6ed96e39
commit 8f058e66fb
2 changed files with 2 additions and 2 deletions
ansible/roles/node-exporter
defaults
tasks

@ -28,4 +28,4 @@ nodeexporter_tag: "v0.15.0"
nodeexporter_image_full: "{{ nodeexporter_image }}:{{ nodeexporter_tag }}"
nodeexporter_restart_policy: "unless-stopped"
nodeexporter_restart_retries: 10
#nodeexporter_restart_retries: 10

@ -8,7 +8,7 @@
privileged: "{{ item.value.privileged | default(omit) }}"
read_only: "{{ item.value.read_only | default(omit) }}"
restart_policy: "{{ nodeexporter_restart_policy }}"
restart_retries: "{{ nodeexporter_restart_retries }}"
restart_retries: "{{ nodeexporter_restart_retries | default(omit) }}"
state: "{{ (item.value.enabled and action != 'destroy') | ternary('started', 'absent') }}"
volumes: "{{ item.value.volumes }}"
with_dict: "{{ nodeexporter_services }}"