[ansible] Use collectd_config for plugins
[barometer.git] / docker / ansible / roles / config_files / tasks / ipmi.yml
index 558d539..12913a8 100644 (file)
@@ -1,4 +1,4 @@
-#Copyright 2018 OPNFV and Intel Corporation
+# Copyright 2018-21 Anuket, Intel Corporation and others
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -52,9 +52,8 @@
      - ipmi
 
 - name: enable ipmi plugin
-  template:
-    src: ipmi.conf.j2
-    dest: "{{ config_file_dir }}/0_ipmi.conf"
+  set_fact:
+    collectd_plugins: '{{ collectd_plugins | union(["ipmi"]) | unique }}'
   when: (ipmi0_exists is succeeded) and (ipmi_devintf is succeeded) and (ipmi_devsi is succeeded)
   tags:
     - ipmi