d70919b3db92e49557ced23ebdd2c8de3a4a6797
[barometer.git] / docker / ansible / roles / config_files / tasks / default_read_import.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: enable contextswitch  plugin
17   replace:
18       path: "{{ config_file_dir }}/default_read_plugins.conf"
19       regexp: '(\s+)#LoadPlugin contextswitch(\s+.*)?$'
20       replace: '\1LoadPlugin contextswitch\2'
21   tags:
22     - contextswitch
23
24 - name: enable cpu plugin
25   replace:
26       path: "{{ config_file_dir }}/default_read_plugins.conf"
27       regexp: '(\s+)#LoadPlugin cpu(\s+.*)?$'
28       replace: '\1LoadPlugin cpu\2'
29   tags:
30     - cpu
31
32 - name: enable cpufreq plugin
33   replace:
34       path: "{{ config_file_dir }}/default_read_plugins.conf"
35       regexp: '(\s+)#LoadPlugin cpufreq(\s+.*)?$'
36       replace: '\1LoadPlugin cpufreq\2'
37   tags:
38     - cpufreq
39
40 - name: enable df plugin
41   replace:
42       path: "{{ config_file_dir }}/default_read_plugins.conf"
43       regexp: '(\s+)#LoadPlugin df(\s+.*)?$'
44       replace: '\1LoadPlugin df\2'
45   tags:
46     - df
47
48 - name: enable disk plugin
49   replace:
50       path: "{{ config_file_dir }}/default_read_plugins.conf"
51       regexp: '(\s+)#LoadPlugin disk(\s+.*)?$'
52       replace: '\1LoadPlugin disk\2'
53   tags:
54     - disk
55
56 - name: enable ethstat plugin
57   replace:
58       path: "{{ config_file_dir }}/default_read_plugins.conf"
59       regexp: '(\s+)#LoadPlugin ethstat(\s+.*)?$'
60       replace: '\1LoadPlugin ethstat\2'
61   tags:
62     - ethstat
63
64 - name: enable ipc plugin
65   replace:
66       path: "{{ config_file_dir }}/default_read_plugins.conf"
67       regexp: '(\s+)#LoadPlugin ipc(\s+.*)?$'
68       replace: '\1LoadPlugin ipc\2'
69   tags:
70     - ipc
71
72 - name: enable irq plugin
73   replace:
74       path: "{{ config_file_dir }}/default_read_plugins.conf"
75       regexp: '(\s+)#LoadPlugin irq(\s+.*)?$'
76       replace: '\1LoadPlugin irq\2'
77   tags:
78     - irq
79
80 - name: enable load plugin
81   replace:
82       path: "{{ config_file_dir }}/default_read_plugins.conf"
83       regexp: '(\s+)#LoadPlugin load(\s+.*)?$'
84       replace: '\1LoadPlugin load\2'
85   tags:
86     - load
87
88 - name: enable memory plugin
89   replace:
90       path: "{{ config_file_dir }}/default_read_plugins.conf"
91       regexp: '(\s+)#LoadPlugin memory(\s+.*)?$'
92       replace: '\1LoadPlugin memory\2'
93   tags:
94     - memory
95
96 - name: enable numa plugin
97   replace:
98       path: "{{ config_file_dir }}/default_read_plugins.conf"
99       regexp: '(\s+)#LoadPlugin numa(\s+.*)?$'
100       replace: '\1LoadPlugin numa\2'
101   tags:
102     - numa
103
104 - name: enable processes plugin
105   replace:
106       path: "{{ config_file_dir }}/default_read_plugins.conf"
107       regexp: '(\s+)#LoadPlugin processes(\s+.*)?$'
108       replace: '\1LoadPlugin processes\2'
109   tags:
110     - processes
111
112 - name: enable swap plugin
113   replace:
114       path: "{{ config_file_dir }}/default_read_plugins.conf"
115       regexp: '(\s+)#LoadPlugin swap(\s+.*)?$'
116       replace: '\1LoadPlugin swap\2'
117   tags:
118     - swap
119
120 - name: enable turbostat plugin
121   replace:
122       path: "{{ config_file_dir }}/default_read_plugins.conf"
123       regexp: '(\s+)#LoadPlugin turbostat(\s+.*)?$'
124       replace: '\1LoadPlugin turbostat\2'
125   tags:
126     - turbostat
127
128 - name: enable uptime plugin
129   replace:
130       path: "{{ config_file_dir }}/default_read_plugins.conf"
131       regexp: '(\s+)#LoadPlugin uptime(\s+.*)?$'
132       replace: '\1LoadPlugin uptime\2'
133   tags:
134     - uptime