58cfec63a012693f568d9963dd5f5ba00eed271c
[barometer.git] / docker / ansible / roles / config_files / tasks / main.yml
1 #Copyright 2018 OPNFV and Intel Corporation
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 - name: Clean collectd config dir path
17   file:
18     state: absent
19     path: "{{ config_file_dir }}"
20   tags:
21    - rm_config_dir
22    - always
23
24 - name: Create collectd.d folder on remote host
25   file:
26     path: "{{ config_file_dir }}"
27     force: yes
28     state: directory
29   tags:
30     - always
31
32 - name: enable csv plugin
33   import_tasks: csv.yml
34
35 - name: enable default plugins
36   import_tasks: default_read_plugins.yml
37
38 - name: enable dpdk plugins
39   import_tasks: dpdk.yml
40
41 - name: enable exec plugin
42   import_tasks: exec.yml
43
44 - name: enable hugepages plugin
45   import_tasks: hugepages.yml
46
47 - name: enable kafka plugin
48   import_tasks: kafka.yml
49
50 - name: enable logfile plugin
51   import_tasks: logfile.yml
52
53 - name: enable logparser plugin
54   import_tasks: logparser.yml
55
56 - name: enable mcelog plugin
57   import_tasks: mcelog.yml
58
59 - name: enable network plugin
60   import_tasks: network.yml
61
62 - name: enable prometheus plugin
63   import_tasks: prometheus.yml
64   when: groups['prometheus_hosts'] is defined
65
66 - name: enable pmu plugin
67   import_tasks: pmu.yml
68
69 - name: enable rdt plugin
70   import_tasks: rdt.yml
71
72 - name: enable rddtool plugin
73   import_tasks: rrdtool.yml
74
75 - name: enable snmp_agent plugin
76   import_tasks: snmp_agent.yml
77
78 - name: enable syslog plugin
79   import_tasks: syslog.yml
80
81 - name: enable virt plugin
82   import_tasks: virt.yml
83
84 - name: enable ipmi plugin
85   include: ipmi.yml
86
87 - name: enable uuid plugin
88   include: uuid.yml
89
90 - name: copy additional config files
91   include: additional_configs.yml