1、增加mrzcpd 对device list的支持
2、增加sapp 的internal 和external interface 的网卡list的支持 3、增加卸载部署脚本 4、增加查询指定rpm安装情况部署脚本
This commit is contained in:
41
tasks/collect/collect_rpm_info.yml
Normal file
41
tasks/collect/collect_rpm_info.yml
Normal file
@@ -0,0 +1,41 @@
|
||||
- hosts: platform
|
||||
remote_user: root
|
||||
tasks:
|
||||
- name: "collect rpm info: excute shell to get rpm install info"
|
||||
shell: rpm -q {{item}}
|
||||
with_items:
|
||||
- libcjson
|
||||
- libdocumentanalyze
|
||||
- libmaatframe
|
||||
- libMESA_field_stat
|
||||
- libMESA_field_stat2
|
||||
- libMESA_handle_logger
|
||||
- libMESA_htable
|
||||
- libMESA_prof_load
|
||||
- librdkafka
|
||||
- librulescan
|
||||
- libtsglua
|
||||
- libwiredcfg
|
||||
- libWiredLB
|
||||
- lz4
|
||||
- libbreakpad_mini
|
||||
- dns
|
||||
- ftp
|
||||
- http
|
||||
- mail
|
||||
- quic
|
||||
- ssl
|
||||
- mrzcpd
|
||||
- sapp
|
||||
register: rpm_results
|
||||
ignore_errors: yes
|
||||
|
||||
- name: "collect rpm info: combine list format for output rpm install infomation"
|
||||
set_fact:
|
||||
install_info: '{{ install_info | default([]) + [{"name": item.item, "uninstall": item.failed, "version": item.stdout}] | list }}'
|
||||
with_items: "{{ rpm_results.results }}"
|
||||
|
||||
|
||||
- name: "collect rpm info: output rpm install infomation"
|
||||
debug:
|
||||
var: install_info
|
||||
Reference in New Issue
Block a user