mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Add explanation of windows upgrade details.
This commit is contained in:
parent
61c236be9e
commit
7309b2ad2a
2 changed files with 12 additions and 3 deletions
|
@ -1,4 +1,13 @@
|
||||||
# Upgrade to PowerShell 3.0
|
|
||||||
|
# Powershell script to upgrade a PowerShell 2.0 system to PowerShell 3.0
|
||||||
|
#
|
||||||
|
# some Ansible modules that may use Powershell 3 features, so systems may need
|
||||||
|
# to be upgraded. This may be used by a sample playbook. Refer to the windows
|
||||||
|
# documentation on docs.ansible.com for details.
|
||||||
|
#
|
||||||
|
# - hosts: windows
|
||||||
|
# tasks:
|
||||||
|
# - script: upgrade_to_ps3.ps1
|
||||||
|
|
||||||
# Get version of OS
|
# Get version of OS
|
||||||
|
|
||||||
|
@ -68,4 +77,4 @@ else
|
||||||
$FileName = $DownLoadUrl.Split('/')[-1]
|
$FileName = $DownLoadUrl.Split('/')[-1]
|
||||||
download-file $downloadurl "$powershellpath\$filename"
|
download-file $downloadurl "$powershellpath\$filename"
|
||||||
|
|
||||||
."$powershellpath\$filename" /quiet /log "C:\powershell\install.log"
|
."$powershellpath\$filename" /quiet
|
||||||
|
|
|
@ -31,4 +31,4 @@ $ ansible -i hosts -c winrm -m win_get_url -a "url=http://www.example.com/earthr
|
||||||
win_get_url:
|
win_get_url:
|
||||||
url: 'http://www.example.com/earthrise.jpg'
|
url: 'http://www.example.com/earthrise.jpg'
|
||||||
dest: 'C:\Users\RandomUser\earthrise.jpg'
|
dest: 'C:\Users\RandomUser\earthrise.jpg'
|
||||||
'''
|
'''
|
||||||
|
|
Loading…
Reference in a new issue