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:
parent
3aba9c8e36
commit
dfb115a047
@ -56,6 +56,7 @@
|
|||||||
name: "{{ item.value.container_name }}"
|
name: "{{ item.value.container_name }}"
|
||||||
image: "{{ item.value.image }}"
|
image: "{{ item.value.image }}"
|
||||||
volumes: "{{ item.value.volumes }}"
|
volumes: "{{ item.value.volumes }}"
|
||||||
|
pid_mode: "{{ item.value.pid_mode }}"
|
||||||
register: check_telegraf_containers
|
register: check_telegraf_containers
|
||||||
when:
|
when:
|
||||||
- action != "config"
|
- action != "config"
|
||||||
|
Loading…
Reference in New Issue
Block a user