[ansible] Use collectd_config for virt and rdt
[barometer.git] / docker / ansible / roles / config_files / tasks / rdt.yml
index bad67b7..f0a4626 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.
@@ -29,9 +29,8 @@
     - rdt
 
 - name: enable rdt plugin
-  template:
-    src: rdt.conf.j2
-    dest: "{{ config_file_dir }}/rdt.conf"
+  set_fact:
+    collectd_plugins: "{{ collectd_plugins | union(['intel_rdt']) | unique }}"
   when: (rdt_result is succeeded) and (virt_file.stat.exists == False)
   tags:
     - rdt