From 6b47d8284b25bcbdc814878494a7ef005b66cffc Mon Sep 17 00:00:00 2001 From: liyingjun Date: Wed, 8 Feb 2017 03:40:00 -0500 Subject: [PATCH] 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 --- ansible/roles/telegraf/tasks/config.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/ansible/roles/telegraf/tasks/config.yml b/ansible/roles/telegraf/tasks/config.yml index 3a04581073..45a420e64d 100644 --- a/ansible/roles/telegraf/tasks/config.yml +++ b/ansible/roles/telegraf/tasks/config.yml @@ -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"