From 4bba66e664b03e33bb48ee77158714cf25089446 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Thu, 15 Mar 2018 00:10:58 +0100 Subject: [PATCH] doc: Update pscx examples (#37245) * win_chocolatey: replace pscx example PSCX is no longer distributed via Chocolatey: https://chocolatey.org/packages/pscx#comment-3762408157 * win_unzip example: install psxc via win_psmodule --- lib/ansible/modules/windows/win_chocolatey.py | 6 ++++-- lib/ansible/modules/windows/win_unzip.py | 11 +++-------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/lib/ansible/modules/windows/win_chocolatey.py b/lib/ansible/modules/windows/win_chocolatey.py index ccd9b9b7e8f..30122fbc007 100644 --- a/lib/ansible/modules/windows/win_chocolatey.py +++ b/lib/ansible/modules/windows/win_chocolatey.py @@ -167,7 +167,8 @@ EXAMPLES = r''' name: '{{ item }}' state: present with_items: - - pscx + - procexp + - putty - windirstat - name: uninstall multiple packages @@ -175,7 +176,8 @@ EXAMPLES = r''' name: '{{ item }}' state: absent with_items: - - pscx + - procexp + - putty - windirstat - name: Install curl using proxy diff --git a/lib/ansible/modules/windows/win_unzip.py b/lib/ansible/modules/windows/win_unzip.py index f658d01a7bf..d6d2f1491c6 100644 --- a/lib/ansible/modules/windows/win_unzip.py +++ b/lib/ansible/modules/windows/win_unzip.py @@ -84,15 +84,10 @@ EXAMPLES = r''' recurse: yes delete_archive: yes -# Install PSCX to use for extracting a gz file -- name: Grab PSCX msi - win_get_url: - url: http://download-codeplex.sec.s-msft.com/Download/Release?ProjectName=pscx&DownloadId=923562&FileTime=130585918034470000&Build=20959 - dest: C:\Windows\Temp\pscx.msi - - name: Install PSCX - win_msi: - path: C:\Windows\Temp\pscx.msi + win_psmodule: + name: Pscx + state: present ''' RETURN = r'''