标签:ansible管理windows ansible安装windows软件包
支持exe软件包的ansible模块,搜集了2个:以安装vc2013(32位)软件包vcredist_x86.exe为例:
手动安装vcredist_x86.exe,得到product_id:
{13A4EE12-23EA-3371-91EE-EFB36DDFFF3E}
编写playbook
[root@xxx ~]# cat vc.yaml
---
- name: Install vc
gather_facts: False
hosts: all
tasks:
- name: install vc 2013
win_package:
path: D:\upload\vcredist_x86.exe
product_id: ‘{13A4EE12-23EA-3371-91EE-EFB36DDFFF3E}‘
arguments: /install /passive /norestart
(完成)
标签:ansible管理windows ansible安装windows软件包
原文地址:http://blog.51cto.com/sndapk/2110946