mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-08 01:14:03 -07:00
Fix code-blocks to use correct syntax highlighting
This commit is contained in:
parent
01849004e9
commit
08d6990e67
20 changed files with 244 additions and 223 deletions
|
@ -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
|
||||
'''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue