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 = ''' DOCUMENTATION = '''
--- ---
module: azure_rm_applicationsecuritygroup_facts module: azure_rm_applicationsecuritygroup_info
version_added: "2.8" version_added: "2.8"
short_description: Get Azure Application Security Group facts. short_description: Get Azure Application Security Group facts.
description: description:
@ -42,14 +42,14 @@ author:
EXAMPLES = ''' EXAMPLES = '''
- name: List application security groups in specific resource group - name: List application security groups in specific resource group
azure_rm_applicationsecuritygroup_facts: azure_rm_applicationsecuritygroup_info:
resource_group: myResourceGroup resource_group: myResourceGroup
- name: List application security groups in specific subscription - name: List application security groups in specific subscription
azure_rm_applicationsecuritygroup_facts: azure_rm_applicationsecuritygroup_info:
- name: Get application security group by name - name: Get application security group by name
azure_rm_applicationsecuritygroup_facts: azure_rm_applicationsecuritygroup_info:
resource_group: myResourceGroup resource_group: myResourceGroup
name: myApplicationSecurityGroup name: myApplicationSecurityGroup
tags: tags:

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -12,7 +12,7 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: azure_rm_image_facts module: azure_rm_image_info
version_added: "2.8" version_added: "2.8"
@ -42,19 +42,19 @@ author:
EXAMPLES = ''' EXAMPLES = '''
- name: List images with name - name: List images with name
azure_rm_image_facts: azure_rm_image_info:
name: test-image name: test-image
resource_group: myResourceGroup resource_group: myResourceGroup
- name: List images by resource group - name: List images by resource group
azure_rm_image_facts: azure_rm_image_info:
resource_group: myResourceGroup resource_group: myResourceGroup
tags: tags:
- testing - testing
- foo:bar - foo:bar
- name: List all available images under current subscription - 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 = ''' DOCUMENTATION = '''
--- ---
module: azure_rm_rediscache_facts module: azure_rm_rediscache_info
version_added: "2.8" version_added: "2.8"
@ -49,18 +49,18 @@ author:
EXAMPLES = ''' EXAMPLES = '''
- name: Get Redis Cache by name - name: Get Redis Cache by name
azure_rm_rediscache_facts: azure_rm_rediscache_info:
resource_group: myResourceGroup resource_group: myResourceGroup
name: myRedis name: myRedis
- name: Get Redis Cache with access keys by name - name: Get Redis Cache with access keys by name
azure_rm_rediscache_facts: azure_rm_rediscache_info:
resource_group: myResourceGroup resource_group: myResourceGroup
name: myRedis name: myRedis
return_access_keys: true return_access_keys: true
- name: Get Redis Cache in specific resource group - name: Get Redis Cache in specific resource group
azure_rm_rediscache_facts: azure_rm_rediscache_info:
resource_group: myResourceGroup resource_group: myResourceGroup
''' '''

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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