aboutsummaryrefslogtreecommitdiffstats
path: root/qtip/driver/ansible/playbook/top.yaml
diff options
context:
space:
mode:
authorwu.zhihui <wu.zhihui1@zte.com.cn>2017-02-04 12:22:19 +0800
committerwu.zhihui <wu.zhihui1@zte.com.cn>2017-02-20 10:26:44 +0800
commite958f3c5db5dd095e0debcb64e1ae581c2966e07 (patch)
treea732a8e3aea26b7f8250b728261be98dae1b1120 /qtip/driver/ansible/playbook/top.yaml
parentf2d021c72b38845954755bab54aa13b4b2aad725 (diff)
code refactor: ansible playbook about system info
- use module yum and apt instead of shell command - break sys_info_pbook.yaml into some small playbooks Change-Id: I33b36fa826c0e668e4a74846ad4da7f4a245a33f Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
Diffstat (limited to 'qtip/driver/ansible/playbook/top.yaml')
-rw-r--r--qtip/driver/ansible/playbook/top.yaml10
1 files changed, 10 insertions, 0 deletions
diff --git a/qtip/driver/ansible/playbook/top.yaml b/qtip/driver/ansible/playbook/top.yaml
new file mode 100644
index 00000000..8de7e3d6
--- /dev/null
+++ b/qtip/driver/ansible/playbook/top.yaml
@@ -0,0 +1,10 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+- name: Collect cpu usage
+ shell: top -bn1 > $HOME/qtip_result/top.log