Improve YAML examples - windows/win_package.py (#19407)

* Improve YAML examples - windows/win_package.py

* Fix quote

* Fix typo
This commit is contained in:
Fabio Alessandro Locati 2016-12-19 22:58:28 +01:00 committed by Matt Davis
parent 3c64ccd6e1
commit 06abeea5ad

View file

@ -77,23 +77,22 @@ options:
'''
EXAMPLES = '''
# Playbook example
- name: Install the vc thingy
- name: Install the Visual C thingy
win_package:
name="Microsoft Visual C thingy"
path="http://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x64.exe"
Product_Id="{CF2BEA3C-26EA-32F8-AA9B-331F7E34BA97}"
Arguments="/install /passive /norestart"
name: Microsoft Visual C thingy
path: http://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x64.exe
Product_Id: '{CF2BEA3C-26EA-32F8-AA9B-331F7E34BA97}'
Arguments: /install /passive /norestart
# Install/uninstall an msi-based package
- name: Install msi-based package (Remote Desktop Connection Manager)
- name: Install Remote Desktop Connection Manager from msi
win_package:
path: "https://download.microsoft.com/download/A/F/0/AF0071F3-B198-4A35-AA90-C68D103BDCCF/rdcman.msi"
product_id: "{0240359E-6A4C-4884-9E94-B397A02D893C}"
- name: Uninstall msi-based package
path: https://download.microsoft.com/download/A/F/0/AF0071F3-B198-4A35-AA90-C68D103BDCCF/rdcman.msi
product_id: '{0240359E-6A4C-4884-9E94-B397A02D893C}'
- name: Uninstall Remote Desktop Connection Manager installed from msi
win_package:
path: "https://download.microsoft.com/download/A/F/0/AF0071F3-B198-4A35-AA90-C68D103BDCCF/rdcman.msi"
product_id: "{0240359E-6A4C-4884-9E94-B397A02D893C}"
path: https://download.microsoft.com/download/A/F/0/AF0071F3-B198-4A35-AA90-C68D103BDCCF/rdcman.msi
product_id: '{0240359E-6A4C-4884-9E94-B397A02D893C}'
state: absent
'''