Merge "Updates/Fix on Legal/License Headers"
[barometer.git] / docker / ansible / roles / config_files / tasks / main.yml
1 # Copyright 2018-2019 Intel Corporation and OPNFV. All rights reserved.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14 #
15 ---
16
17 - name: Clean collectd config dir path
18   file:
19     state: absent
20     path: "{{ config_file_dir }}"
21   tags:
22    - rm_config_dir
23    - always
24
25 - name: Create collectd.d folder on remote host
26   file:
27     path: "{{ config_file_dir }}"
28     force: yes
29     state: directory
30   tags:
31     - always
32
33 - name: enable capabilities plugin
34   import_tasks: capabilities.yml
35
36 - name: enable csv plugin
37   import_tasks: csv.yml
38
39 - name: enable default plugins
40   import_tasks: default_read_plugins.yml
41
42 - name: enable dpdk plugins
43   import_tasks: dpdk.yml
44
45 - name: enable exec plugin
46   import_tasks: exec.yml
47
48 - name: enable hugepages plugin
49   import_tasks: hugepages.yml
50
51 - name: enable kafka plugin
52   import_tasks: kafka.yml
53
54 - name: enable logfile plugin
55   import_tasks: logfile.yml
56
57 - name: enable logparser plugin
58   import_tasks: logparser.yml
59
60 - name: enable mcelog plugin
61   import_tasks: mcelog.yml
62
63 - name: enable network plugin
64   import_tasks: network.yml
65
66 - name: enable prometheus plugin
67   import_tasks: prometheus.yml
68   when: groups['prometheus_hosts'] is defined
69
70 - name: enable pmu plugin
71   import_tasks: pmu.yml
72
73 - name: enable rdt plugin
74   import_tasks: rdt.yml
75
76 - name: enable rddtool plugin
77   import_tasks: rrdtool.yml
78
79 - name: enable snmp_agent plugin
80   import_tasks: snmp_agent.yml
81
82 - name: enable syslog plugin
83   import_tasks: syslog.yml
84
85 - name: enable virt plugin
86   import_tasks: virt.yml
87
88 - name: enable ipmi plugin
89   include: ipmi.yml
90
91 - name: enable uuid plugin
92   include: uuid.yml
93
94 - name: copy additional config files
95   include: additional_configs.yml