aboutsummaryrefslogtreecommitdiffstats
path: root/resources/ansible_roles
diff options
context:
space:
mode:
authorzhihui wu <wu.zhihui1@zte.com.cn>2017-05-25 13:56:21 +0800
committerzhihui wu <wu.zhihui1@zte.com.cn>2017-05-25 13:56:21 +0800
commite52b80edeab048248923cb6e08e7d490f2af05ee (patch)
treea8711f6c26ff5c4fbfba4ff7d70afe09b72b4b83 /resources/ansible_roles
parent00d8896a9b19ac063f31d117c0d04ccc542eeec4 (diff)
improve the regex for matching "cpu"
CPU brand should not include cpu speed. Change-Id: I6938150313fda092b83df981d3622535bdf7decb Signed-off-by: zhihui wu <wu.zhihui1@zte.com.cn>
Diffstat (limited to 'resources/ansible_roles')
-rw-r--r--resources/ansible_roles/inxi/tasks/main.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/ansible_roles/inxi/tasks/main.yml b/resources/ansible_roles/inxi/tasks/main.yml
index f6216df4..1050c9be 100644
--- a/resources/ansible_roles/inxi/tasks/main.yml
+++ b/resources/ansible_roles/inxi/tasks/main.yml
@@ -42,7 +42,7 @@
patterns:
- '.+\s+Host:\s+(?P<hostname>.+)\sKernel'
- '.+\sMemory:\s+(?P<memory>.+MB)\s'
- - '^CPU\(s\):\s+(?P<cpu>.+)'
+ - '^CPU\(s\):\s+(?P<cpu>.+)\sspeed\/max'
- '.+\sDistro:\s+(?P<os>.+)'
- '.+\sKernel:\s+(?P<kernel>.+)\sConsole'
- '.+\s+HDD Total Size:\s+(?P<disk>.+)\s'