From 06abeea5ad0cbff6f9ae75f133dbf3c5a14510f7 Mon Sep 17 00:00:00 2001 From: Fabio Alessandro Locati Date: Mon, 19 Dec 2016 22:58:28 +0100 Subject: [PATCH] Improve YAML examples - windows/win_package.py (#19407) * Improve YAML examples - windows/win_package.py * Fix quote * Fix typo --- lib/ansible/modules/windows/win_package.py | 25 +++++++++++----------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/lib/ansible/modules/windows/win_package.py b/lib/ansible/modules/windows/win_package.py index 9c358fcd84..7136f4bb3c 100644 --- a/lib/ansible/modules/windows/win_package.py +++ b/lib/ansible/modules/windows/win_package.py @@ -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 '''