mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-07 17:51:29 -07:00
fix sample in docs (#55420)
This commit is contained in:
parent
339a0f4a8c
commit
22f666c962
13 changed files with 49 additions and 49 deletions
|
@ -203,7 +203,7 @@ author:
|
|||
EXAMPLES = '''
|
||||
- name: Create a managed Azure Container Services (AKS) instance
|
||||
azure_rm_aks:
|
||||
name: acctestaks1
|
||||
name: myAKS
|
||||
location: eastus
|
||||
resource_group: myResourceGroup
|
||||
dns_prefix: akstest
|
||||
|
@ -222,7 +222,7 @@ EXAMPLES = '''
|
|||
|
||||
- name: Remove a managed Azure Container Services (AKS) instance
|
||||
azure_rm_aks:
|
||||
name: acctestaks3
|
||||
name: myAKS
|
||||
resource_group: myResourceGroup
|
||||
state: absent
|
||||
'''
|
||||
|
@ -244,7 +244,7 @@ state:
|
|||
vnet_subnet_id: Null
|
||||
changed: false
|
||||
dns_prefix: aks9860bdcd89
|
||||
id: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/yuwzhoaks/providers/Microsoft.ContainerService/managedClusters/aks9860bdc"
|
||||
id: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/myResourceGroup/providers/Microsoft.ContainerService/managedClusters/aks9860bdc"
|
||||
kube_config: "......"
|
||||
kubernetes_version: 1.11.4
|
||||
linux_profile:
|
||||
|
|
|
@ -377,7 +377,7 @@ EXAMPLES = '''
|
|||
- name: Create instance of Application Gateway
|
||||
azure_rm_appgateway:
|
||||
resource_group: myResourceGroup
|
||||
name: myappgateway
|
||||
name: myAppGateway
|
||||
sku:
|
||||
name: standard_small
|
||||
tier: standard
|
||||
|
|
|
@ -46,7 +46,7 @@ EXAMPLES = '''
|
|||
- name: Get facts for app service plan by name
|
||||
azure_rm_appserviceplan_facts:
|
||||
resource_group: myResourceGroup
|
||||
name: winwebapp1
|
||||
name: myAppServicePlan
|
||||
|
||||
- name: Get azure_rm_appserviceplan_facts for app service plan in resource group
|
||||
azure_rm_webapp_facts:
|
||||
|
|
|
@ -70,13 +70,13 @@ author:
|
|||
EXAMPLES = '''
|
||||
- name: Create an availability set with default options
|
||||
azure_rm_availabilityset:
|
||||
name: myavailabilityset
|
||||
name: myAvailabilitySet
|
||||
location: eastus
|
||||
resource_group: myResourceGroup
|
||||
|
||||
- name: Create an availability set with advanced options
|
||||
azure_rm_availabilityset:
|
||||
name: myavailabilityset
|
||||
name: myAvailabilitySet
|
||||
location: eastus
|
||||
resource_group: myResourceGroup
|
||||
platform_update_domain_count: 5
|
||||
|
@ -85,7 +85,7 @@ EXAMPLES = '''
|
|||
|
||||
- name: Delete an availability set
|
||||
azure_rm_availabilityset:
|
||||
name: myavailabilityset
|
||||
name: myAvailabilitySet
|
||||
location: eastus
|
||||
resource_group: myResourceGroup
|
||||
state: absent
|
||||
|
|
|
@ -59,7 +59,7 @@ azure_availabilityset:
|
|||
type: list
|
||||
example: [{
|
||||
"location": "eastus2",
|
||||
"name": "myavailabilityset",
|
||||
"name": "myAvailabilitySet",
|
||||
"properties": {
|
||||
"platformFaultDomainCount": 3,
|
||||
"platformUpdateDomainCount": 2,
|
||||
|
|
|
@ -63,7 +63,7 @@ EXAMPLES = '''
|
|||
- name: Create a CDN profile
|
||||
azure_rm_cdnprofile:
|
||||
resource_group: myResourceGroup
|
||||
name: cdntest
|
||||
name: myCDN
|
||||
sku: standard_akamai
|
||||
tags:
|
||||
testing: testing
|
||||
|
@ -71,7 +71,7 @@ EXAMPLES = '''
|
|||
- name: Delete the CDN profile
|
||||
azure_rm_cdnprofile:
|
||||
resource_group: myResourceGroup
|
||||
name: cdntest
|
||||
name: myCDN
|
||||
state: absent
|
||||
'''
|
||||
RETURN = '''
|
||||
|
@ -80,7 +80,7 @@ id:
|
|||
returned: always
|
||||
type: dict
|
||||
example:
|
||||
id: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/cdntest/providers/Microsoft.Cdn/profiles/cdntest
|
||||
id: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/myResourceGroup/providers/Microsoft.Cdn/profiles/myCDN
|
||||
'''
|
||||
from ansible.module_utils.azure_rm_common import AzureRMModuleBase
|
||||
|
||||
|
|
|
@ -84,7 +84,7 @@ cdnprofiles:
|
|||
description:
|
||||
- ID of the CDN profile.
|
||||
type: str
|
||||
sample: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/myResourceGroup/providers/Microsoft.Cdn/profiles/cdntest
|
||||
sample: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/myResourceGroup/providers/Microsoft.Cdn/profiles/myCDN
|
||||
provisioning_state:
|
||||
description:
|
||||
- Provisioning status of the profile.
|
||||
|
|
|
@ -148,11 +148,11 @@ EXAMPLES = '''
|
|||
- name: Create sample container group
|
||||
azure_rm_containerinstance:
|
||||
resource_group: myResourceGroup
|
||||
name: mynewcontainergroup
|
||||
name: myContainerInstanceGroup
|
||||
os_type: linux
|
||||
ip_address: public
|
||||
containers:
|
||||
- name: mycontainer1
|
||||
- name: myContainer1
|
||||
image: httpd
|
||||
memory: 1.5
|
||||
ports:
|
||||
|
|
|
@ -45,7 +45,7 @@ EXAMPLES = '''
|
|||
- name: Get specific Container Instance facts
|
||||
azure_rm_containerinstance_facts:
|
||||
resource_group: myResourceGroup
|
||||
name: container_group_name
|
||||
name: myContainer
|
||||
|
||||
- name: List Container Instances in a specified resource group name
|
||||
azure_rm_containerinstance_facts:
|
||||
|
|
|
@ -64,7 +64,7 @@ author:
|
|||
EXAMPLES = '''
|
||||
- name: Create an azure container registry
|
||||
azure_rm_containerregistry:
|
||||
name: testacr1
|
||||
name: myRegistry
|
||||
location: eastus
|
||||
resource_group: myResourceGroup
|
||||
admin_user_enabled: true
|
||||
|
@ -75,7 +75,7 @@ EXAMPLES = '''
|
|||
|
||||
- name: Remove an azure container registry
|
||||
azure_rm_containerregistry:
|
||||
name: testacr2
|
||||
name: myRegistry
|
||||
resource_group: myResourceGroup
|
||||
state: absent
|
||||
'''
|
||||
|
|
|
@ -50,7 +50,7 @@ EXAMPLES = '''
|
|||
- name: Get instance of Registry
|
||||
azure_rm_containerregistry_facts:
|
||||
resource_group: myResourceGroup
|
||||
name: sampleregistry
|
||||
name: myRegistry
|
||||
|
||||
- name: List instances of Registry
|
||||
azure_rm_containerregistry_facts:
|
||||
|
|
|
@ -189,21 +189,21 @@ author:
|
|||
EXAMPLES = '''
|
||||
- name: Create a windows web app with non-exist app service plan
|
||||
azure_rm_webapp:
|
||||
resource_group: myresourcegroup
|
||||
name: mywinwebapp
|
||||
resource_group: myResourceGroup
|
||||
name: myWinWebapp
|
||||
plan:
|
||||
resource_group: myappserviceplan_rg
|
||||
name: myappserviceplan
|
||||
resource_group: myAppServicePlan_rg
|
||||
name: myAppServicePlan
|
||||
is_linux: false
|
||||
sku: S1
|
||||
|
||||
- name: Create a docker web app with some app settings, with docker image
|
||||
azure_rm_webapp:
|
||||
resource_group: myresourcegroup
|
||||
name: mydockerwebapp
|
||||
resource_group: myResourceGroup
|
||||
name: myDockerWebapp
|
||||
plan:
|
||||
resource_group: appserviceplan_test
|
||||
name: myappplan
|
||||
resource_group: myAppServicePlan_rg
|
||||
name: myAppServicePlan
|
||||
is_linux: true
|
||||
sku: S1
|
||||
number_of_workers: 2
|
||||
|
@ -215,9 +215,9 @@ EXAMPLES = '''
|
|||
|
||||
- name: Create a docker web app with private acr registry
|
||||
azure_rm_webapp:
|
||||
resource_group: myresourcegroup
|
||||
name: mydockerwebapp
|
||||
plan: myappplan
|
||||
resource_group: myResourceGroup
|
||||
name: myDockerWebapp
|
||||
plan: myAppServicePlan
|
||||
app_settings:
|
||||
testkey: testvalue
|
||||
container_settings:
|
||||
|
@ -228,11 +228,11 @@ EXAMPLES = '''
|
|||
|
||||
- name: Create a linux web app with Node 6.6 framework
|
||||
azure_rm_webapp:
|
||||
resource_group: myresourcegroup
|
||||
name: mylinuxwebapp
|
||||
resource_group: myResourceGroup
|
||||
name: myLinuxWebapp
|
||||
plan:
|
||||
resource_group: appserviceplan_test
|
||||
name: myappplan
|
||||
resource_group: myAppServicePlan_rg
|
||||
name: myAppServicePlan
|
||||
app_settings:
|
||||
testkey: testvalue
|
||||
frameworks:
|
||||
|
@ -241,11 +241,11 @@ EXAMPLES = '''
|
|||
|
||||
- name: Create a windows web app with node, php
|
||||
azure_rm_webapp:
|
||||
resource_group: myresourcegroup
|
||||
name: mywinwebapp
|
||||
resource_group: myResourceGroup
|
||||
name: myWinWebapp
|
||||
plan:
|
||||
resource_group: appserviceplan_test
|
||||
name: myappplan
|
||||
resource_group: myAppServicePlan_rg
|
||||
name: myAppServicePlan
|
||||
app_settings:
|
||||
testkey: testvalue
|
||||
frameworks:
|
||||
|
@ -256,21 +256,21 @@ EXAMPLES = '''
|
|||
|
||||
- name: Create a stage deployment slot for an existing web app
|
||||
azure_rm_webapp:
|
||||
resource_group: myresourcegroup
|
||||
name: mywebapp/slots/stage
|
||||
resource_group: myResourceGroup
|
||||
name: myWebapp/slots/stage
|
||||
plan:
|
||||
resource_group: myresourcegroup
|
||||
name: myappplan
|
||||
resource_group: myAppServicePlan_rg
|
||||
name: myAppServicePlan
|
||||
app_settings:
|
||||
testkey:testvalue
|
||||
|
||||
- name: Create a linux web app with java framework
|
||||
azure_rm_webapp:
|
||||
resource_group: myresourcegroup
|
||||
name: mylinuxwebapp
|
||||
resource_group: myResourceGroup
|
||||
name: myLinuxWebapp
|
||||
plan:
|
||||
resource_group: appserviceplan_test
|
||||
name: myappplan
|
||||
resource_group: myAppServicePlan_rg
|
||||
name: myAppServicePlan
|
||||
app_settings:
|
||||
testkey: testvalue
|
||||
frameworks:
|
||||
|
@ -287,7 +287,7 @@ azure_webapp:
|
|||
returned: always
|
||||
type: dict
|
||||
sample: {
|
||||
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Web/sites/ansiblewindowsaaa"
|
||||
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Web/sites/myWebApp"
|
||||
}
|
||||
'''
|
||||
|
||||
|
|
|
@ -75,7 +75,7 @@ webapps:
|
|||
- Id of the web app.
|
||||
returned: always
|
||||
type: str
|
||||
sample: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Web/sites/xx
|
||||
sample: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Web/sites/myWebApp
|
||||
name:
|
||||
description:
|
||||
- Name of the web app.
|
||||
|
@ -97,7 +97,7 @@ webapps:
|
|||
- Id of app service plan used by the web app.
|
||||
returned: always
|
||||
type: str
|
||||
sample: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Web/serverfarms/xxx
|
||||
sample: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Web/serverfarms/myAppServicePlan
|
||||
app_settings:
|
||||
description:
|
||||
- App settings of the application. Only returned when web app has app settings.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue