mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Fix code-blocks to use correct syntax highlighting
This commit is contained in:
@@ -99,34 +99,8 @@ author: Henrik Wallström
|
||||
'''
|
||||
|
||||
EXAMPLES = '''
|
||||
# This return information about an existing host
|
||||
$ ansible -i vagrant-inventory -m win_iis_website -a "name='Default Web Site'" window
|
||||
host | success >> {
|
||||
"changed": false,
|
||||
"site": {
|
||||
"ApplicationPool": "DefaultAppPool",
|
||||
"Bindings": [
|
||||
"*:80:"
|
||||
],
|
||||
"ID": 1,
|
||||
"Name": "Default Web Site",
|
||||
"PhysicalPath": "%SystemDrive%\\inetpub\\wwwroot",
|
||||
"State": "Stopped"
|
||||
}
|
||||
}
|
||||
|
||||
# This stops an existing site.
|
||||
$ ansible -i hosts -m win_iis_website -a "name='Default Web Site' state=stopped" host
|
||||
|
||||
# This creates a new site.
|
||||
$ ansible -i hosts -m win_iis_website -a "name=acme physical_path=c:\\sites\\acme" host
|
||||
|
||||
# Change logfile .
|
||||
$ ansible -i hosts -m win_iis_website -a "name=acme physical_path=c:\\sites\\acme" host
|
||||
|
||||
|
||||
# Playbook example
|
||||
---
|
||||
# Start a website
|
||||
|
||||
- name: Acme IIS site
|
||||
win_iis_website:
|
||||
@@ -140,4 +114,30 @@ $ ansible -i hosts -m win_iis_website -a "name=acme physical_path=c:\\sites\\acm
|
||||
parameters: 'logfile.directory:c:\\sites\\logs'
|
||||
register: website
|
||||
|
||||
# Some commandline examples:
|
||||
|
||||
# This return information about an existing host
|
||||
# $ ansible -i vagrant-inventory -m win_iis_website -a "name='Default Web Site'" window
|
||||
# host | success >> {
|
||||
# "changed": false,
|
||||
# "site": {
|
||||
# "ApplicationPool": "DefaultAppPool",
|
||||
# "Bindings": [
|
||||
# "*:80:"
|
||||
# ],
|
||||
# "ID": 1,
|
||||
# "Name": "Default Web Site",
|
||||
# "PhysicalPath": "%SystemDrive%\\inetpub\\wwwroot",
|
||||
# "State": "Stopped"
|
||||
# }
|
||||
# }
|
||||
|
||||
# This stops an existing site.
|
||||
# $ ansible -i hosts -m win_iis_website -a "name='Default Web Site' state=stopped" host
|
||||
|
||||
# This creates a new site.
|
||||
# $ ansible -i hosts -m win_iis_website -a "name=acme physical_path=c:\\sites\\acme" host
|
||||
|
||||
# Change logfile.
|
||||
# $ ansible -i hosts -m win_iis_website -a "name=acme physical_path=c:\\sites\\acme" host
|
||||
'''
|
||||
|
||||
@@ -71,16 +71,16 @@ author: Phil Schwartz
|
||||
|
||||
EXAMPLES = r'''
|
||||
# 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
|
||||
|
||||
# Simple unzip
|
||||
---
|
||||
- name: Unzip a bz2 (BZip) file
|
||||
win_unzip:
|
||||
src: "C:\Users\Phil\Logs.bz2"
|
||||
dest: "C:\Users\Phil\OldLogs"
|
||||
creates: "C:\Users\Phil\OldLogs"
|
||||
src: C:\Users\Phil\Logs.bz2
|
||||
dest: C:\Users\Phil\OldLogs
|
||||
creates: C:\Users\Phil\OldLogs
|
||||
|
||||
# This playbook example unzips a .zip file and recursively decompresses the contained .gz files and removes all unneeded compressed files after completion.
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user