mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
more doc improvements (#54148)
This commit is contained in:
@@ -244,7 +244,7 @@ state:
|
|||||||
vnet_subnet_id: Null
|
vnet_subnet_id: Null
|
||||||
changed: false
|
changed: false
|
||||||
dns_prefix: aks9860bdcd89
|
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/yuwzhoaks/providers/Microsoft.ContainerService/managedClusters/aks9860bdc"
|
||||||
kube_config: "......"
|
kube_config: "......"
|
||||||
kubernetes_version: 1.11.4
|
kubernetes_version: 1.11.4
|
||||||
linux_profile:
|
linux_profile:
|
||||||
@@ -254,7 +254,7 @@ state:
|
|||||||
name: aks9860bdc
|
name: aks9860bdc
|
||||||
provisioning_state: Succeeded
|
provisioning_state: Succeeded
|
||||||
service_principal_profile:
|
service_principal_profile:
|
||||||
client_id: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
client_id: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
|
||||||
tags: {}
|
tags: {}
|
||||||
type: Microsoft.ContainerService/ManagedClusters
|
type: Microsoft.ContainerService/ManagedClusters
|
||||||
'''
|
'''
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ autoscales:
|
|||||||
type: list
|
type: list
|
||||||
sample: [{
|
sample: [{
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"id": "/subscriptions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/resourceGroups/myResourceGroup/providers/microsoft.insights/autoscalesettings/scale",
|
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/microsoft.insights/autoscalesettings/scale",
|
||||||
"location": "eastus",
|
"location": "eastus",
|
||||||
"name": "scale",
|
"name": "scale",
|
||||||
"notifications": [
|
"notifications": [
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ id:
|
|||||||
returned: always
|
returned: always
|
||||||
type: dict
|
type: dict
|
||||||
example:
|
example:
|
||||||
id: /subscriptions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/resourcegroups/cdntest/providers/Microsoft.Cdn/profiles/cdntest
|
id: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/cdntest/providers/Microsoft.Cdn/profiles/cdntest
|
||||||
'''
|
'''
|
||||||
from ansible.module_utils.azure_rm_common import AzureRMModuleBase
|
from ansible.module_utils.azure_rm_common import AzureRMModuleBase
|
||||||
|
|
||||||
|
|||||||
@@ -63,8 +63,8 @@ container_groups:
|
|||||||
- The resource id.
|
- The resource id.
|
||||||
returned: always
|
returned: always
|
||||||
type: str
|
type: str
|
||||||
sample: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/my
|
sample: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.ContainerInstance/contain
|
||||||
containers"
|
erGroups/myContainer"
|
||||||
resource_group:
|
resource_group:
|
||||||
description:
|
description:
|
||||||
- Resource group where the container exists.
|
- Resource group where the container exists.
|
||||||
@@ -119,15 +119,15 @@ container_groups:
|
|||||||
- The name of the container instance.
|
- The name of the container instance.
|
||||||
returned: always
|
returned: always
|
||||||
type: str
|
type: str
|
||||||
sample: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/my
|
sample: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.ContainerInstance
|
||||||
containers"
|
/containerGroups/myContainer"
|
||||||
image:
|
image:
|
||||||
description:
|
description:
|
||||||
- The container image name.
|
- The container image name.
|
||||||
returned: always
|
returned: always
|
||||||
type: str
|
type: str
|
||||||
sample: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/my
|
sample: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.ContainerInstance
|
||||||
containers"
|
/containerGroups/myContainer"
|
||||||
memory:
|
memory:
|
||||||
description:
|
description:
|
||||||
- The required memory of the containers in GB.
|
- The required memory of the containers in GB.
|
||||||
|
|||||||
@@ -148,7 +148,7 @@ EXAMPLES = '''
|
|||||||
- name: Create Cosmos DB Account - min
|
- name: Create Cosmos DB Account - min
|
||||||
azure_rm_cosmosdbaccount:
|
azure_rm_cosmosdbaccount:
|
||||||
resource_group: myResourceGroup
|
resource_group: myResourceGroup
|
||||||
name: ddb1
|
name: myDatabaseAccount
|
||||||
location: westus
|
location: westus
|
||||||
geo_rep_locations:
|
geo_rep_locations:
|
||||||
- name: southcentralus
|
- name: southcentralus
|
||||||
@@ -158,7 +158,7 @@ EXAMPLES = '''
|
|||||||
- name: Create Cosmos DB Account - max
|
- name: Create Cosmos DB Account - max
|
||||||
azure_rm_cosmosdbaccount:
|
azure_rm_cosmosdbaccount:
|
||||||
resource_group: myResourceGroup
|
resource_group: myResourceGroup
|
||||||
name: ddb1
|
name: myDatabaseAccount
|
||||||
location: westus
|
location: westus
|
||||||
kind: mongo_db
|
kind: mongo_db
|
||||||
geo_rep_locations:
|
geo_rep_locations:
|
||||||
@@ -168,7 +168,8 @@ EXAMPLES = '''
|
|||||||
ip_range_filter: 10.10.10.10
|
ip_range_filter: 10.10.10.10
|
||||||
enable_multiple_write_locations: yes
|
enable_multiple_write_locations: yes
|
||||||
virtual_network_rules:
|
virtual_network_rules:
|
||||||
- subnet: /subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1
|
- subnet: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVi
|
||||||
|
rtualNetwork/subnets/mySubnet"
|
||||||
consistency_policy:
|
consistency_policy:
|
||||||
default_consistency_level: bounded_staleness
|
default_consistency_level: bounded_staleness
|
||||||
max_staleness_prefix: 10
|
max_staleness_prefix: 10
|
||||||
@@ -181,7 +182,8 @@ id:
|
|||||||
- The unique resource identifier of the database account.
|
- The unique resource identifier of the database account.
|
||||||
returned: always
|
returned: always
|
||||||
type: str
|
type: str
|
||||||
sample: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.DocumentDB/databaseAccounts/ddb1
|
sample: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.DocumentDB/databaseAccounts/myData
|
||||||
|
baseAccount"
|
||||||
'''
|
'''
|
||||||
|
|
||||||
import time
|
import time
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ labs:
|
|||||||
- The identifier of the resource.
|
- The identifier of the resource.
|
||||||
returned: always
|
returned: always
|
||||||
type: str
|
type: str
|
||||||
sample: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/testrg/providers/microsoft.devtestlab/labs/testlab
|
sample: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/myResourceGroup/providers/microsoft.devtestlab/labs/myLab
|
||||||
resource_group:
|
resource_group:
|
||||||
description:
|
description:
|
||||||
- The name of the resource.
|
- The name of the resource.
|
||||||
@@ -106,31 +106,31 @@ labs:
|
|||||||
- Artifacts storage account ID.
|
- Artifacts storage account ID.
|
||||||
returned: always
|
returned: always
|
||||||
type: str
|
type: str
|
||||||
sample: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/testrg/providers/Microsoft.Storage/storageAccounts/testlab6346
|
sample: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myLab6346
|
||||||
default_premium_storage_account:
|
default_premium_storage_account:
|
||||||
description:
|
description:
|
||||||
- Default premium storage account ID.
|
- Default premium storage account ID.
|
||||||
returned: always
|
returned: always
|
||||||
type: str
|
type: str
|
||||||
sample: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/testrg/providers/Microsoft.Storage/storageAccounts/testlab6346
|
sample: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myLab6346
|
||||||
default_storage_account:
|
default_storage_account:
|
||||||
description:
|
description:
|
||||||
- Default storage account ID.
|
- Default storage account ID.
|
||||||
returned: always
|
returned: always
|
||||||
type: str
|
type: str
|
||||||
sample: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/testrg/providers/Microsoft.Storage/storageAccounts/testlab6346
|
sample: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myLab6346
|
||||||
premium_data_disk_storage_account:
|
premium_data_disk_storage_account:
|
||||||
description:
|
description:
|
||||||
- Default storage account ID.
|
- Default storage account ID.
|
||||||
returned: always
|
returned: always
|
||||||
type: str
|
type: str
|
||||||
sample: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/testrg/providers/Microsoft.Storage/storageAccounts/testlab6346
|
sample: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myLab6346
|
||||||
vault_name:
|
vault_name:
|
||||||
description:
|
description:
|
||||||
- Key vault ID.
|
- Key vault ID.
|
||||||
returned: always
|
returned: always
|
||||||
type: str
|
type: str
|
||||||
sample: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/testrg/providers/Microsoft.KeyVault/vaults/testlab6788
|
sample: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myLab6788
|
||||||
tags:
|
tags:
|
||||||
description:
|
description:
|
||||||
- The tags of the resource.
|
- The tags of the resource.
|
||||||
|
|||||||
@@ -73,24 +73,23 @@ azure_dnsrecordset:
|
|||||||
returned: always
|
returned: always
|
||||||
type: list
|
type: list
|
||||||
example: [
|
example: [
|
||||||
{
|
{
|
||||||
"etag": "60ac0480-44dd-4881-a2ed-680d20b3978e",
|
"etag": "60ac0480-44dd-4881-a2ed-680d20b3978e",
|
||||||
"id": "/subscriptions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/resourceGroups/testing/providers/Microsoft.Network/dnszones/newzone.com/A/servera",
|
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Network/dnszones/newzone.com/A/servera",
|
||||||
"name": "servera",
|
"name": "servera",
|
||||||
"properties": {
|
"properties": {
|
||||||
"ARecords": [
|
"ARecords": [
|
||||||
{
|
{
|
||||||
"ipv4Address": "10.4.5.7"
|
"ipv4Address": "10.4.5.7"
|
||||||
},
|
|
||||||
{
|
|
||||||
"ipv4Address": "2.4.5.8"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"TTL": 12900
|
|
||||||
},
|
},
|
||||||
"type": "Microsoft.Network/dnszones/A"
|
{
|
||||||
}
|
"ipv4Address": "2.4.5.8"
|
||||||
]
|
}
|
||||||
|
],
|
||||||
|
"TTL": 12900
|
||||||
|
},
|
||||||
|
"type": "Microsoft.Network/dnszones/A"
|
||||||
|
}]
|
||||||
dnsrecordsets:
|
dnsrecordsets:
|
||||||
description: List of record set dicts, which shares the same hierarchy as azure_rm_dnsrecordset module's parameter.
|
description: List of record set dicts, which shares the same hierarchy as azure_rm_dnsrecordset module's parameter.
|
||||||
returned: always
|
returned: always
|
||||||
|
|||||||
@@ -62,24 +62,25 @@ author:
|
|||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: create function app
|
- name: Create a function app
|
||||||
azure_rm_functionapp:
|
azure_rm_functionapp:
|
||||||
resource_group: myResourceGroup
|
resource_group: myResourceGroup
|
||||||
name: myfunctionapp
|
name: myFunctionApp
|
||||||
storage_account: mystorageaccount
|
storage_account: myStorageAccount
|
||||||
|
|
||||||
- name: create a function app with app settings
|
- name: Create a function app with app settings
|
||||||
azure_rm_functionapp:
|
azure_rm_functionapp:
|
||||||
resource_group: myResourceGroup
|
resource_group: myResourceGroup
|
||||||
name: myfunctionapp
|
name: myFunctionApp
|
||||||
storage_account: mystorageaccount
|
storage_account: myStorageAccount
|
||||||
app_settings:
|
app_settings:
|
||||||
setting1: value1
|
setting1: value1
|
||||||
setting2: value2
|
setting2: value2
|
||||||
|
|
||||||
- name: delete a function app
|
- name: Delete a function app
|
||||||
azure_rm_functionapp:
|
azure_rm_functionapp:
|
||||||
name: myfunctionapp
|
resource_group: myResourceGroup
|
||||||
|
name: myFunctionApp
|
||||||
state: absent
|
state: absent
|
||||||
'''
|
'''
|
||||||
|
|
||||||
@@ -89,7 +90,7 @@ state:
|
|||||||
returned: success
|
returned: success
|
||||||
type: dict
|
type: dict
|
||||||
example:
|
example:
|
||||||
id: /subscriptions/.../resourceGroups/ansible-rg/providers/Microsoft.Web/sites/myfunctionapp
|
id: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Web/sites/myFunctionApp
|
||||||
name: myfunctionapp
|
name: myfunctionapp
|
||||||
kind: functionapp
|
kind: functionapp
|
||||||
location: East US
|
location: East US
|
||||||
@@ -111,7 +112,7 @@ state:
|
|||||||
- name: myfunctionapp.scm.azurewebsites.net
|
- name: myfunctionapp.scm.azurewebsites.net
|
||||||
ssl_state: Disabled
|
ssl_state: Disabled
|
||||||
host_type: Repository
|
host_type: Repository
|
||||||
server_farm_id: /subscriptions/.../resourceGroups/ansible-rg/providers/Microsoft.Web/serverfarms/EastUSPlan
|
server_farm_id: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Web/serverfarms/EastUSPlan
|
||||||
reserved: false
|
reserved: false
|
||||||
last_modified_time_utc: 2017-08-22T18:54:01.190Z
|
last_modified_time_utc: 2017-08-22T18:54:01.190Z
|
||||||
scm_site_also_stopped: false
|
scm_site_also_stopped: false
|
||||||
|
|||||||
@@ -246,7 +246,8 @@ EXAMPLES = '''
|
|||||||
subnet_name: subnet001
|
subnet_name: subnet001
|
||||||
os_type: Windows
|
os_type: Windows
|
||||||
rdp_port: 3399
|
rdp_port: 3399
|
||||||
security_group: "/subscriptions/XXXXXXX/resourceGroup/myResourceGroup/providers/Microsoft.Network/networkSecurityGroups/nsg001"
|
security_group: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroup/myResourceGroup/providers/Microsoft.Network/networkSecurit
|
||||||
|
yGroups/nsg001"
|
||||||
ip_configurations:
|
ip_configurations:
|
||||||
- name: ipconfig1
|
- name: ipconfig1
|
||||||
public_ip_address_name: publicip001
|
public_ip_address_name: publicip001
|
||||||
|
|||||||
@@ -77,17 +77,17 @@ azure_networkinterfaces:
|
|||||||
},
|
},
|
||||||
"enable_ip_forwarding": false,
|
"enable_ip_forwarding": false,
|
||||||
"etag": 'W/"59726bfc-08c4-44ed-b900-f6a559876a9d"',
|
"etag": 'W/"59726bfc-08c4-44ed-b900-f6a559876a9d"',
|
||||||
"id": "/subscriptions/3f7e29ba-24e0-42f6-8d9c-5149a14bda37/resourceGroup/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nic003",
|
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroup/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nic003",
|
||||||
"ip_configuration": {
|
"ip_configuration": {
|
||||||
"name": "default",
|
"name": "default",
|
||||||
"private_ip_address": "10.10.0.4",
|
"private_ip_address": "10.10.0.4",
|
||||||
"private_ip_allocation_method": "Dynamic",
|
"private_ip_allocation_method": "Dynamic",
|
||||||
"public_ip_address": {
|
"public_ip_address": {
|
||||||
"id": "/subscriptions/3f7e29ba-24e0-42f6-8d9c-5149a14bda37/resourceGroup/myResourceGroup/providers/Microsoft.Network/publicIPAddresses/publicip001",
|
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroup/myResourceGroup/providers/Microsoft.Network/publicIPAddresses/publicip001",
|
||||||
"name": "publicip001"
|
"name": "publicip001"
|
||||||
},
|
},
|
||||||
"subnet": {
|
"subnet": {
|
||||||
"id": "/subscriptions/3f7e29ba-24e0-42f6-8d9c-5149a14bda37/resourceGroup/myResourceGroup/providers/Microsoft.Network/virtualNetworks/vnet001/subnets/subnet001",
|
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroup/myResourceGroup/providers/Microsoft.Network/virtualNetworks/vnet001/subnets/subnet001",
|
||||||
"name": "subnet001",
|
"name": "subnet001",
|
||||||
"virtual_network_name": "vnet001"
|
"virtual_network_name": "vnet001"
|
||||||
}
|
}
|
||||||
@@ -96,7 +96,7 @@ azure_networkinterfaces:
|
|||||||
"mac_address": null,
|
"mac_address": null,
|
||||||
"name": "nic003",
|
"name": "nic003",
|
||||||
"network_security_group": {
|
"network_security_group": {
|
||||||
"id": "/subscriptions/3f7e29ba-24e0-42f6-8d9c-5149a14bda37/resourceGroup/myResourceGroup/providers/Microsoft.Network/networkSecurityGroups/secgroup001",
|
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroup/myResourceGroup/providers/Microsoft.Network/networkSecurityGroups/secgroup001",
|
||||||
"name": "secgroup001"
|
"name": "secgroup001"
|
||||||
},
|
},
|
||||||
"primary": null,
|
"primary": null,
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ routes:
|
|||||||
type: list
|
type: list
|
||||||
sample: [
|
sample: [
|
||||||
{
|
{
|
||||||
"id": "/subscriptions/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/resourceGroup/myResourceGroup/providers/Microsoft.Network/routeTables/foobar/routes/route",
|
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroup/myResourceGroup/providers/Microsoft.Network/routeTables/foobar/routes/route",
|
||||||
"name": "route",
|
"name": "route",
|
||||||
"resource_group": "Testing",
|
"resource_group": "Testing",
|
||||||
"routeTables": "foobar",
|
"routeTables": "foobar",
|
||||||
|
|||||||
@@ -209,7 +209,7 @@ state:
|
|||||||
"destination_port_range": "*",
|
"destination_port_range": "*",
|
||||||
"direction": "Inbound",
|
"direction": "Inbound",
|
||||||
"etag": 'W/"edf48d56-b315-40ca-a85d-dbcb47f2da7d"',
|
"etag": 'W/"edf48d56-b315-40ca-a85d-dbcb47f2da7d"',
|
||||||
"id": "/subscriptions/3f7e29ba-24e0-42f6-8d9c-5149a14bda37/resourceGroup/myResourceGroup/providers/Microsoft.Network/networkSecurityGroups/mysecgroup/defaultSecurityRules/AllowVnetInBound",
|
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroup/myResourceGroup/providers/Microsoft.Network/networkSecurityGroups/mysecgroup/defaultSecurityRules/AllowVnetInBound",
|
||||||
"name": "AllowVnetInBound",
|
"name": "AllowVnetInBound",
|
||||||
"priority": 65000,
|
"priority": 65000,
|
||||||
"protocol": "*",
|
"protocol": "*",
|
||||||
@@ -224,7 +224,7 @@ state:
|
|||||||
"destination_port_range": "*",
|
"destination_port_range": "*",
|
||||||
"direction": "Inbound",
|
"direction": "Inbound",
|
||||||
"etag": 'W/"edf48d56-b315-40ca-a85d-dbcb47f2da7d"',
|
"etag": 'W/"edf48d56-b315-40ca-a85d-dbcb47f2da7d"',
|
||||||
"id": "/subscriptions/3f7e29ba-24e0-42f6-8d9c-5149a14bda37/resourceGroup/myResourceGroup/providers/Microsoft.Network/networkSecurityGroups/mysecgroup/defaultSecurityRules/AllowAzureLoadBalancerInBound",
|
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroup/myResourceGroup/providers/Microsoft.Network/networkSecurityGroups/mysecgroup/defaultSecurityRules/AllowAzureLoadBalancerInBound",
|
||||||
"name": "AllowAzureLoadBalancerInBound",
|
"name": "AllowAzureLoadBalancerInBound",
|
||||||
"priority": 65001,
|
"priority": 65001,
|
||||||
"protocol": "*",
|
"protocol": "*",
|
||||||
@@ -239,7 +239,7 @@ state:
|
|||||||
"destination_port_range": "*",
|
"destination_port_range": "*",
|
||||||
"direction": "Inbound",
|
"direction": "Inbound",
|
||||||
"etag": 'W/"edf48d56-b315-40ca-a85d-dbcb47f2da7d"',
|
"etag": 'W/"edf48d56-b315-40ca-a85d-dbcb47f2da7d"',
|
||||||
"id": "/subscriptions/3f7e29ba-24e0-42f6-8d9c-5149a14bda37/resourceGroup/myResourceGroup/providers/Microsoft.Network/networkSecurityGroups/mysecgroup/defaultSecurityRules/DenyAllInBound",
|
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroup/myResourceGroup/providers/Microsoft.Network/networkSecurityGroups/mysecgroup/defaultSecurityRules/DenyAllInBound",
|
||||||
"name": "DenyAllInBound",
|
"name": "DenyAllInBound",
|
||||||
"priority": 65500,
|
"priority": 65500,
|
||||||
"protocol": "*",
|
"protocol": "*",
|
||||||
@@ -254,7 +254,7 @@ state:
|
|||||||
"destination_port_range": "*",
|
"destination_port_range": "*",
|
||||||
"direction": "Outbound",
|
"direction": "Outbound",
|
||||||
"etag": 'W/"edf48d56-b315-40ca-a85d-dbcb47f2da7d"',
|
"etag": 'W/"edf48d56-b315-40ca-a85d-dbcb47f2da7d"',
|
||||||
"id": "/subscriptions/3f7e29ba-24e0-42f6-8d9c-5149a14bda37/resourceGroup/myResourceGroup/providers/Microsoft.Network/networkSecurityGroups/mysecgroup/defaultSecurityRules/AllowVnetOutBound",
|
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroup/myResourceGroup/providers/Microsoft.Network/networkSecurityGroups/mysecgroup/defaultSecurityRules/AllowVnetOutBound",
|
||||||
"name": "AllowVnetOutBound",
|
"name": "AllowVnetOutBound",
|
||||||
"priority": 65000,
|
"priority": 65000,
|
||||||
"protocol": "*",
|
"protocol": "*",
|
||||||
@@ -269,7 +269,7 @@ state:
|
|||||||
"destination_port_range": "*",
|
"destination_port_range": "*",
|
||||||
"direction": "Outbound",
|
"direction": "Outbound",
|
||||||
"etag": 'W/"edf48d56-b315-40ca-a85d-dbcb47f2da7d"',
|
"etag": 'W/"edf48d56-b315-40ca-a85d-dbcb47f2da7d"',
|
||||||
"id": "/subscriptions/3f7e29ba-24e0-42f6-8d9c-5149a14bda37/resourceGroup/myResourceGroup/providers/Microsoft.Network/networkSecurityGroups/mysecgroup/defaultSecurityRules/AllowInternetOutBound",
|
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroup/myResourceGroup/providers/Microsoft.Network/networkSecurityGroups/mysecgroup/defaultSecurityRules/AllowInternetOutBound",
|
||||||
"name": "AllowInternetOutBound",
|
"name": "AllowInternetOutBound",
|
||||||
"priority": 65001,
|
"priority": 65001,
|
||||||
"protocol": "*",
|
"protocol": "*",
|
||||||
@@ -284,7 +284,7 @@ state:
|
|||||||
"destination_port_range": "*",
|
"destination_port_range": "*",
|
||||||
"direction": "Outbound",
|
"direction": "Outbound",
|
||||||
"etag": 'W/"edf48d56-b315-40ca-a85d-dbcb47f2da7d"',
|
"etag": 'W/"edf48d56-b315-40ca-a85d-dbcb47f2da7d"',
|
||||||
"id": "/subscriptions/3f7e29ba-24e0-42f6-8d9c-5149a14bda37/resourceGroup/myResourceGroup/providers/Microsoft.Network/networkSecurityGroups/mysecgroup/defaultSecurityRules/DenyAllOutBound",
|
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroup/myResourceGroup/providers/Microsoft.Network/networkSecurityGroups/mysecgroup/defaultSecurityRules/DenyAllOutBound",
|
||||||
"name": "DenyAllOutBound",
|
"name": "DenyAllOutBound",
|
||||||
"priority": 65500,
|
"priority": 65500,
|
||||||
"protocol": "*",
|
"protocol": "*",
|
||||||
@@ -293,7 +293,7 @@ state:
|
|||||||
"source_port_range": "*"
|
"source_port_range": "*"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"id": "/subscriptions/3f7e29ba-24e0-42f6-8d9c-5149a14bda37/resourceGroup/myResourceGroup/providers/Microsoft.Network/networkSecurityGroups/mysecgroup",
|
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroup/myResourceGroup/providers/Microsoft.Network/networkSecurityGroups/mysecgroup",
|
||||||
"location": "westus",
|
"location": "westus",
|
||||||
"name": "mysecgroup",
|
"name": "mysecgroup",
|
||||||
"network_interfaces": [],
|
"network_interfaces": [],
|
||||||
@@ -305,7 +305,7 @@ state:
|
|||||||
"destination_port_range": "22",
|
"destination_port_range": "22",
|
||||||
"direction": "Inbound",
|
"direction": "Inbound",
|
||||||
"etag": 'W/"edf48d56-b315-40ca-a85d-dbcb47f2da7d"',
|
"etag": 'W/"edf48d56-b315-40ca-a85d-dbcb47f2da7d"',
|
||||||
"id": "/subscriptions/3f7e29ba-24e0-42f6-8d9c-5149a14bda37/resourceGroup/myResourceGroup/providers/Microsoft.Network/networkSecurityGroups/mysecgroup/securityRules/DenySSH",
|
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroup/myResourceGroup/providers/Microsoft.Network/networkSecurityGroups/mysecgroup/securityRules/DenySSH",
|
||||||
"name": "DenySSH",
|
"name": "DenySSH",
|
||||||
"priority": 100,
|
"priority": 100,
|
||||||
"protocol": "Tcp",
|
"protocol": "Tcp",
|
||||||
@@ -320,7 +320,7 @@ state:
|
|||||||
"destination_port_range": "22",
|
"destination_port_range": "22",
|
||||||
"direction": "Inbound",
|
"direction": "Inbound",
|
||||||
"etag": 'W/"edf48d56-b315-40ca-a85d-dbcb47f2da7d"',
|
"etag": 'W/"edf48d56-b315-40ca-a85d-dbcb47f2da7d"',
|
||||||
"id": "/subscriptions/3f7e29ba-24e0-42f6-8d9c-5149a14bda37/resourceGroup/myResourceGroup/providers/Microsoft.Network/networkSecurityGroups/mysecgroup/securityRules/AllowSSH",
|
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroup/myResourceGroup/providers/Microsoft.Network/networkSecurityGroups/mysecgroup/securityRules/AllowSSH",
|
||||||
"name": "AllowSSH",
|
"name": "AllowSSH",
|
||||||
"priority": 101,
|
"priority": 101,
|
||||||
"protocol": "Tcp",
|
"protocol": "Tcp",
|
||||||
|
|||||||
@@ -157,8 +157,8 @@ EXAMPLES = '''
|
|||||||
name: restoreddb
|
name: restoreddb
|
||||||
location: eastus
|
location: eastus
|
||||||
create_mode: restore
|
create_mode: restore
|
||||||
restorable_dropped_database_id: "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Sql/s
|
restorable_dropped_database_id: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Sql/s
|
||||||
ervers/testsvr/restorableDroppedDatabases/testdb2,131444841315030000"
|
ervers/testsvr/restorableDroppedDatabases/testdb2,131444841315030000"
|
||||||
|
|
||||||
- name: Create SQL Database in Copy Mode
|
- name: Create SQL Database in Copy Mode
|
||||||
azure_rm_sqldatabase:
|
azure_rm_sqldatabase:
|
||||||
@@ -168,7 +168,7 @@ EXAMPLES = '''
|
|||||||
location: eastus
|
location: eastus
|
||||||
create_mode: copy
|
create_mode: copy
|
||||||
source_database_id: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Sql/servers/tests
|
source_database_id: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Sql/servers/tests
|
||||||
vr/databases/testdb"
|
vr/databases/testdb"
|
||||||
|
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|||||||
@@ -181,7 +181,7 @@ state:
|
|||||||
sample: {
|
sample: {
|
||||||
"account_type": "Standard_RAGRS",
|
"account_type": "Standard_RAGRS",
|
||||||
"custom_domain": null,
|
"custom_domain": null,
|
||||||
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/testing/providers/Microsoft.Storage/storageAccounts/clh0003",
|
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/clh0003",
|
||||||
"location": "eastus2",
|
"location": "eastus2",
|
||||||
"name": "clh0003",
|
"name": "clh0003",
|
||||||
"primary_endpoints": {
|
"primary_endpoints": {
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ azure_storageaccounts:
|
|||||||
returned: always
|
returned: always
|
||||||
type: list
|
type: list
|
||||||
example: [{
|
example: [{
|
||||||
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/testing/providers/Microsoft.Storage/storageAccounts/testaccount001",
|
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/myResourceGroups/testing/providers/Microsoft.Storage/storageAccounts/testaccount001",
|
||||||
"location": "eastus2",
|
"location": "eastus2",
|
||||||
"name": "testaccount001",
|
"name": "testaccount001",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
|||||||
@@ -117,7 +117,8 @@ id:
|
|||||||
returned: when traffic manager endpoint exists
|
returned: when traffic manager endpoint exists
|
||||||
type: str
|
type: str
|
||||||
example:
|
example:
|
||||||
"/subscriptions/<subsid>/resourceGroups/testRg/providers/Microsoft.Network/trafficManagerProfiles/testProfile/externalEndpoints/testendpoint"
|
"/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Network/trafficManagerProfiles/testProfil
|
||||||
|
e/externalEndpoints/testendpoint"
|
||||||
'''
|
'''
|
||||||
from ansible.module_utils.azure_rm_common import AzureRMModuleBase, normalize_location_name
|
from ansible.module_utils.azure_rm_common import AzureRMModuleBase, normalize_location_name
|
||||||
from ansible.module_utils.common.dict_transformations import _snake_to_camel
|
from ansible.module_utils.common.dict_transformations import _snake_to_camel
|
||||||
|
|||||||
@@ -138,14 +138,16 @@ id:
|
|||||||
description: The ID of the traffic manager profile
|
description: The ID of the traffic manager profile
|
||||||
returned: when traffic manager profile exists
|
returned: when traffic manager profile exists
|
||||||
type: str
|
type: str
|
||||||
example: "/subscriptions/XXXXXX...XXXXXXXXX/resourceGroups/tmt/providers/Microsoft.Network/trafficManagerProfiles/tmtest"
|
example: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/tmt/providers/Microsoft.Network/trafficManagerProfiles/tmtest"
|
||||||
endpoints:
|
endpoints:
|
||||||
description: List of endpoint IDs attached to the profile
|
description: List of endpoint IDs attached to the profile
|
||||||
returned: when traffic manager endpoints exists
|
returned: when traffic manager endpoints exists
|
||||||
type: list
|
type: list
|
||||||
sample: [
|
sample: [
|
||||||
"/subscriptions/XXXXXX...XXXXXXXXX/resourceGroups/tmt/providers/Microsoft.Network/trafficManagerProfiles/tm049b1ae293/externalEndpoints/e2",
|
"/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/tmt/providers/Microsoft.Network/trafficManagerProfiles/tm049b1ae293/exter
|
||||||
"/subscriptions/XXXXXX...XXXXXXXXX/resourceGroups/tmt/providers/Microsoft.Network/trafficManagerProfiles/tm049b1ae293/externalEndpoints/e1"
|
nalEndpoints/e2",
|
||||||
|
"/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/tmt/providers/Microsoft.Network/trafficManagerProfiles/tm049b1ae293/exter
|
||||||
|
nalEndpoints/e1"
|
||||||
]
|
]
|
||||||
'''
|
'''
|
||||||
from ansible.module_utils.azure_rm_common import AzureRMModuleBase, normalize_location_name
|
from ansible.module_utils.azure_rm_common import AzureRMModuleBase, normalize_location_name
|
||||||
|
|||||||
@@ -81,19 +81,19 @@ EXAMPLES = '''
|
|||||||
- name: Create virtual network peering
|
- name: Create virtual network peering
|
||||||
azure_rm_virtualnetworkpeering:
|
azure_rm_virtualnetworkpeering:
|
||||||
resource_group: myResourceGroup
|
resource_group: myResourceGroup
|
||||||
name: vnet_peer1
|
virtual_network: myVirtualNetwork
|
||||||
virtual_network: myVnet1
|
name: myPeering
|
||||||
remote_virtual_network:
|
remote_virtual_network:
|
||||||
resource_group: mySecondResourceGroup
|
resource_group: mySecondResourceGroup
|
||||||
name: myVnet2
|
name: myRemoteVirtualNetwork
|
||||||
allow_virtual_network_access: false
|
allow_virtual_network_access: false
|
||||||
allow_forwarded_traffic: true
|
allow_forwarded_traffic: true
|
||||||
|
|
||||||
- name: Delete the virtual network peering
|
- name: Delete the virtual network peering
|
||||||
azure_rm_virtualnetworkpeering:
|
azure_rm_virtualnetworkpeering:
|
||||||
resource_group: myResourceGroup
|
resource_group: myResourceGroup
|
||||||
name: vnet_peer1
|
virtual_network: myVirtualNetwork
|
||||||
virtual_network: myVnet1
|
name: myPeering
|
||||||
state: absent
|
state: absent
|
||||||
'''
|
'''
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
@@ -102,7 +102,8 @@ id:
|
|||||||
returned: always
|
returned: always
|
||||||
type: dict
|
type: dict
|
||||||
example:
|
example:
|
||||||
id: /subscriptions/xxxx/resourceGroups/xxxx/providers/Microsoft.Network/virtualNetworks/xxxx/virtualNetworkPeerings/peer1
|
id: "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVirtualN
|
||||||
|
etwork/virtualNetworkPeerings/myPeering"
|
||||||
'''
|
'''
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|||||||
@@ -277,7 +277,7 @@ azure_webapp:
|
|||||||
returned: always
|
returned: always
|
||||||
type: dict
|
type: dict
|
||||||
sample: {
|
sample: {
|
||||||
"id": "/subscriptions/<subscription_id>/resourceGroups/ansiblewebapp1/providers/Microsoft.Web/sites/ansiblewindowsaaa"
|
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Web/sites/ansiblewindowsaaa"
|
||||||
}
|
}
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user