diff options
author | wu.zhihui <wu.zhihui1@zte.com.cn> | 2017-02-04 12:22:19 +0800 |
---|---|---|
committer | wu.zhihui <wu.zhihui1@zte.com.cn> | 2017-02-20 10:26:44 +0800 |
commit | e958f3c5db5dd095e0debcb64e1ae581c2966e07 (patch) | |
tree | a732a8e3aea26b7f8250b728261be98dae1b1120 /qtip/driver/ansible/playbook/bwn_ng.yaml | |
parent | f2d021c72b38845954755bab54aa13b4b2aad725 (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/bwn_ng.yaml')
-rw-r--r-- | qtip/driver/ansible/playbook/bwn_ng.yaml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/qtip/driver/ansible/playbook/bwn_ng.yaml b/qtip/driver/ansible/playbook/bwn_ng.yaml new file mode 100644 index 00000000..99477856 --- /dev/null +++ b/qtip/driver/ansible/playbook/bwn_ng.yaml @@ -0,0 +1,23 @@ +############################################################################## +# 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: Install bwm-ng when CentOS + yum: + name: bwm-ng + state: present + when: ansible_os_family == "RedHat" + +- name: Install bwm-ng when Ubuntu + apt: + name: bwm-ng + state: present + update_cache: yes + when: ansible_os_family == "Debian" + +- name: Run bwm-ng + shell: bwm-ng -o plain -c 1 > $HOME/qtip_result/bwm-dump.log
\ No newline at end of file |