rename modules azure_rm_..._facts to azure_rm_..._info (#57395)
This commit is contained in:
parent
870d8bf10b
commit
c6097a268c
4 changed files with 20 additions and 18 deletions
2
changelogs/fragments/57395-facts-info-rename.yaml
Normal file
2
changelogs/fragments/57395-facts-info-rename.yaml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
minor_changes:
|
||||||
|
- The ``azure_rm_resourcegroup_facts`` module has been renamed to ``azure_rm_resourcegroup_info``.
|
|
@ -78,7 +78,7 @@ Noteworthy module changes
|
||||||
* The ``memset_memstore_facts`` module was renamed to :ref:`memset_memstore_info <memset_memstore_info_module>`.
|
* The ``memset_memstore_facts`` module was renamed to :ref:`memset_memstore_info <memset_memstore_info_module>`.
|
||||||
* The ``memset_server_facts`` module was renamed to :ref:`memset_server_info <memset_server_info_module>`.
|
* The ``memset_server_facts`` module was renamed to :ref:`memset_server_info <memset_server_info_module>`.
|
||||||
* The ``one_image_facts`` module was renamed to :ref:`one_image_info <one_image_info_module>`.
|
* The ``one_image_facts`` module was renamed to :ref:`one_image_info <one_image_info_module>`.
|
||||||
|
* The ``azure_rm_resourcegroup_facts`` module was renamed to :ref:`azure_rm_aks_info <azure_rm_resourcegroup_info_module>`.
|
||||||
|
|
||||||
Plugins
|
Plugins
|
||||||
=======
|
=======
|
||||||
|
|
|
@ -16,9 +16,9 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
|
||||||
|
|
||||||
DOCUMENTATION = '''
|
DOCUMENTATION = '''
|
||||||
---
|
---
|
||||||
module: azure_rm_resourcegroup_facts
|
module: azure_rm_resourcegroup_info
|
||||||
|
|
||||||
version_added: "2.1"
|
version_added: "2.9"
|
||||||
|
|
||||||
short_description: Get resource group facts.
|
short_description: Get resource group facts.
|
||||||
|
|
||||||
|
@ -49,22 +49,22 @@ author:
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: Get facts for one resource group
|
- name: Get facts for one resource group
|
||||||
azure_rm_resourcegroup_facts:
|
azure_rm_resourcegroup_info:
|
||||||
name: myResourceGroup
|
name: myResourceGroup
|
||||||
|
|
||||||
- name: Get facts for all resource groups
|
- name: Get facts for all resource groups
|
||||||
azure_rm_resourcegroup_facts:
|
azure_rm_resourcegroup_info:
|
||||||
|
|
||||||
- name: Get facts by tags
|
- name: Get facts by tags
|
||||||
azure_rm_resourcegroup_facts:
|
azure_rm_resourcegroup_info:
|
||||||
tags:
|
tags:
|
||||||
- testing
|
- testing
|
||||||
- foo:bar
|
- foo:bar
|
||||||
|
|
||||||
- name: Get facts for one resource group including resources it contains
|
- name: Get facts for one resource group including resources it contains
|
||||||
azure_rm_resourcegroup_facts:
|
azure_rm_resourcegroup_info:
|
||||||
name: myResourceGroup
|
name: myResourceGroup
|
||||||
list_resources: yes
|
list_resources: yes
|
||||||
'''
|
'''
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
azure_resourcegroups:
|
azure_resourcegroups:
|
||||||
|
@ -133,7 +133,7 @@ from ansible.module_utils.azure_rm_common import AzureRMModuleBase
|
||||||
AZURE_OBJECT_CLASS = 'ResourceGroup'
|
AZURE_OBJECT_CLASS = 'ResourceGroup'
|
||||||
|
|
||||||
|
|
||||||
class AzureRMResourceGroupFacts(AzureRMModuleBase):
|
class AzureRMResourceGroupInfo(AzureRMModuleBase):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|
||||||
|
@ -153,9 +153,9 @@ class AzureRMResourceGroupFacts(AzureRMModuleBase):
|
||||||
self.tags = None
|
self.tags = None
|
||||||
self.list_resources = None
|
self.list_resources = None
|
||||||
|
|
||||||
super(AzureRMResourceGroupFacts, self).__init__(self.module_arg_spec,
|
super(AzureRMResourceGroupInfo, self).__init__(self.module_arg_spec,
|
||||||
supports_tags=False,
|
supports_tags=False,
|
||||||
facts_module=True)
|
facts_module=True)
|
||||||
|
|
||||||
def exec_module(self, **kwargs):
|
def exec_module(self, **kwargs):
|
||||||
|
|
||||||
|
@ -218,7 +218,7 @@ class AzureRMResourceGroupFacts(AzureRMModuleBase):
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
AzureRMResourceGroupFacts()
|
AzureRMResourceGroupInfo()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
|
@ -1,5 +1,5 @@
|
||||||
- name: Get resource group
|
- name: Get resource group
|
||||||
azure_rm_resourcegroup_facts:
|
azure_rm_resourcegroup_info:
|
||||||
name: "{{ resource_group }}"
|
name: "{{ resource_group }}"
|
||||||
|
|
||||||
- name: Create resource group
|
- name: Create resource group
|
||||||
|
@ -45,7 +45,7 @@
|
||||||
- output.state.tags.foo == 'bar'
|
- output.state.tags.foo == 'bar'
|
||||||
|
|
||||||
- name: Gather facts by tags
|
- name: Gather facts by tags
|
||||||
azure_rm_resourcegroup_facts:
|
azure_rm_resourcegroup_info:
|
||||||
tags:
|
tags:
|
||||||
- testing
|
- testing
|
||||||
- foo:bar
|
- foo:bar
|
||||||
|
@ -114,7 +114,7 @@
|
||||||
register: output
|
register: output
|
||||||
|
|
||||||
- name: Gather facts for a resource group
|
- name: Gather facts for a resource group
|
||||||
azure_rm_resourcegroup_facts:
|
azure_rm_resourcegroup_info:
|
||||||
name: "{{ resource_group }}"
|
name: "{{ resource_group }}"
|
||||||
register: output
|
register: output
|
||||||
|
|
||||||
|
@ -122,7 +122,7 @@
|
||||||
that: azure_resourcegroups | length == 1
|
that: azure_resourcegroups | length == 1
|
||||||
|
|
||||||
- name: Gather facts for all resource groups
|
- name: Gather facts for all resource groups
|
||||||
azure_rm_resourcegroup_facts:
|
azure_rm_resourcegroup_info:
|
||||||
register: output
|
register: output
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
|
Loading…
Reference in a new issue