more 2.8 facts modules renamed to info (#54313)

This commit is contained in:
Zim Kalinowski 2019-03-25 23:28:13 +08:00 committed by Brian Coca
parent 8dd46d6f95
commit 8768c05d3e
20 changed files with 56 additions and 56 deletions

View file

@ -15,7 +15,7 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
DOCUMENTATION = '''
---
module: azure_rm_applicationsecuritygroup_facts
module: azure_rm_applicationsecuritygroup_info
version_added: "2.8"
short_description: Get Azure Application Security Group facts.
description:
@ -42,14 +42,14 @@ author:
EXAMPLES = '''
- name: List application security groups in specific resource group
azure_rm_applicationsecuritygroup_facts:
azure_rm_applicationsecuritygroup_info:
resource_group: myResourceGroup
- name: List application security groups in specific subscription
azure_rm_applicationsecuritygroup_facts:
azure_rm_applicationsecuritygroup_info:
- name: Get application security group by name
azure_rm_applicationsecuritygroup_facts:
azure_rm_applicationsecuritygroup_info:
resource_group: myResourceGroup
name: myApplicationSecurityGroup
tags:

View file

@ -14,7 +14,7 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
DOCUMENTATION = '''
---
module: azure_rm_cdnendpoint_facts
module: azure_rm_cdnendpoint_info
version_added: "2.8"
@ -49,12 +49,12 @@ author:
EXAMPLES = '''
- name: Get facts for all endpoints in CDN profile
azure_rm_cdnendpoint_facts:
azure_rm_cdnendpoint_info:
resource_group: myResourceGroup
profile_name: myCDNProfile
- name: Get facts of specific CDN endpoint
azure_rm_cdnendpoint_facts:
azure_rm_cdnendpoint_info:
resource_group: myResourceGroup
profile_name: myCDNProfile
name: myEndpoint1

View file

@ -14,7 +14,7 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
DOCUMENTATION = '''
---
module: azure_rm_cdnprofile_facts
module: azure_rm_cdnprofile_info
version_added: "2.8"
@ -44,15 +44,15 @@ author:
EXAMPLES = '''
- name: Get facts for one CDN profile
azure_rm_cdnprofile_facts:
azure_rm_cdnprofile_info:
name: Testing
resource_group: myResourceGroup
- name: Get facts for all CDN profiles
azure_rm_cdnprofile_facts:
azure_rm_cdnprofile_info:
- name: Get facts by tags
azure_rm_cdnprofile_facts:
azure_rm_cdnprofile_info:
tags:
- Environment:Test
'''

View file

@ -15,7 +15,7 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
DOCUMENTATION = '''
---
module: azure_rm_containerinstance_facts
module: azure_rm_containerinstance_info
version_added: "2.8"
short_description: Get Azure Container Instance facts.
description:
@ -43,12 +43,12 @@ author:
EXAMPLES = '''
- name: Get specific Container Instance facts
azure_rm_containerinstance_facts:
azure_rm_containerinstance_info:
resource_group: myResourceGroup
name: container_group_name
- name: List Container Instances in a specified resource group name
azure_rm_containerinstance_facts:
azure_rm_containerinstance_info:
resource_group: myResourceGroup
'''

View file

@ -15,7 +15,7 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
DOCUMENTATION = '''
---
module: azure_rm_cosmosdbaccount_facts
module: azure_rm_cosmosdbaccount_info
version_added: "2.8"
short_description: Get Azure Cosmos DB Account facts.
description:
@ -53,7 +53,7 @@ author:
EXAMPLES = '''
- name: Get instance of Database Account
azure_rm_cosmosdbaccount_facts:
azure_rm_cosmosdbaccount_info:
resource_group: myResourceGroup
name: testaccount

View file

@ -15,7 +15,7 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
DOCUMENTATION = '''
---
module: azure_rm_deployment_facts
module: azure_rm_deployment_info
version_added: "2.8"
short_description: Get Azure Deployment facts.
description:
@ -40,7 +40,7 @@ author:
EXAMPLES = '''
- name: Get instance of Deployment
azure_rm_deployment_facts:
azure_rm_deployment_info:
resource_group: myResourceGroup
name: myDeployment
'''

View file

@ -12,7 +12,7 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
DOCUMENTATION = '''
---
module: azure_rm_image_facts
module: azure_rm_image_info
version_added: "2.8"
@ -42,19 +42,19 @@ author:
EXAMPLES = '''
- name: List images with name
azure_rm_image_facts:
azure_rm_image_info:
name: test-image
resource_group: myResourceGroup
- name: List images by resource group
azure_rm_image_facts:
azure_rm_image_info:
resource_group: myResourceGroup
tags:
- testing
- foo:bar
- name: List all available images under current subscription
azure_rm_image_facts:
azure_rm_image_info:
'''

View file

@ -14,7 +14,7 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
DOCUMENTATION = '''
---
module: azure_rm_rediscache_facts
module: azure_rm_rediscache_info
version_added: "2.8"
@ -49,18 +49,18 @@ author:
EXAMPLES = '''
- name: Get Redis Cache by name
azure_rm_rediscache_facts:
azure_rm_rediscache_info:
resource_group: myResourceGroup
name: myRedis
- name: Get Redis Cache with access keys by name
azure_rm_rediscache_facts:
azure_rm_rediscache_info:
resource_group: myResourceGroup
name: myRedis
return_access_keys: true
- name: Get Redis Cache in specific resource group
azure_rm_rediscache_facts:
azure_rm_rediscache_info:
resource_group: myResourceGroup
'''

View file

@ -15,7 +15,7 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
DOCUMENTATION = '''
---
module: azure_rm_roleassignment_facts
module: azure_rm_roleassignment_info
version_added: "2.8"
short_description: Gets Azure Role Assignment facts.
description:
@ -47,11 +47,11 @@ author:
EXAMPLES = '''
- name: Get role assignments for specific service principal
azure_rm_roleassignment_facts:
azure_rm_roleassignment_info:
assignee: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
- name: Get role assignments for specific scope
azure_rm_roleassignment_facts:
azure_rm_roleassignment_info:
scope: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
'''

View file

@ -15,7 +15,7 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
DOCUMENTATION = '''
---
module: azure_rm_roledefinition_facts
module: azure_rm_roledefinition_info
version_added: "2.8"
short_description: Get Azure Role Definition facts.
description:
@ -47,11 +47,11 @@ author:
EXAMPLES = '''
- name: List Role Definitions in scope
azure_rm_roledefinition_facts:
azure_rm_roledefinition_info:
scope: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup
- name: Get Role Definition by name
azure_rm_roledefinition_facts:
azure_rm_roledefinition_info:
scope: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup
name: myRoleDefinition
'''

View file

@ -15,7 +15,7 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
DOCUMENTATION = '''
---
module: azure_rm_subnet_facts
module: azure_rm_subnet_info
version_added: "2.8"
short_description: Get Azure Subnet facts.
description:
@ -44,13 +44,13 @@ author:
EXAMPLES = '''
- name: Get facts of specific subnet
azure_rm_subnet_facts:
azure_rm_subnet_info:
resource_group: myResourceGroup
virtual_network_name: myVirtualNetwork
name: mySubnet
- name: List facts for all subnets in virtual network
azure_rm_subnet_facts:
azure_rm_subnet_info:
resource_group: myResourceGroup
virtual_network_name: myVirtualNetwork
name: mySubnet

View file

@ -17,7 +17,7 @@
check_mode: yes
- name: Check there is no CDN profile created
azure_rm_cdnprofile_facts:
azure_rm_cdnprofile_info:
resource_group: "{{ resource_group }}"
name: "{{ cdnprofilename }}"
register: fact
@ -43,7 +43,7 @@
- output.id != ''
- name: Gather CDN profile facts
azure_rm_cdnprofile_facts:
azure_rm_cdnprofile_info:
resource_group: "{{ resource_group }}"
name: "{{ cdnprofilename }}"
register: fact
@ -96,7 +96,7 @@
check_mode: yes
- name: Gather CDN profile facts
azure_rm_cdnprofile_facts:
azure_rm_cdnprofile_info:
resource_group: "{{ resource_group }}"
name: "{{ cdnprofilename }}"
register: fact
@ -144,7 +144,7 @@
- output.id
- name: Get facts of a Azure CDN endpoint
azure_rm_cdnendpoint_facts:
azure_rm_cdnendpoint_info:
resource_group: "{{ resource_group }}"
name: "{{ endpointname }}"
profile_name: "{{ cdnprofilename }}"
@ -265,7 +265,7 @@
- output.changed
- name: Get CDN profile fact
azure_rm_cdnprofile_facts:
azure_rm_cdnprofile_info:
resource_group: "{{ resource_group }}"
name: "{{ cdnprofilename }}"
register: fact

View file

@ -100,7 +100,7 @@
register: output
- name: Gather facts for single Container Instance
azure_rm_containerinstance_facts:
azure_rm_containerinstance_info:
resource_group: "{{ resource_group }}"
name: "aci{{ resource_group | hash('md5') | truncate(7, True, '') }}sec"
register: output
@ -124,7 +124,7 @@
- output.containerinstances[0]['restart_policy'] == 'on_failure'
- name: Gather facts for all Container Instances in the resource group
azure_rm_containerinstance_facts:
azure_rm_containerinstance_info:
resource_group: "{{ resource_group }}"
register: output

View file

@ -116,7 +116,7 @@
- output.changed
- name: Get facts of single account
azure_rm_cosmosdbaccount_facts:
azure_rm_cosmosdbaccount_info:
resource_group: "{{ resource_group }}"
name: "{{ dbname }}"
register: output
@ -148,7 +148,7 @@
- output.accounts[0]['tags'] != None
- name: Get facts with keys
azure_rm_cosmosdbaccount_facts:
azure_rm_cosmosdbaccount_info:
resource_group: "{{ resource_group }}"
name: "{{ dbname }}"
retrieve_keys: all
@ -164,7 +164,7 @@
- output.accounts[0]['secondary_readonly_master_key'] != None
- name: Get facts with readonly keys
azure_rm_cosmosdbaccount_facts:
azure_rm_cosmosdbaccount_info:
resource_group: "{{ resource_group }}"
name: "{{ dbname }}"
retrieve_keys: readonly
@ -182,7 +182,7 @@
- output.accounts[0]['connection_strings'] | length > 0
- name: List acounts by resource group
azure_rm_cosmosdbaccount_facts:
azure_rm_cosmosdbaccount_info:
resource_group: "{{ resource_group }}"
name: "{{ dbname }}"
register: output

View file

@ -29,7 +29,7 @@
with_items: "{{ output.deployment.instances }}"
- name: Get Deployment Facts
azure_rm_deployment_facts:
azure_rm_deployment_info:
resource_group: "{{ resource_group }}"
name: "{{ dns_label }}"
register: output

View file

@ -106,7 +106,7 @@
- output.id
- name: Gather information about image created
azure_rm_image_facts:
azure_rm_image_info:
resource_group: "{{ resource_group }}"
name: testimage001
register: output

View file

@ -351,7 +351,7 @@
- output.id != ''
- name: Get Application security group
azure_rm_applicationsecuritygroup_facts:
azure_rm_applicationsecuritygroup_info:
resource_group: "{{ resource_group }}"
name: "{{ applicationsecuritygroup_name1 }}"
register: facts

View file

@ -36,7 +36,7 @@
- output.id
- name: Get facts
azure_rm_rediscache_facts:
azure_rm_rediscache_info:
resource_group: "{{ resource_group }}"
name: "{{ redis_name }}"
register: facts
@ -177,7 +177,7 @@
- output.id
- name: Get facts
azure_rm_rediscache_facts:
azure_rm_rediscache_info:
resource_group: "{{ resource_group }}"
name: "{{ redis_name }}2"
return_access_keys: True

View file

@ -51,7 +51,7 @@
- output.changed
- name: Get facts by name
azure_rm_roledefinition_facts:
azure_rm_roledefinition_info:
scope: "/subscriptions/{{ subscription_id }}/resourceGroups/{{ resource_group }}"
type: custom
register: facts
@ -61,7 +61,7 @@
- facts['roledefinitions'] | length > 1
- name: Get facts
azure_rm_roledefinition_facts:
azure_rm_roledefinition_info:
scope: "/subscriptions/{{ subscription_id }}/resourceGroups/{{ resource_group }}"
role_name: "{{ role_name }}"
register: facts
@ -119,7 +119,7 @@
- output.changed
- name: Get role definition facts
azure_rm_roledefinition_facts:
azure_rm_roledefinition_info:
role_name: "{{ role_name }}"
scope: "/subscriptions/{{ subscription_id }}/resourceGroups/{{ resource_group }}"
type: custom
@ -157,7 +157,7 @@
- output.changed
- name: Get facts
azure_rm_roleassignment_facts:
azure_rm_roleassignment_info:
scope: "/subscriptions/{{ subscription_id }}/resourceGroups/{{ resource_group }}"
assignee: "{{ principal_id }}"
register: facts

View file

@ -142,7 +142,7 @@
that: not output.changed
- name: Get subnet facts
azure_rm_subnet_facts:
azure_rm_subnet_info:
name: foobar
virtual_network_name: My_Virtual_Network
resource_group: "{{ resource_group }}"