Fix Telegraf container restarting issue

Telegraf always restart containers when doing reconfigure, due to
"pid_mode" attribut missing during compare_container.
Hence compare_container always evaluated to True.

Change-Id: I335816ebf99a218a5400b2baae5b55788459bfff
Closes-Bug: #1686349
This commit is contained in:
Bertrand Lallau 2017-04-26 11:04:32 +02:00
parent 3aba9c8e36
commit dfb115a047

View File

@ -56,6 +56,7 @@
name: "{{ item.value.container_name }}"
image: "{{ item.value.image }}"
volumes: "{{ item.value.volumes }}"
pid_mode: "{{ item.value.pid_mode }}"
register: check_telegraf_containers
when:
- action != "config"