Fix telegraf task

When enabling telegraf, task failed with "the field 'vars' has an invalid value,
which appears to include a variable that is undefined. The error was: 'dict
object' has no attribute 'telegraf_services'"

Change-Id: I6dd5c401bf9b673685ad1b4a20f85c55ce04abbc
Closes-bug: #1662807
This commit is contained in:
liyingjun 2017-02-08 03:40:00 -05:00
parent 0a8e2a6206
commit 6b47d8284b

View File

@ -10,8 +10,6 @@
with_dict: "{{ telegraf_services }}"
- name: Copying over default config.json files
vars:
service: "{{ telegraf_services['telegraf_services'] }}"
template:
src: "telegraf.json.j2"
dest: "{{ node_config_directory }}/telegraf/config.json"