[ansible] Use collectd_config for plugins
[barometer.git] / docker / ansible / roles / config_files / tasks / capabilities.yml
index f57d55d..cfca03a 100644 (file)
@@ -1,4 +1,4 @@
-#Copyright 2019 OPNFV and Intel Corporation
+# Copyright 2019-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.
 ---
 
 - name: enable capabilities plugin
-  template:
-    src: capabilities.conf.j2
-    dest: "{{ config_file_dir }}/capabilities.conf"
+  set_fact:
+    collectd_plugins: "{{ collectd_plugins | union(['capabilities']) | unique }}"
   tags:
     - capabilities
 
-