From e958f3c5db5dd095e0debcb64e1ae581c2966e07 Mon Sep 17 00:00:00 2001 From: "wu.zhihui" Date: Sat, 4 Feb 2017 12:22:19 +0800 Subject: 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 --- qtip/driver/ansible/playbook/top.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 qtip/driver/ansible/playbook/top.yaml (limited to 'qtip/driver/ansible/playbook/top.yaml') 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 -- cgit 1.2.3-korg