1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Make documentation of win_unzip work on python3 as well

This commit is contained in:
Toshio Kuratomi 2016-06-04 10:47:42 -07:00 committed by Matt Clay
parent 11ddda60d0
commit f159597914

View file

@ -72,9 +72,9 @@ options:
author: Phil Schwartz author: Phil Schwartz
''' '''
EXAMPLES = ''' EXAMPLES = r'''
# This unzips a library that was downloaded with win_get_url, and removes the file after extraction # This unzips a library that was downloaded with win_get_url, and removes the file after extraction
$ ansible -i hosts -m win_unzip -a "src=C:\\LibraryToUnzip.zip dest=C:\\Lib rm=true" all $ ansible -i hosts -m win_unzip -a "src=C:\LibraryToUnzip.zip dest=C:\Lib rm=true" all
# Playbook example # Playbook example
# Simple unzip # Simple unzip
@ -102,12 +102,12 @@ $ ansible -i hosts -m win_unzip -a "src=C:\\LibraryToUnzip.zip dest=C:\\Lib rm=t
- name: Grab PSCX msi - name: Grab PSCX msi
win_get_url: win_get_url:
url: 'http://download-codeplex.sec.s-msft.com/Download/Release?ProjectName=pscx&DownloadId=923562&FileTime=130585918034470000&Build=20959' url: 'http://download-codeplex.sec.s-msft.com/Download/Release?ProjectName=pscx&DownloadId=923562&FileTime=130585918034470000&Build=20959'
dest: 'C:\\pscx.msi' dest: 'C:\pscx.msi'
- name: Install PSCX - name: Install PSCX
win_msi: win_msi:
path: 'C:\\pscx.msi' path: 'C:\pscx.msi'
- name: Unzip gz log - name: Unzip gz log
win_unzip: win_unzip:
src: "C:\\Logs\\application-error-logs.gz" src: "C:\Logs\application-error-logs.gz"
dest: "C:\\ExtractedLogs\\application-error-logs" dest: "C:\ExtractedLogs\application-error-logs"
''' '''