From dfb115a0478909fc87ea4537d02a509c22ed813b Mon Sep 17 00:00:00 2001 From: Bertrand Lallau Date: Wed, 26 Apr 2017 11:04:32 +0200 Subject: [PATCH] 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 --- ansible/roles/telegraf/tasks/config.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible/roles/telegraf/tasks/config.yml b/ansible/roles/telegraf/tasks/config.yml index 45a420e64d..0b415ca5b8 100644 --- a/ansible/roles/telegraf/tasks/config.yml +++ b/ansible/roles/telegraf/tasks/config.yml @@ -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"