Rename Azure modules: facts -> info (#61505)
* rename * add symlink * rename * rename * rename * rename * rename * rename * rename * rename * rename * rename * rename * rename
This commit is contained in:
parent
876804395c
commit
7bb0556334
39 changed files with 228 additions and 169 deletions
1
lib/ansible/modules/cloud/azure/_azure_rm_dnsrecordset_facts.py
Symbolic link
1
lib/ansible/modules/cloud/azure/_azure_rm_dnsrecordset_facts.py
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
azure_rm_dnsrecordset_info.py
|
1
lib/ansible/modules/cloud/azure/_azure_rm_dnszone_facts.py
Symbolic link
1
lib/ansible/modules/cloud/azure/_azure_rm_dnszone_facts.py
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
azure_rm_dnszone_info.py
|
1
lib/ansible/modules/cloud/azure/_azure_rm_functionapp_facts.py
Symbolic link
1
lib/ansible/modules/cloud/azure/_azure_rm_functionapp_facts.py
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
azure_rm_functionapp_info.py
|
|
@ -0,0 +1 @@
|
||||||
|
azure_rm_hdinsightcluster_info.py
|
1
lib/ansible/modules/cloud/azure/_azure_rm_image_facts.py
Symbolic link
1
lib/ansible/modules/cloud/azure/_azure_rm_image_facts.py
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
azure_rm_image_info.py
|
1
lib/ansible/modules/cloud/azure/_azure_rm_loadbalancer_facts.py
Symbolic link
1
lib/ansible/modules/cloud/azure/_azure_rm_loadbalancer_facts.py
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
azure_rm_loadbalancer_info.py
|
1
lib/ansible/modules/cloud/azure/_azure_rm_lock_facts.py
Symbolic link
1
lib/ansible/modules/cloud/azure/_azure_rm_lock_facts.py
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
azure_rm_lock_info.py
|
|
@ -0,0 +1 @@
|
||||||
|
azure_rm_loganalyticsworkspace_info.py
|
|
@ -1 +1 @@
|
||||||
azure_rm_manageddisk_facts.py
|
azure_rm_manageddisk_info.py
|
1
lib/ansible/modules/cloud/azure/_azure_rm_manageddisk_facts.py
Symbolic link
1
lib/ansible/modules/cloud/azure/_azure_rm_manageddisk_facts.py
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
azure_rm_manageddisk_info.py
|
|
@ -0,0 +1 @@
|
||||||
|
azure_rm_networkinterface_info.py
|
1
lib/ansible/modules/cloud/azure/_azure_rm_securitygroup_facts.py
Symbolic link
1
lib/ansible/modules/cloud/azure/_azure_rm_securitygroup_facts.py
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
azure_rm_securitygroup_info.py
|
|
@ -129,7 +129,7 @@ class AzureRMAvailabilitySetInfo(AzureRMModuleBase):
|
||||||
|
|
||||||
self.results = dict(
|
self.results = dict(
|
||||||
changed=False,
|
changed=False,
|
||||||
ansible_facts=dict(
|
ansible_info=dict(
|
||||||
azure_availabilitysets=[]
|
azure_availabilitysets=[]
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
@ -156,9 +156,9 @@ class AzureRMAvailabilitySetInfo(AzureRMModuleBase):
|
||||||
if self.name and not self.resource_group:
|
if self.name and not self.resource_group:
|
||||||
self.fail("Parameter error: resource group required when filtering by name.")
|
self.fail("Parameter error: resource group required when filtering by name.")
|
||||||
if self.name:
|
if self.name:
|
||||||
self.results['ansible_facts']['azure_availabilitysets'] = self.get_item()
|
self.results['ansible_info']['azure_availabilitysets'] = self.get_item()
|
||||||
else:
|
else:
|
||||||
self.results['ansible_facts']['azure_availabilitysets'] = self.list_items()
|
self.results['ansible_info']['azure_availabilitysets'] = self.list_items()
|
||||||
|
|
||||||
return self.results
|
return self.results
|
||||||
|
|
||||||
|
|
|
@ -13,9 +13,9 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
|
||||||
|
|
||||||
DOCUMENTATION = '''
|
DOCUMENTATION = '''
|
||||||
---
|
---
|
||||||
module: azure_rm_dnsrecordset_facts
|
module: azure_rm_dnsrecordset_info
|
||||||
|
|
||||||
version_added: "2.4"
|
version_added: "2.9"
|
||||||
|
|
||||||
short_description: Get DNS Record Set facts
|
short_description: Get DNS Record Set facts
|
||||||
|
|
||||||
|
@ -51,18 +51,18 @@ author:
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: Get facts for one Record Set
|
- name: Get facts for one Record Set
|
||||||
azure_rm_dnsrecordset_facts:
|
azure_rm_dnsrecordset_info:
|
||||||
resource_group: myResourceGroup
|
resource_group: myResourceGroup
|
||||||
zone_name: example.com
|
zone_name: example.com
|
||||||
relative_name: server10
|
relative_name: server10
|
||||||
record_type: A
|
record_type: A
|
||||||
- name: Get facts for all Type A Record Sets in a Zone
|
- name: Get facts for all Type A Record Sets in a Zone
|
||||||
azure_rm_dnsrecordset_facts:
|
azure_rm_dnsrecordset_info:
|
||||||
resource_group: myResourceGroup
|
resource_group: myResourceGroup
|
||||||
zone_name: example.com
|
zone_name: example.com
|
||||||
record_type: A
|
record_type: A
|
||||||
- name: Get all record sets in one zone
|
- name: Get all record sets in one zone
|
||||||
azure_rm_dnsrecordset_facts:
|
azure_rm_dnsrecordset_info:
|
||||||
resource_group: myResourceGroup
|
resource_group: myResourceGroup
|
||||||
zone_name: example.com
|
zone_name: example.com
|
||||||
'''
|
'''
|
||||||
|
@ -163,7 +163,7 @@ RECORDSET_VALUE_MAP = dict(
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class AzureRMRecordSetFacts(AzureRMModuleBase):
|
class AzureRMRecordSetInfo(AzureRMModuleBase):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|
||||||
|
@ -179,7 +179,7 @@ class AzureRMRecordSetFacts(AzureRMModuleBase):
|
||||||
# store the results of the module operation
|
# store the results of the module operation
|
||||||
self.results = dict(
|
self.results = dict(
|
||||||
changed=False,
|
changed=False,
|
||||||
ansible_facts=dict(azure_dnsrecordset=[])
|
ansible_info=dict(azure_dnsrecordset=[])
|
||||||
)
|
)
|
||||||
|
|
||||||
self.relative_name = None
|
self.relative_name = None
|
||||||
|
@ -188,10 +188,14 @@ class AzureRMRecordSetFacts(AzureRMModuleBase):
|
||||||
self.record_type = None
|
self.record_type = None
|
||||||
self.top = None
|
self.top = None
|
||||||
|
|
||||||
super(AzureRMRecordSetFacts, self).__init__(self.module_arg_spec)
|
super(AzureRMRecordSetInfo, self).__init__(self.module_arg_spec)
|
||||||
|
|
||||||
def exec_module(self, **kwargs):
|
def exec_module(self, **kwargs):
|
||||||
|
|
||||||
|
is_old_facts = self.module._name == 'azure_rm_dnsrecordset_facts'
|
||||||
|
if is_old_facts:
|
||||||
|
self.module.deprecate("The 'azure_rm_dnsrecordset_facts' module has been renamed to 'azure_rm_dnsrecordset_info'", version='2.13')
|
||||||
|
|
||||||
for key in self.module_arg_spec:
|
for key in self.module_arg_spec:
|
||||||
setattr(self, key, kwargs[key])
|
setattr(self, key, kwargs[key])
|
||||||
|
|
||||||
|
@ -216,7 +220,8 @@ class AzureRMRecordSetFacts(AzureRMModuleBase):
|
||||||
# if there is a zone name listed, then they want all the record sets in a zone
|
# if there is a zone name listed, then they want all the record sets in a zone
|
||||||
results = self.list_zone()
|
results = self.list_zone()
|
||||||
|
|
||||||
self.results['ansible_facts']['azure_dnsrecordset'] = self.serialize_list(results)
|
if is_old_facts:
|
||||||
|
self.results['ansible_facts']['azure_dnsrecordset'] = self.serialize_list(results)
|
||||||
self.results['dnsrecordsets'] = self.curated_list(results)
|
self.results['dnsrecordsets'] = self.curated_list(results)
|
||||||
return self.results
|
return self.results
|
||||||
|
|
||||||
|
@ -281,7 +286,7 @@ class AzureRMRecordSetFacts(AzureRMModuleBase):
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
AzureRMRecordSetFacts()
|
AzureRMRecordSetInfo()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
|
@ -14,9 +14,9 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
|
||||||
|
|
||||||
DOCUMENTATION = '''
|
DOCUMENTATION = '''
|
||||||
---
|
---
|
||||||
module: azure_rm_dnszone_facts
|
module: azure_rm_dnszone_info
|
||||||
|
|
||||||
version_added: "2.4"
|
version_added: "2.9"
|
||||||
|
|
||||||
short_description: Get DNS zone facts
|
short_description: Get DNS zone facts
|
||||||
|
|
||||||
|
@ -45,16 +45,16 @@ author:
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: Get facts for one zone
|
- name: Get facts for one zone
|
||||||
azure_rm_dnszone_facts:
|
azure_rm_dnszone_info:
|
||||||
resource_group: myResourceGroup
|
resource_group: myResourceGroup
|
||||||
name: foobar22
|
name: foobar22
|
||||||
|
|
||||||
- name: Get facts for all zones in a resource group
|
- name: Get facts for all zones in a resource group
|
||||||
azure_rm_dnszone_facts:
|
azure_rm_dnszone_info:
|
||||||
resource_group: myResourceGroup
|
resource_group: myResourceGroup
|
||||||
|
|
||||||
- name: Get facts by tags
|
- name: Get facts by tags
|
||||||
azure_rm_dnszone_facts:
|
azure_rm_dnszone_info:
|
||||||
tags:
|
tags:
|
||||||
- testing
|
- testing
|
||||||
'''
|
'''
|
||||||
|
@ -137,7 +137,7 @@ except Exception:
|
||||||
AZURE_OBJECT_CLASS = 'DnsZone'
|
AZURE_OBJECT_CLASS = 'DnsZone'
|
||||||
|
|
||||||
|
|
||||||
class AzureRMDNSZoneFacts(AzureRMModuleBase):
|
class AzureRMDNSZoneInfo(AzureRMModuleBase):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|
||||||
|
@ -151,17 +151,21 @@ class AzureRMDNSZoneFacts(AzureRMModuleBase):
|
||||||
# store the results of the module operation
|
# store the results of the module operation
|
||||||
self.results = dict(
|
self.results = dict(
|
||||||
changed=False,
|
changed=False,
|
||||||
ansible_facts=dict(azure_dnszones=[])
|
ansible_info=dict(azure_dnszones=[])
|
||||||
)
|
)
|
||||||
|
|
||||||
self.name = None
|
self.name = None
|
||||||
self.resource_group = None
|
self.resource_group = None
|
||||||
self.tags = None
|
self.tags = None
|
||||||
|
|
||||||
super(AzureRMDNSZoneFacts, self).__init__(self.module_arg_spec)
|
super(AzureRMDNSZoneInfo, self).__init__(self.module_arg_spec)
|
||||||
|
|
||||||
def exec_module(self, **kwargs):
|
def exec_module(self, **kwargs):
|
||||||
|
|
||||||
|
is_old_facts = self.module._name == 'azure_rm_dnszone_facts'
|
||||||
|
if is_old_facts:
|
||||||
|
self.module.deprecate("The 'azure_rm_dnszone_facts' module has been renamed to 'azure_rm_dnszone_info'", version='2.13')
|
||||||
|
|
||||||
for key in self.module_arg_spec:
|
for key in self.module_arg_spec:
|
||||||
setattr(self, key, kwargs[key])
|
setattr(self, key, kwargs[key])
|
||||||
|
|
||||||
|
@ -180,7 +184,7 @@ class AzureRMDNSZoneFacts(AzureRMModuleBase):
|
||||||
# all the zones in a subscription
|
# all the zones in a subscription
|
||||||
results = self.list_items()
|
results = self.list_items()
|
||||||
|
|
||||||
self.results['ansible_facts']['azure_dnszones'] = self.serialize_items(results)
|
self.results['ansible_info']['azure_dnszones'] = self.serialize_items(results)
|
||||||
self.results['dnszones'] = self.curated_items(results)
|
self.results['dnszones'] = self.curated_items(results)
|
||||||
|
|
||||||
return self.results
|
return self.results
|
||||||
|
@ -247,7 +251,7 @@ class AzureRMDNSZoneFacts(AzureRMModuleBase):
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
AzureRMDNSZoneFacts()
|
AzureRMDNSZoneInfo()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
|
@ -15,8 +15,8 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
|
||||||
|
|
||||||
DOCUMENTATION = '''
|
DOCUMENTATION = '''
|
||||||
---
|
---
|
||||||
module: azure_rm_functionapp_facts
|
module: azure_rm_functionapp_info
|
||||||
version_added: "2.4"
|
version_added: "2.9"
|
||||||
short_description: Get Azure Function App facts
|
short_description: Get Azure Function App facts
|
||||||
description:
|
description:
|
||||||
- Get facts for one Azure Function App or all Function Apps within a resource group.
|
- Get facts for one Azure Function App or all Function Apps within a resource group.
|
||||||
|
@ -42,16 +42,16 @@ author:
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: Get facts for one Function App
|
- name: Get facts for one Function App
|
||||||
azure_rm_functionapp_facts:
|
azure_rm_functionapp_info:
|
||||||
resource_group: myResourceGroup
|
resource_group: myResourceGroup
|
||||||
name: myfunctionapp
|
name: myfunctionapp
|
||||||
|
|
||||||
- name: Get facts for all Function Apps in a resource group
|
- name: Get facts for all Function Apps in a resource group
|
||||||
azure_rm_functionapp_facts:
|
azure_rm_functionapp_info:
|
||||||
resource_group: myResourceGroup
|
resource_group: myResourceGroup
|
||||||
|
|
||||||
- name: Get facts for all Function Apps by tags
|
- name: Get facts for all Function Apps by tags
|
||||||
azure_rm_functionapp_facts:
|
azure_rm_functionapp_info:
|
||||||
tags:
|
tags:
|
||||||
- testing
|
- testing
|
||||||
'''
|
'''
|
||||||
|
@ -108,7 +108,7 @@ except Exception:
|
||||||
from ansible.module_utils.azure_rm_common import AzureRMModuleBase
|
from ansible.module_utils.azure_rm_common import AzureRMModuleBase
|
||||||
|
|
||||||
|
|
||||||
class AzureRMFunctionAppFacts(AzureRMModuleBase):
|
class AzureRMFunctionAppInfo(AzureRMModuleBase):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|
||||||
self.module_arg_spec = dict(
|
self.module_arg_spec = dict(
|
||||||
|
@ -119,14 +119,14 @@ class AzureRMFunctionAppFacts(AzureRMModuleBase):
|
||||||
|
|
||||||
self.results = dict(
|
self.results = dict(
|
||||||
changed=False,
|
changed=False,
|
||||||
ansible_facts=dict(azure_functionapps=[])
|
ansible_info=dict(azure_functionapps=[])
|
||||||
)
|
)
|
||||||
|
|
||||||
self.name = None
|
self.name = None
|
||||||
self.resource_group = None
|
self.resource_group = None
|
||||||
self.tags = None
|
self.tags = None
|
||||||
|
|
||||||
super(AzureRMFunctionAppFacts, self).__init__(
|
super(AzureRMFunctionAppInfo, self).__init__(
|
||||||
self.module_arg_spec,
|
self.module_arg_spec,
|
||||||
supports_tags=False,
|
supports_tags=False,
|
||||||
facts_module=True
|
facts_module=True
|
||||||
|
@ -134,6 +134,10 @@ class AzureRMFunctionAppFacts(AzureRMModuleBase):
|
||||||
|
|
||||||
def exec_module(self, **kwargs):
|
def exec_module(self, **kwargs):
|
||||||
|
|
||||||
|
is_old_facts = self.module._name == 'azure_rm_functionapp_facts'
|
||||||
|
if is_old_facts:
|
||||||
|
self.module.deprecate("The 'azure_rm_functionapp_facts' module has been renamed to 'azure_rm_functionapp_info'", version='2.13')
|
||||||
|
|
||||||
for key in self.module_arg_spec:
|
for key in self.module_arg_spec:
|
||||||
setattr(self, key, kwargs[key])
|
setattr(self, key, kwargs[key])
|
||||||
|
|
||||||
|
@ -141,11 +145,11 @@ class AzureRMFunctionAppFacts(AzureRMModuleBase):
|
||||||
self.fail("Parameter error: resource group required when filtering by name.")
|
self.fail("Parameter error: resource group required when filtering by name.")
|
||||||
|
|
||||||
if self.name:
|
if self.name:
|
||||||
self.results['ansible_facts']['azure_functionapps'] = self.get_functionapp()
|
self.results['ansible_info']['azure_functionapps'] = self.get_functionapp()
|
||||||
elif self.resource_group:
|
elif self.resource_group:
|
||||||
self.results['ansible_facts']['azure_functionapps'] = self.list_resource_group()
|
self.results['ansible_info']['azure_functionapps'] = self.list_resource_group()
|
||||||
else:
|
else:
|
||||||
self.results['ansible_facts']['azure_functionapps'] = self.list_all()
|
self.results['ansible_info']['azure_functionapps'] = self.list_all()
|
||||||
|
|
||||||
return self.results
|
return self.results
|
||||||
|
|
||||||
|
@ -195,7 +199,7 @@ class AzureRMFunctionAppFacts(AzureRMModuleBase):
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
AzureRMFunctionAppFacts()
|
AzureRMFunctionAppInfo()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
|
@ -15,8 +15,8 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
|
||||||
|
|
||||||
DOCUMENTATION = '''
|
DOCUMENTATION = '''
|
||||||
---
|
---
|
||||||
module: azure_rm_hdinsightcluster_facts
|
module: azure_rm_hdinsightcluster_info
|
||||||
version_added: "2.8"
|
version_added: "2.9"
|
||||||
short_description: Get Azure HDInsight Cluster facts
|
short_description: Get Azure HDInsight Cluster facts
|
||||||
description:
|
description:
|
||||||
- Get facts of Azure HDInsight Cluster.
|
- Get facts of Azure HDInsight Cluster.
|
||||||
|
@ -42,12 +42,12 @@ author:
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: Get instance of HDInsight Cluster
|
- name: Get instance of HDInsight Cluster
|
||||||
azure_rm_hdinsightcluster_facts:
|
azure_rm_hdinsightcluster_info:
|
||||||
resource_group: myResourceGroup
|
resource_group: myResourceGroup
|
||||||
name: myCluster
|
name: myCluster
|
||||||
|
|
||||||
- name: List instances of HDInsight Cluster
|
- name: List instances of HDInsight Cluster
|
||||||
azure_rm_hdinsightcluster_facts:
|
azure_rm_hdinsightcluster_info:
|
||||||
resource_group: myResourceGroup
|
resource_group: myResourceGroup
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
@ -192,7 +192,7 @@ except ImportError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class AzureRMHDInsightclusterFacts(AzureRMModuleBase):
|
class AzureRMHDInsightclusterInfo(AzureRMModuleBase):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
# define user inputs into argument
|
# define user inputs into argument
|
||||||
self.module_arg_spec = dict(
|
self.module_arg_spec = dict(
|
||||||
|
@ -215,9 +215,15 @@ class AzureRMHDInsightclusterFacts(AzureRMModuleBase):
|
||||||
self.name = None
|
self.name = None
|
||||||
self.tags = None
|
self.tags = None
|
||||||
|
|
||||||
super(AzureRMHDInsightclusterFacts, self).__init__(self.module_arg_spec, supports_tags=False)
|
super(AzureRMHDInsightclusterInfo, self).__init__(self.module_arg_spec, supports_tags=False)
|
||||||
|
|
||||||
def exec_module(self, **kwargs):
|
def exec_module(self, **kwargs):
|
||||||
|
|
||||||
|
is_old_facts = self.module._name == 'azure_rm_hdinsightcluster_facts'
|
||||||
|
if is_old_facts:
|
||||||
|
self.module.deprecate("The 'azure_rm_hdinsightcluster_facts' module has been renamed to 'azure_rm_hdinsightcluster_info'",
|
||||||
|
version='2.13')
|
||||||
|
|
||||||
for key in self.module_arg_spec:
|
for key in self.module_arg_spec:
|
||||||
setattr(self, key, kwargs[key])
|
setattr(self, key, kwargs[key])
|
||||||
self.mgmt_client = self.get_mgmt_svc_client(HDInsightManagementClient,
|
self.mgmt_client = self.get_mgmt_svc_client(HDInsightManagementClient,
|
||||||
|
@ -308,7 +314,7 @@ class AzureRMHDInsightclusterFacts(AzureRMModuleBase):
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
AzureRMHDInsightclusterFacts()
|
AzureRMHDInsightclusterInfo()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
|
@ -12,9 +12,9 @@ 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.9"
|
||||||
|
|
||||||
short_description: Get facts about azure custom images
|
short_description: Get facts about azure custom images
|
||||||
|
|
||||||
|
@ -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:
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
|
||||||
|
@ -179,7 +179,7 @@ from ansible.module_utils.azure_rm_common import AzureRMModuleBase
|
||||||
AZURE_ENUM_MODULES = ['azure.mgmt.compute.models']
|
AZURE_ENUM_MODULES = ['azure.mgmt.compute.models']
|
||||||
|
|
||||||
|
|
||||||
class AzureRMImageFacts(AzureRMModuleBase):
|
class AzureRMImageInfo(AzureRMModuleBase):
|
||||||
|
|
||||||
def __init__(self, **kwargs):
|
def __init__(self, **kwargs):
|
||||||
|
|
||||||
|
@ -198,7 +198,7 @@ class AzureRMImageFacts(AzureRMModuleBase):
|
||||||
self.format = None
|
self.format = None
|
||||||
self.tags = None
|
self.tags = None
|
||||||
|
|
||||||
super(AzureRMImageFacts, self).__init__(
|
super(AzureRMImageInfo, self).__init__(
|
||||||
derived_arg_spec=self.module_arg_spec,
|
derived_arg_spec=self.module_arg_spec,
|
||||||
supports_tags=False,
|
supports_tags=False,
|
||||||
facts_module=True
|
facts_module=True
|
||||||
|
@ -206,6 +206,10 @@ class AzureRMImageFacts(AzureRMModuleBase):
|
||||||
|
|
||||||
def exec_module(self, **kwargs):
|
def exec_module(self, **kwargs):
|
||||||
|
|
||||||
|
is_old_facts = self.module._name == 'azure_rm_image_facts'
|
||||||
|
if is_old_facts:
|
||||||
|
self.module.deprecate("The 'azure_rm_image_facts' module has been renamed to 'azure_rm_image_info'", version='2.13')
|
||||||
|
|
||||||
for key in self.module_arg_spec:
|
for key in self.module_arg_spec:
|
||||||
setattr(self, key, kwargs[key])
|
setattr(self, key, kwargs[key])
|
||||||
|
|
||||||
|
@ -296,7 +300,7 @@ class AzureRMImageFacts(AzureRMModuleBase):
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
AzureRMImageFacts()
|
AzureRMImageInfo()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
|
@ -15,9 +15,9 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
|
||||||
|
|
||||||
DOCUMENTATION = '''
|
DOCUMENTATION = '''
|
||||||
---
|
---
|
||||||
module: azure_rm_loadbalancer_facts
|
module: azure_rm_loadbalancer_info
|
||||||
|
|
||||||
version_added: "2.4"
|
version_added: "2.9"
|
||||||
|
|
||||||
short_description: Get load balancer facts
|
short_description: Get load balancer facts
|
||||||
|
|
||||||
|
@ -44,19 +44,19 @@ author:
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: Get facts for one load balancer
|
- name: Get facts for one load balancer
|
||||||
azure_rm_loadbalancer_facts:
|
azure_rm_loadbalancer_info:
|
||||||
name: Testing
|
name: Testing
|
||||||
resource_group: myResourceGroup
|
resource_group: myResourceGroup
|
||||||
|
|
||||||
- name: Get facts for all load balancers
|
- name: Get facts for all load balancers
|
||||||
azure_rm_loadbalancer_facts:
|
azure_rm_loadbalancer_info:
|
||||||
|
|
||||||
- name: Get facts for all load balancers in a specific resource group
|
- name: Get facts for all load balancers in a specific resource group
|
||||||
azure_rm_loadbalancer_facts:
|
azure_rm_loadbalancer_info:
|
||||||
resource_group: myResourceGroup
|
resource_group: myResourceGroup
|
||||||
|
|
||||||
- name: Get facts by tags
|
- name: Get facts by tags
|
||||||
azure_rm_loadbalancer_facts:
|
azure_rm_loadbalancer_info:
|
||||||
tags:
|
tags:
|
||||||
- testing
|
- testing
|
||||||
'''
|
'''
|
||||||
|
@ -81,7 +81,7 @@ except Exception:
|
||||||
AZURE_OBJECT_CLASS = 'LoadBalancer'
|
AZURE_OBJECT_CLASS = 'LoadBalancer'
|
||||||
|
|
||||||
|
|
||||||
class AzureRMLoadBalancerFacts(AzureRMModuleBase):
|
class AzureRMLoadBalancerInfo(AzureRMModuleBase):
|
||||||
"""Utility class to get load balancer facts"""
|
"""Utility class to get load balancer facts"""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
@ -94,7 +94,7 @@ class AzureRMLoadBalancerFacts(AzureRMModuleBase):
|
||||||
|
|
||||||
self.results = dict(
|
self.results = dict(
|
||||||
changed=False,
|
changed=False,
|
||||||
ansible_facts=dict(
|
ansible_info=dict(
|
||||||
azure_loadbalancers=[]
|
azure_loadbalancers=[]
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
@ -103,7 +103,7 @@ class AzureRMLoadBalancerFacts(AzureRMModuleBase):
|
||||||
self.resource_group = None
|
self.resource_group = None
|
||||||
self.tags = None
|
self.tags = None
|
||||||
|
|
||||||
super(AzureRMLoadBalancerFacts, self).__init__(
|
super(AzureRMLoadBalancerInfo, self).__init__(
|
||||||
derived_arg_spec=self.module_args,
|
derived_arg_spec=self.module_args,
|
||||||
supports_tags=False,
|
supports_tags=False,
|
||||||
facts_module=True
|
facts_module=True
|
||||||
|
@ -111,10 +111,14 @@ class AzureRMLoadBalancerFacts(AzureRMModuleBase):
|
||||||
|
|
||||||
def exec_module(self, **kwargs):
|
def exec_module(self, **kwargs):
|
||||||
|
|
||||||
|
is_old_facts = self.module._name == 'azure_rm_loadbalancer_facts'
|
||||||
|
if is_old_facts:
|
||||||
|
self.module.deprecate("The 'azure_rm_loadbalancer_facts' module has been renamed to 'azure_rm_loadbalancer_info'", version='2.13')
|
||||||
|
|
||||||
for key in self.module_args:
|
for key in self.module_args:
|
||||||
setattr(self, key, kwargs[key])
|
setattr(self, key, kwargs[key])
|
||||||
|
|
||||||
self.results['ansible_facts']['azure_loadbalancers'] = (
|
self.results['ansible_info']['azure_loadbalancers'] = (
|
||||||
self.get_item() if self.name
|
self.get_item() if self.name
|
||||||
else self.list_items()
|
else self.list_items()
|
||||||
)
|
)
|
||||||
|
@ -166,7 +170,7 @@ class AzureRMLoadBalancerFacts(AzureRMModuleBase):
|
||||||
def main():
|
def main():
|
||||||
"""Main module execution code path"""
|
"""Main module execution code path"""
|
||||||
|
|
||||||
AzureRMLoadBalancerFacts()
|
AzureRMLoadBalancerInfo()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
|
@ -15,7 +15,7 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
|
||||||
|
|
||||||
DOCUMENTATION = '''
|
DOCUMENTATION = '''
|
||||||
---
|
---
|
||||||
module: azure_rm_lock_facts
|
module: azure_rm_lock_info
|
||||||
version_added: "2.9"
|
version_added: "2.9"
|
||||||
short_description: Manage Azure locks
|
short_description: Manage Azure locks
|
||||||
description:
|
description:
|
||||||
|
@ -56,27 +56,27 @@ author:
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: Get myLock details of myVM
|
- name: Get myLock details of myVM
|
||||||
azure_rm_lock_facts:
|
azure_rm_lock_info:
|
||||||
name: myLock
|
name: myLock
|
||||||
managed_resource_id: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM
|
managed_resource_id: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM
|
||||||
|
|
||||||
- name: List locks of myVM
|
- name: List locks of myVM
|
||||||
azure_rm_lock_facts:
|
azure_rm_lock_info:
|
||||||
managed_resource_id: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM
|
managed_resource_id: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM
|
||||||
|
|
||||||
- name: List locks of myResourceGroup
|
- name: List locks of myResourceGroup
|
||||||
azure_rm_lock_facts:
|
azure_rm_lock_info:
|
||||||
resource_group: myResourceGroup
|
resource_group: myResourceGroup
|
||||||
|
|
||||||
- name: List locks of myResourceGroup
|
- name: List locks of myResourceGroup
|
||||||
azure_rm_lock_facts:
|
azure_rm_lock_info:
|
||||||
managed_resource_id: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/myResourceGroup
|
managed_resource_id: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/myResourceGroup
|
||||||
|
|
||||||
- name: List locks of mySubscription
|
- name: List locks of mySubscription
|
||||||
azure_rm_lock_facts:
|
azure_rm_lock_info:
|
||||||
|
|
||||||
- name: List locks of mySubscription
|
- name: List locks of mySubscription
|
||||||
azure_rm_lock_facts:
|
azure_rm_lock_info:
|
||||||
managed_resource_id: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
|
managed_resource_id: /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
@ -126,7 +126,7 @@ except ImportError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class AzureRMLockFacts(AzureRMModuleBase):
|
class AzureRMLockInfo(AzureRMModuleBase):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|
||||||
|
@ -150,10 +150,14 @@ class AzureRMLockFacts(AzureRMModuleBase):
|
||||||
self._query_parameters = {'api-version': '2016-09-01'}
|
self._query_parameters = {'api-version': '2016-09-01'}
|
||||||
self._header_parameters = {'Content-Type': 'application/json; charset=utf-8'}
|
self._header_parameters = {'Content-Type': 'application/json; charset=utf-8'}
|
||||||
|
|
||||||
super(AzureRMLockFacts, self).__init__(self.module_arg_spec, facts_module=True, mutually_exclusive=mutually_exclusive, supports_tags=False)
|
super(AzureRMLockInfo, self).__init__(self.module_arg_spec, facts_module=True, mutually_exclusive=mutually_exclusive, supports_tags=False)
|
||||||
|
|
||||||
def exec_module(self, **kwargs):
|
def exec_module(self, **kwargs):
|
||||||
|
|
||||||
|
is_old_facts = self.module._name == 'azure_rm_lock_facts'
|
||||||
|
if is_old_facts:
|
||||||
|
self.module.deprecate("The 'azure_rm_lock_facts' module has been renamed to 'azure_rm_lock_info'", version='2.13')
|
||||||
|
|
||||||
for key in self.module_arg_spec.keys():
|
for key in self.module_arg_spec.keys():
|
||||||
setattr(self, key, kwargs[key])
|
setattr(self, key, kwargs[key])
|
||||||
|
|
||||||
|
@ -212,7 +216,7 @@ class AzureRMLockFacts(AzureRMModuleBase):
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
AzureRMLockFacts()
|
AzureRMLockInfo()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
|
@ -15,8 +15,8 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
|
||||||
|
|
||||||
DOCUMENTATION = '''
|
DOCUMENTATION = '''
|
||||||
---
|
---
|
||||||
module: azure_rm_loganalyticsworkspace_facts
|
module: azure_rm_loganalyticsworkspace_info
|
||||||
version_added: "2.8"
|
version_added: "2.9"
|
||||||
short_description: Get facts of Azure Log Analytics workspaces
|
short_description: Get facts of Azure Log Analytics workspaces
|
||||||
description:
|
description:
|
||||||
- Get, query Azure Log Analytics workspaces.
|
- Get, query Azure Log Analytics workspaces.
|
||||||
|
@ -57,7 +57,7 @@ author:
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: Query a workspace
|
- name: Query a workspace
|
||||||
azure_rm_loganalyticsworkspace_facts:
|
azure_rm_loganalyticsworkspace_info:
|
||||||
resource_group: myResourceGroup
|
resource_group: myResourceGroup
|
||||||
name: myLogAnalyticsWorkspace
|
name: myLogAnalyticsWorkspace
|
||||||
show_intelligence_packs: true
|
show_intelligence_packs: true
|
||||||
|
@ -148,7 +148,7 @@ except ImportError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class AzureRMLogAnalyticsWorkspaceFact(AzureRMModuleBase):
|
class AzureRMLogAnalyticsWorkspaceInfo(AzureRMModuleBase):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|
||||||
|
@ -175,10 +175,15 @@ class AzureRMLogAnalyticsWorkspaceFact(AzureRMModuleBase):
|
||||||
self.show_usages = None
|
self.show_usages = None
|
||||||
self.show_management_groups = None
|
self.show_management_groups = None
|
||||||
|
|
||||||
super(AzureRMLogAnalyticsWorkspaceFact, self).__init__(self.module_arg_spec, supports_tags=False, facts_module=True)
|
super(AzureRMLogAnalyticsWorkspaceInfo, self).__init__(self.module_arg_spec, supports_tags=False, facts_module=True)
|
||||||
|
|
||||||
def exec_module(self, **kwargs):
|
def exec_module(self, **kwargs):
|
||||||
|
|
||||||
|
is_old_facts = self.module._name == 'azure_rm_loganalyticsworkspace_facts'
|
||||||
|
if is_old_facts:
|
||||||
|
self.module.deprecate("The 'azure_rm_loganalyticsworkspace_facts' module has been renamed to 'azure_rm_loganalyticsworkspace_info'",
|
||||||
|
version='2.13')
|
||||||
|
|
||||||
for key in list(self.module_arg_spec.keys()):
|
for key in list(self.module_arg_spec.keys()):
|
||||||
setattr(self, key, kwargs[key])
|
setattr(self, key, kwargs[key])
|
||||||
|
|
||||||
|
@ -257,7 +262,7 @@ class AzureRMLogAnalyticsWorkspaceFact(AzureRMModuleBase):
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
AzureRMLogAnalyticsWorkspaceFact()
|
AzureRMLogAnalyticsWorkspaceInfo()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
|
@ -14,9 +14,9 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
|
||||||
|
|
||||||
DOCUMENTATION = r'''
|
DOCUMENTATION = r'''
|
||||||
---
|
---
|
||||||
module: azure_rm_manageddisk_facts
|
module: azure_rm_manageddisk_info
|
||||||
|
|
||||||
version_added: "2.4"
|
version_added: "2.9"
|
||||||
|
|
||||||
short_description: Get managed disk facts
|
short_description: Get managed disk facts
|
||||||
|
|
||||||
|
@ -51,15 +51,15 @@ author:
|
||||||
|
|
||||||
EXAMPLES = r'''
|
EXAMPLES = r'''
|
||||||
- name: Get facts for one managed disk
|
- name: Get facts for one managed disk
|
||||||
azure_rm_manageddisk_facts:
|
azure_rm_manageddisk_info:
|
||||||
name: Testing
|
name: Testing
|
||||||
resource_group: myResourceGroup
|
resource_group: myResourceGroup
|
||||||
|
|
||||||
- name: Get facts for all managed disks
|
- name: Get facts for all managed disks
|
||||||
azure_rm_manageddisk_facts:
|
azure_rm_manageddisk_info:
|
||||||
|
|
||||||
- name: Get facts by tags
|
- name: Get facts by tags
|
||||||
azure_rm_manageddisk_facts:
|
azure_rm_manageddisk_info:
|
||||||
tags:
|
tags:
|
||||||
- testing
|
- testing
|
||||||
'''
|
'''
|
||||||
|
@ -147,7 +147,7 @@ def managed_disk_to_dict(managed_disk):
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class AzureRMManagedDiskFacts(AzureRMModuleBase):
|
class AzureRMManagedDiskInfo(AzureRMModuleBase):
|
||||||
"""Utility class to get managed disk facts"""
|
"""Utility class to get managed disk facts"""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
@ -163,7 +163,7 @@ class AzureRMManagedDiskFacts(AzureRMModuleBase):
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
self.results = dict(
|
self.results = dict(
|
||||||
ansible_facts=dict(
|
ansible_info=dict(
|
||||||
azure_managed_disk=[]
|
azure_managed_disk=[]
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
@ -173,7 +173,7 @@ class AzureRMManagedDiskFacts(AzureRMModuleBase):
|
||||||
self.source_uri = None
|
self.source_uri = None
|
||||||
self.source_resource_uri = None
|
self.source_resource_uri = None
|
||||||
self.tags = None
|
self.tags = None
|
||||||
super(AzureRMManagedDiskFacts, self).__init__(
|
super(AzureRMManagedDiskInfo, self).__init__(
|
||||||
derived_arg_spec=self.module_arg_spec,
|
derived_arg_spec=self.module_arg_spec,
|
||||||
supports_check_mode=True,
|
supports_check_mode=True,
|
||||||
supports_tags=True)
|
supports_tags=True)
|
||||||
|
@ -182,7 +182,7 @@ class AzureRMManagedDiskFacts(AzureRMModuleBase):
|
||||||
for key in self.module_arg_spec:
|
for key in self.module_arg_spec:
|
||||||
setattr(self, key, kwargs[key])
|
setattr(self, key, kwargs[key])
|
||||||
|
|
||||||
self.results['ansible_facts']['azure_managed_disk'] = (
|
self.results['ansible_info']['azure_managed_disk'] = (
|
||||||
self.get_item() if self.name
|
self.get_item() if self.name
|
||||||
else (self.list_items_by_resource_group() if self.resource_group else self.list_items())
|
else (self.list_items_by_resource_group() if self.resource_group else self.list_items())
|
||||||
)
|
)
|
||||||
|
@ -236,7 +236,7 @@ class AzureRMManagedDiskFacts(AzureRMModuleBase):
|
||||||
def main():
|
def main():
|
||||||
"""Main module execution code path"""
|
"""Main module execution code path"""
|
||||||
|
|
||||||
AzureRMManagedDiskFacts()
|
AzureRMManagedDiskInfo()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
|
@ -16,9 +16,9 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
|
||||||
|
|
||||||
DOCUMENTATION = '''
|
DOCUMENTATION = '''
|
||||||
---
|
---
|
||||||
module: azure_rm_networkinterface_facts
|
module: azure_rm_networkinterface_info
|
||||||
|
|
||||||
version_added: "2.1"
|
version_added: "2.9"
|
||||||
|
|
||||||
short_description: Get network interface facts
|
short_description: Get network interface facts
|
||||||
|
|
||||||
|
@ -47,16 +47,16 @@ author:
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: Get facts for one network interface
|
- name: Get facts for one network interface
|
||||||
azure_rm_networkinterface_facts:
|
azure_rm_networkinterface_info:
|
||||||
resource_group: myResourceGroup
|
resource_group: myResourceGroup
|
||||||
name: nic001
|
name: nic001
|
||||||
|
|
||||||
- name: Get network interfaces within a resource group
|
- name: Get network interfaces within a resource group
|
||||||
azure_rm_networkinterface_facts:
|
azure_rm_networkinterface_info:
|
||||||
resource_group: myResourceGroup
|
resource_group: myResourceGroup
|
||||||
|
|
||||||
- name: Get network interfaces by tag
|
- name: Get network interfaces by tag
|
||||||
azure_rm_networkinterface_facts:
|
azure_rm_networkinterface_info:
|
||||||
resource_group: myResourceGroup
|
resource_group: myResourceGroup
|
||||||
tags:
|
tags:
|
||||||
- testing
|
- testing
|
||||||
|
@ -261,7 +261,7 @@ def nic_to_dict(nic):
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class AzureRMNetworkInterfaceFacts(AzureRMModuleBase):
|
class AzureRMNetworkInterfaceInfo(AzureRMModuleBase):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|
||||||
|
@ -273,20 +273,25 @@ class AzureRMNetworkInterfaceFacts(AzureRMModuleBase):
|
||||||
|
|
||||||
self.results = dict(
|
self.results = dict(
|
||||||
changed=False,
|
changed=False,
|
||||||
ansible_facts=dict(azure_networkinterfaces=[])
|
ansible_info=dict(azure_networkinterfaces=[])
|
||||||
)
|
)
|
||||||
|
|
||||||
self.name = None
|
self.name = None
|
||||||
self.resource_group = None
|
self.resource_group = None
|
||||||
self.tags = None
|
self.tags = None
|
||||||
|
|
||||||
super(AzureRMNetworkInterfaceFacts, self).__init__(self.module_arg_spec,
|
super(AzureRMNetworkInterfaceInfo, 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):
|
||||||
|
|
||||||
|
is_old_facts = self.module._name == 'azure_rm_networkinterface_facts'
|
||||||
|
if is_old_facts:
|
||||||
|
self.module.deprecate("The 'azure_rm_networkinterface_facts' module has been renamed to 'azure_rm_networkinterface_info'",
|
||||||
|
version='2.13')
|
||||||
|
|
||||||
for key in self.module_arg_spec:
|
for key in self.module_arg_spec:
|
||||||
setattr(self, key, kwargs[key])
|
setattr(self, key, kwargs[key])
|
||||||
|
|
||||||
|
@ -302,7 +307,7 @@ class AzureRMNetworkInterfaceFacts(AzureRMModuleBase):
|
||||||
else:
|
else:
|
||||||
results = self.list_all()
|
results = self.list_all()
|
||||||
|
|
||||||
self.results['ansible_facts']['azure_networkinterfaces'] = self.serialize_nics(results)
|
self.results['ansible_info']['azure_networkinterfaces'] = self.serialize_nics(results)
|
||||||
self.results['networkinterfaces'] = self.to_dict_list(results)
|
self.results['networkinterfaces'] = self.to_dict_list(results)
|
||||||
return self.results
|
return self.results
|
||||||
|
|
||||||
|
@ -340,7 +345,7 @@ class AzureRMNetworkInterfaceFacts(AzureRMModuleBase):
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
AzureRMNetworkInterfaceFacts()
|
AzureRMNetworkInterfaceInfo()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
|
@ -16,9 +16,9 @@ ANSIBLE_METADATA = {'metadata_version': '1.1',
|
||||||
|
|
||||||
DOCUMENTATION = '''
|
DOCUMENTATION = '''
|
||||||
---
|
---
|
||||||
module: azure_rm_securitygroup_facts
|
module: azure_rm_securitygroup_info
|
||||||
|
|
||||||
version_added: "2.1"
|
version_added: "2.9"
|
||||||
|
|
||||||
short_description: Get security group facts
|
short_description: Get security group facts
|
||||||
|
|
||||||
|
@ -48,12 +48,12 @@ author:
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
- name: Get facts for one security group
|
- name: Get facts for one security group
|
||||||
azure_rm_securitygroup_facts:
|
azure_rm_securitygroup_info:
|
||||||
resource_group: myResourceGroup
|
resource_group: myResourceGroup
|
||||||
name: secgroup001
|
name: secgroup001
|
||||||
|
|
||||||
- name: Get facts for all security groups
|
- name: Get facts for all security groups
|
||||||
azure_rm_securitygroup_facts:
|
azure_rm_securitygroup_info:
|
||||||
resource_group: myResourceGroup
|
resource_group: myResourceGroup
|
||||||
|
|
||||||
'''
|
'''
|
||||||
|
@ -235,7 +235,7 @@ from ansible.module_utils.azure_rm_common import AzureRMModuleBase
|
||||||
AZURE_OBJECT_CLASS = 'NetworkSecurityGroup'
|
AZURE_OBJECT_CLASS = 'NetworkSecurityGroup'
|
||||||
|
|
||||||
|
|
||||||
class AzureRMSecurityGroupFacts(AzureRMModuleBase):
|
class AzureRMSecurityGroupInfo(AzureRMModuleBase):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|
||||||
|
@ -247,25 +247,30 @@ class AzureRMSecurityGroupFacts(AzureRMModuleBase):
|
||||||
|
|
||||||
self.results = dict(
|
self.results = dict(
|
||||||
changed=False,
|
changed=False,
|
||||||
ansible_facts=dict(azure_securitygroups=[])
|
ansible_info=dict(azure_securitygroups=[])
|
||||||
)
|
)
|
||||||
|
|
||||||
self.name = None
|
self.name = None
|
||||||
self.resource_group = None
|
self.resource_group = None
|
||||||
self.tags = None
|
self.tags = None
|
||||||
|
|
||||||
super(AzureRMSecurityGroupFacts, self).__init__(self.module_arg_spec,
|
super(AzureRMSecurityGroupInfo, 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):
|
||||||
|
|
||||||
|
is_old_facts = self.module._name == 'azure_rm_securitygroup_facts'
|
||||||
|
if is_old_facts:
|
||||||
|
self.module.deprecate("The 'azure_rm_securitygroup_facts' module has been renamed to 'azure_rm_securitygroup_info'", version='2.13')
|
||||||
|
|
||||||
for key in self.module_arg_spec:
|
for key in self.module_arg_spec:
|
||||||
setattr(self, key, kwargs[key])
|
setattr(self, key, kwargs[key])
|
||||||
|
|
||||||
if self.name is not None:
|
if self.name is not None:
|
||||||
self.results['ansible_facts']['azure_securitygroups'] = self.get_item()
|
self.results['ansible_info']['azure_securitygroups'] = self.get_item()
|
||||||
else:
|
else:
|
||||||
self.results['ansible_facts']['azure_securitygroups'] = self.list_items()
|
self.results['ansible_info']['azure_securitygroups'] = self.list_items()
|
||||||
|
|
||||||
return self.results
|
return self.results
|
||||||
|
|
||||||
|
@ -303,7 +308,7 @@ class AzureRMSecurityGroupFacts(AzureRMModuleBase):
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
AzureRMSecurityGroupFacts()
|
AzureRMSecurityGroupInfo()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
|
@ -112,9 +112,9 @@
|
||||||
that:
|
that:
|
||||||
- not results.changed
|
- not results.changed
|
||||||
- not results.failed
|
- not results.failed
|
||||||
- results.ansible_facts.azure_availabilitysets[0].properties.platformFaultDomainCount == 2
|
- results.ansible_info.azure_availabilitysets[0].properties.platformFaultDomainCount == 2
|
||||||
- results.ansible_facts.azure_availabilitysets[0].properties.platformUpdateDomainCount == 5
|
- results.ansible_info.azure_availabilitysets[0].properties.platformUpdateDomainCount == 5
|
||||||
- results.ansible_facts.azure_availabilitysets[0].sku == 'Aligned'
|
- results.ansible_info.azure_availabilitysets[0].sku == 'Aligned'
|
||||||
|
|
||||||
|
|
||||||
- name: Delete an availability set
|
- name: Delete an availability set
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
cloud/azure
|
cloud/azure
|
||||||
shippable/azure/group2
|
shippable/azure/group2
|
||||||
destructive
|
destructive
|
||||||
azure_rm_dnszone_facts
|
azure_rm_dnszone_info
|
||||||
azure_rm_dnsrecordset
|
azure_rm_dnsrecordset
|
||||||
azure_rm_dnsrecordset_facts
|
azure_rm_dnsrecordset_info
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
- results.state.tags.test == 'modified'
|
- results.state.tags.test == 'modified'
|
||||||
|
|
||||||
- name: Retrieve DNS Zone Facts
|
- name: Retrieve DNS Zone Facts
|
||||||
azure_rm_dnszone_facts:
|
azure_rm_dnszone_info:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
name: "{{ domain_name }}.com"
|
name: "{{ domain_name }}.com"
|
||||||
register: zones
|
register: zones
|
||||||
|
@ -43,7 +43,7 @@
|
||||||
- name: Assert that facts module returned result
|
- name: Assert that facts module returned result
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- azure_dnszones[0].tags.test == 'modified'
|
- zones.dnszones[0].tags.test == 'modified'
|
||||||
- zones.dnszones[0].type == 'public'
|
- zones.dnszones[0].type == 'public'
|
||||||
|
|
||||||
- name: Create virtual network
|
- name: Create virtual network
|
||||||
|
@ -254,11 +254,11 @@
|
||||||
- results.changed
|
- results.changed
|
||||||
|
|
||||||
#
|
#
|
||||||
# azure_rm_dnsrecordset_facts
|
# azure_rm_dnsrecordset_info
|
||||||
#
|
#
|
||||||
|
|
||||||
- name: Retrieve DNS Record Set Facts for single Record Set
|
- name: Retrieve DNS Record Set Facts for single Record Set
|
||||||
azure_rm_dnsrecordset_facts:
|
azure_rm_dnsrecordset_info:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
zone_name: "{{ domain_name }}.com"
|
zone_name: "{{ domain_name }}.com"
|
||||||
relative_name: www
|
relative_name: www
|
||||||
|
@ -269,13 +269,13 @@
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- not results.changed
|
- not results.changed
|
||||||
- azure_dnsrecordset[0].name == 'www'
|
# - azure_dnsrecordset[0].name == 'www'
|
||||||
- results.dnsrecordsets[0].relative_name == 'www'
|
- results.dnsrecordsets[0].relative_name == 'www'
|
||||||
- 'results.dnsrecordsets[0].records | length == 3'
|
- 'results.dnsrecordsets[0].records | length == 3'
|
||||||
- results.dnsrecordsets[0].record_type == 'A'
|
- results.dnsrecordsets[0].record_type == 'A'
|
||||||
|
|
||||||
- name: Retrieve DNS Record Set Facts for all Record Sets
|
- name: Retrieve DNS Record Set Facts for all Record Sets
|
||||||
azure_rm_dnsrecordset_facts:
|
azure_rm_dnsrecordset_info:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
zone_name: "{{ domain_name }}.com"
|
zone_name: "{{ domain_name }}.com"
|
||||||
register: facts
|
register: facts
|
||||||
|
@ -284,9 +284,9 @@
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- not facts.changed
|
- not facts.changed
|
||||||
- facts.ansible_facts.azure_dnsrecordset[0].name == '@'
|
# - facts.ansible_facts.azure_dnsrecordset[0].name == '@'
|
||||||
- facts.ansible_facts.azure_dnsrecordset[1].name == '@'
|
# - facts.ansible_facts.azure_dnsrecordset[1].name == '@'
|
||||||
- facts.ansible_facts.azure_dnsrecordset[4].name == 'www'
|
# - facts.ansible_facts.azure_dnsrecordset[4].name == 'www'
|
||||||
|
|
||||||
#
|
#
|
||||||
# azure_rm_dnsrecordset cleanup
|
# azure_rm_dnsrecordset cleanup
|
||||||
|
@ -308,7 +308,7 @@
|
||||||
that: results.changed
|
that: results.changed
|
||||||
|
|
||||||
- name: Retrieve DNS Record Set Facts for all Record Sets
|
- name: Retrieve DNS Record Set Facts for all Record Sets
|
||||||
azure_rm_dnsrecordset_facts:
|
azure_rm_dnsrecordset_info:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
zone_name: "{{ domain_name }}.com"
|
zone_name: "{{ domain_name }}.com"
|
||||||
register: facts
|
register: facts
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
that: output.changed
|
that: output.changed
|
||||||
|
|
||||||
- name: list facts for function
|
- name: list facts for function
|
||||||
azure_rm_functionapp_facts:
|
azure_rm_functionapp_info:
|
||||||
resource_group: '{{ resource_group }}'
|
resource_group: '{{ resource_group }}'
|
||||||
name: "{{ funcapp_name_basic }}"
|
name: "{{ funcapp_name_basic }}"
|
||||||
register: results
|
register: results
|
||||||
|
@ -36,8 +36,8 @@
|
||||||
- name: assert the facts were retrieved
|
- name: assert the facts were retrieved
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- results.ansible_facts.azure_functionapps|length == 1
|
- results.ansible_info.azure_functionapps|length == 1
|
||||||
- results.ansible_facts.azure_functionapps[0].name == "{{ funcapp_name_basic }}"
|
- results.ansible_info.azure_functionapps[0].name == "{{ funcapp_name_basic }}"
|
||||||
|
|
||||||
- name: delete basic function app
|
- name: delete basic function app
|
||||||
azure_rm_functionapp:
|
azure_rm_functionapp:
|
||||||
|
|
|
@ -2,4 +2,5 @@ cloud/azure
|
||||||
destructive
|
destructive
|
||||||
shippable/azure/group1
|
shippable/azure/group1
|
||||||
unstable # test is slow (~30 minute run time), not unstable, but this is better than unsupported
|
unstable # test is slow (~30 minute run time), not unstable, but this is better than unsupported
|
||||||
azure_rm_hdinsightcluster_facts
|
azure_rm_hdinsightcluster_info
|
||||||
|
disabled
|
||||||
|
|
|
@ -200,7 +200,7 @@
|
||||||
- output.changed
|
- output.changed
|
||||||
|
|
||||||
- name: Get facts of Cluster
|
- name: Get facts of Cluster
|
||||||
azure_rm_hdinsightcluster_facts:
|
azure_rm_hdinsightcluster_info:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
name: "cluster{{ rpfx }}"
|
name: "cluster{{ rpfx }}"
|
||||||
register: output
|
register: output
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
cloud/azure
|
cloud/azure
|
||||||
shippable/azure/group3
|
shippable/azure/group3
|
||||||
destructive
|
destructive
|
||||||
azure_rm_image_facts
|
azure_rm_image_info
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
cloud/azure
|
cloud/azure
|
||||||
destructive
|
destructive
|
||||||
unsupported
|
unsupported
|
||||||
azure_rm_lock_facts
|
azure_rm_lock_info
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
- lock.changed
|
- lock.changed
|
||||||
|
|
||||||
- name: Query lock
|
- name: Query lock
|
||||||
azure_rm_lock_facts:
|
azure_rm_lock_info:
|
||||||
managed_resource_id: "{{ vn.state.id }}"
|
managed_resource_id: "{{ vn.state.id }}"
|
||||||
register: locks
|
register: locks
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@
|
||||||
- lock.id
|
- lock.id
|
||||||
|
|
||||||
- name: Query lock
|
- name: Query lock
|
||||||
azure_rm_lock_facts:
|
azure_rm_lock_info:
|
||||||
name: keep
|
name: keep
|
||||||
managed_resource_id: "{{ vn.state.id }}"
|
managed_resource_id: "{{ vn.state.id }}"
|
||||||
register: locks
|
register: locks
|
||||||
|
@ -84,7 +84,7 @@
|
||||||
- lock.changed
|
- lock.changed
|
||||||
|
|
||||||
- name: Query lock
|
- name: Query lock
|
||||||
azure_rm_lock_facts:
|
azure_rm_lock_info:
|
||||||
managed_resource_id: "{{ vn.state.id }}"
|
managed_resource_id: "{{ vn.state.id }}"
|
||||||
register: locks
|
register: locks
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
cloud/azure
|
cloud/azure
|
||||||
shippable/azure/group3
|
shippable/azure/group3
|
||||||
destructive
|
destructive
|
||||||
azure_rm_manageddisk_facts
|
azure_rm_manageddisk_info
|
||||||
|
|
|
@ -132,21 +132,22 @@
|
||||||
- output.state.os_type == 'linux'
|
- output.state.os_type == 'linux'
|
||||||
|
|
||||||
- name: Gather facts to one specific disk
|
- name: Gather facts to one specific disk
|
||||||
azure_rm_manageddisk_facts:
|
azure_rm_manageddisk_info:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
name: "md{{ rpfx }}1"
|
name: "md{{ rpfx }}1"
|
||||||
|
register: output
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
that:
|
that:
|
||||||
- "azure_managed_disk | length == 1"
|
- "output.ansible_info.azure_managed_disk | length == 1"
|
||||||
- azure_managed_disk[0].storage_account_type == "StandardSSD_LRS"
|
- output.ansible_info.azure_managed_disk[0].storage_account_type == "StandardSSD_LRS"
|
||||||
- azure_managed_disk[0].disk_size_gb == 2
|
- output.ansible_info.azure_managed_disk[0].disk_size_gb == 2
|
||||||
- "azure_managed_disk[0].os_type == 'linux'"
|
- "output.ansible_info.azure_managed_disk[0].os_type == 'linux'"
|
||||||
|
|
||||||
- set_fact:
|
- set_fact:
|
||||||
parameter: "{{parameter |combine({item.key: item.value})}}"
|
parameter: "{{parameter |combine({item.key: item.value})}}"
|
||||||
when: "{{item.key not in ['id', 'changed'] and item.value != None}}"
|
when: "{{item.key not in ['id', 'changed'] and item.value != None}}"
|
||||||
with_dict: "{{ azure_managed_disk[0] }}"
|
with_dict: "{{ output.ansible_info.azure_managed_disk[0] }}"
|
||||||
|
|
||||||
- name: Create disk with facts return value
|
- name: Create disk with facts return value
|
||||||
azure_rm_manageddisk:
|
azure_rm_manageddisk:
|
||||||
|
|
|
@ -87,7 +87,7 @@
|
||||||
- output.state.id
|
- output.state.id
|
||||||
|
|
||||||
- name: Get fact of the new created NIC
|
- name: Get fact of the new created NIC
|
||||||
azure_rm_networkinterface_facts:
|
azure_rm_networkinterface_info:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
name: "tn{{ rpfx }}"
|
name: "tn{{ rpfx }}"
|
||||||
register: facts
|
register: facts
|
||||||
|
@ -277,7 +277,7 @@
|
||||||
- not output.changed
|
- not output.changed
|
||||||
|
|
||||||
- name: Get fact of the new created NIC
|
- name: Get fact of the new created NIC
|
||||||
azure_rm_networkinterface_facts:
|
azure_rm_networkinterface_info:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
name: "tn{{ rpfx }}"
|
name: "tn{{ rpfx }}"
|
||||||
register: facts
|
register: facts
|
||||||
|
@ -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
|
||||||
|
@ -460,7 +460,7 @@
|
||||||
- output.changed
|
- output.changed
|
||||||
|
|
||||||
- name: Get fact of the new created NIC
|
- name: Get fact of the new created NIC
|
||||||
azure_rm_networkinterface_facts:
|
azure_rm_networkinterface_info:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
name: "{{ nic_name1 }}"
|
name: "{{ nic_name1 }}"
|
||||||
register: facts
|
register: facts
|
||||||
|
|
|
@ -166,7 +166,7 @@
|
||||||
- output.state.tags.testing == 'testing'
|
- output.state.tags.testing == 'testing'
|
||||||
|
|
||||||
- name: Gather facts for tags
|
- name: Gather facts for tags
|
||||||
azure_rm_networkinterface_facts:
|
azure_rm_networkinterface_info:
|
||||||
tags: testing
|
tags: testing
|
||||||
register: output
|
register: output
|
||||||
|
|
||||||
|
@ -175,7 +175,7 @@
|
||||||
- azure_networkinterfaces | length >= 1
|
- azure_networkinterfaces | length >= 1
|
||||||
|
|
||||||
- name: Gather facts for resource group and tags
|
- name: Gather facts for resource group and tags
|
||||||
azure_rm_networkinterface_facts:
|
azure_rm_networkinterface_info:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
tags: testing
|
tags: testing
|
||||||
register: output
|
register: output
|
||||||
|
@ -185,7 +185,7 @@
|
||||||
- azure_networkinterfaces| length == 1
|
- azure_networkinterfaces| length == 1
|
||||||
|
|
||||||
- name: Gather facts for name and tags
|
- name: Gather facts for name and tags
|
||||||
azure_rm_networkinterface_facts:
|
azure_rm_networkinterface_info:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
name: nic003
|
name: nic003
|
||||||
tags: testing
|
tags: testing
|
||||||
|
@ -262,7 +262,7 @@
|
||||||
- output.state.network_security_group.name == 'nic00401'
|
- output.state.network_security_group.name == 'nic00401'
|
||||||
|
|
||||||
- name: Gather facts for security group nic00401
|
- name: Gather facts for security group nic00401
|
||||||
azure_rm_securitygroup_facts:
|
azure_rm_securitygroup_info:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
name: nic00401
|
name: nic00401
|
||||||
register: output
|
register: output
|
||||||
|
@ -289,7 +289,7 @@
|
||||||
- output.state.network_security_group.name == 'nic00501'
|
- output.state.network_security_group.name == 'nic00501'
|
||||||
|
|
||||||
- name: Gather facts for security group nic00501
|
- name: Gather facts for security group nic00501
|
||||||
azure_rm_securitygroup_facts:
|
azure_rm_securitygroup_info:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
name: nic00501
|
name: nic00501
|
||||||
register: output
|
register: output
|
||||||
|
@ -301,7 +301,7 @@
|
||||||
- azure_securitygroups[0].properties.securityRules[1].properties.destinationPortRange == '9005-9010'
|
- azure_securitygroups[0].properties.securityRules[1].properties.destinationPortRange == '9005-9010'
|
||||||
|
|
||||||
- name: Gather facts for one nic
|
- name: Gather facts for one nic
|
||||||
azure_rm_networkinterface_facts:
|
azure_rm_networkinterface_info:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
name: nic003
|
name: nic003
|
||||||
register: output
|
register: output
|
||||||
|
@ -311,7 +311,7 @@
|
||||||
- azure_networkinterfaces | length == 1
|
- azure_networkinterfaces | length == 1
|
||||||
|
|
||||||
- name: Gather facts for all nics in resource groups
|
- name: Gather facts for all nics in resource groups
|
||||||
azure_rm_networkinterface_facts:
|
azure_rm_networkinterface_info:
|
||||||
resource_group: "{{ resource_group }}"
|
resource_group: "{{ resource_group }}"
|
||||||
register: output
|
register: output
|
||||||
|
|
||||||
|
@ -320,7 +320,7 @@
|
||||||
- azure_networkinterfaces | length >= 3
|
- azure_networkinterfaces | length >= 3
|
||||||
|
|
||||||
- name: Gather facts for all nics
|
- name: Gather facts for all nics
|
||||||
azure_rm_networkinterface_facts:
|
azure_rm_networkinterface_info:
|
||||||
register: output
|
register: output
|
||||||
|
|
||||||
- assert:
|
- assert:
|
||||||
|
|
|
@ -1135,19 +1135,19 @@ lib/ansible/modules/cloud/azure/azure_rm_devtestlabvirtualmachine.py validate-mo
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_devtestlabvirtualnetwork.py validate-modules:parameter-type-not-in-doc
|
lib/ansible/modules/cloud/azure/azure_rm_devtestlabvirtualnetwork.py validate-modules:parameter-type-not-in-doc
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_dnsrecordset.py validate-modules:parameter-type-not-in-doc
|
lib/ansible/modules/cloud/azure/azure_rm_dnsrecordset.py validate-modules:parameter-type-not-in-doc
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_dnsrecordset.py validate-modules:doc-missing-type
|
lib/ansible/modules/cloud/azure/azure_rm_dnsrecordset.py validate-modules:doc-missing-type
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_dnsrecordset_facts.py validate-modules:parameter-type-not-in-doc
|
lib/ansible/modules/cloud/azure/azure_rm_dnsrecordset_info.py validate-modules:parameter-type-not-in-doc
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_dnszone.py validate-modules:parameter-type-not-in-doc
|
lib/ansible/modules/cloud/azure/azure_rm_dnszone.py validate-modules:parameter-type-not-in-doc
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_dnszone_facts.py validate-modules:doc-type-does-not-match-spec
|
lib/ansible/modules/cloud/azure/azure_rm_dnszone_info.py validate-modules:doc-type-does-not-match-spec
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_dnszone_facts.py validate-modules:parameter-type-not-in-doc
|
lib/ansible/modules/cloud/azure/azure_rm_dnszone_info.py validate-modules:parameter-type-not-in-doc
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_functionapp.py validate-modules:parameter-type-not-in-doc
|
lib/ansible/modules/cloud/azure/azure_rm_functionapp.py validate-modules:parameter-type-not-in-doc
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_functionapp_facts.py validate-modules:parameter-type-not-in-doc
|
lib/ansible/modules/cloud/azure/azure_rm_functionapp_info.py validate-modules:parameter-type-not-in-doc
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_galleryimageversion.py validate-modules:doc-type-does-not-match-spec
|
lib/ansible/modules/cloud/azure/azure_rm_galleryimageversion.py validate-modules:doc-type-does-not-match-spec
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_galleryimageversion.py validate-modules:doc-choices-do-not-match-spec
|
lib/ansible/modules/cloud/azure/azure_rm_galleryimageversion.py validate-modules:doc-choices-do-not-match-spec
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_galleryimageversion.py validate-modules:parameter-type-not-in-doc
|
lib/ansible/modules/cloud/azure/azure_rm_galleryimageversion.py validate-modules:parameter-type-not-in-doc
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_hdinsightcluster.py validate-modules:parameter-type-not-in-doc
|
lib/ansible/modules/cloud/azure/azure_rm_hdinsightcluster.py validate-modules:parameter-type-not-in-doc
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_hdinsightcluster_facts.py validate-modules:parameter-type-not-in-doc
|
lib/ansible/modules/cloud/azure/azure_rm_hdinsightcluster_info.py validate-modules:parameter-type-not-in-doc
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_image.py validate-modules:parameter-type-not-in-doc
|
lib/ansible/modules/cloud/azure/azure_rm_image.py validate-modules:parameter-type-not-in-doc
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_image_facts.py validate-modules:parameter-type-not-in-doc
|
lib/ansible/modules/cloud/azure/azure_rm_image_info.py validate-modules:parameter-type-not-in-doc
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_keyvault.py validate-modules:doc-choices-do-not-match-spec
|
lib/ansible/modules/cloud/azure/azure_rm_keyvault.py validate-modules:doc-choices-do-not-match-spec
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_keyvault.py validate-modules:parameter-type-not-in-doc
|
lib/ansible/modules/cloud/azure/azure_rm_keyvault.py validate-modules:parameter-type-not-in-doc
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_keyvault_info.py validate-modules:parameter-type-not-in-doc
|
lib/ansible/modules/cloud/azure/azure_rm_keyvault_info.py validate-modules:parameter-type-not-in-doc
|
||||||
|
@ -1156,11 +1156,11 @@ lib/ansible/modules/cloud/azure/azure_rm_keyvaultsecret.py validate-modules:para
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_loadbalancer.py validate-modules:doc-default-does-not-match-spec
|
lib/ansible/modules/cloud/azure/azure_rm_loadbalancer.py validate-modules:doc-default-does-not-match-spec
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_loadbalancer.py validate-modules:doc-choices-do-not-match-spec
|
lib/ansible/modules/cloud/azure/azure_rm_loadbalancer.py validate-modules:doc-choices-do-not-match-spec
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_loadbalancer.py validate-modules:parameter-type-not-in-doc
|
lib/ansible/modules/cloud/azure/azure_rm_loadbalancer.py validate-modules:parameter-type-not-in-doc
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_loadbalancer_facts.py validate-modules:parameter-type-not-in-doc
|
lib/ansible/modules/cloud/azure/azure_rm_loadbalancer_info.py validate-modules:parameter-type-not-in-doc
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_loganalyticsworkspace.py validate-modules:parameter-type-not-in-doc
|
lib/ansible/modules/cloud/azure/azure_rm_loganalyticsworkspace.py validate-modules:parameter-type-not-in-doc
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_loganalyticsworkspace_facts.py validate-modules:parameter-type-not-in-doc
|
lib/ansible/modules/cloud/azure/azure_rm_loganalyticsworkspace_info.py validate-modules:parameter-type-not-in-doc
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_manageddisk.py validate-modules:parameter-type-not-in-doc
|
lib/ansible/modules/cloud/azure/azure_rm_manageddisk.py validate-modules:parameter-type-not-in-doc
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_manageddisk_facts.py validate-modules:doc-type-does-not-match-spec
|
lib/ansible/modules/cloud/azure/azure_rm_manageddisk_info.py validate-modules:doc-type-does-not-match-spec
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_mariadbconfiguration.py validate-modules:parameter-type-not-in-doc
|
lib/ansible/modules/cloud/azure/azure_rm_mariadbconfiguration.py validate-modules:parameter-type-not-in-doc
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_mariadbdatabase.py validate-modules:parameter-type-not-in-doc
|
lib/ansible/modules/cloud/azure/azure_rm_mariadbdatabase.py validate-modules:parameter-type-not-in-doc
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_mariadbfirewallrule.py validate-modules:parameter-type-not-in-doc
|
lib/ansible/modules/cloud/azure/azure_rm_mariadbfirewallrule.py validate-modules:parameter-type-not-in-doc
|
||||||
|
@ -1171,7 +1171,7 @@ lib/ansible/modules/cloud/azure/azure_rm_mysqlfirewallrule.py validate-modules:p
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_mysqlserver.py validate-modules:parameter-type-not-in-doc
|
lib/ansible/modules/cloud/azure/azure_rm_mysqlserver.py validate-modules:parameter-type-not-in-doc
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_networkinterface.py validate-modules:parameter-type-not-in-doc
|
lib/ansible/modules/cloud/azure/azure_rm_networkinterface.py validate-modules:parameter-type-not-in-doc
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_networkinterface.py validate-modules:doc-missing-type
|
lib/ansible/modules/cloud/azure/azure_rm_networkinterface.py validate-modules:doc-missing-type
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_networkinterface_facts.py validate-modules:parameter-type-not-in-doc
|
lib/ansible/modules/cloud/azure/azure_rm_networkinterface_info.py validate-modules:parameter-type-not-in-doc
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_postgresqlconfiguration.py validate-modules:parameter-type-not-in-doc
|
lib/ansible/modules/cloud/azure/azure_rm_postgresqlconfiguration.py validate-modules:parameter-type-not-in-doc
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_postgresqldatabase.py validate-modules:parameter-type-not-in-doc
|
lib/ansible/modules/cloud/azure/azure_rm_postgresqldatabase.py validate-modules:parameter-type-not-in-doc
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_postgresqlfirewallrule.py validate-modules:parameter-type-not-in-doc
|
lib/ansible/modules/cloud/azure/azure_rm_postgresqlfirewallrule.py validate-modules:parameter-type-not-in-doc
|
||||||
|
@ -1201,7 +1201,7 @@ lib/ansible/modules/cloud/azure/azure_rm_securitygroup.py validate-modules:doc-d
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_securitygroup.py validate-modules:doc-choices-do-not-match-spec
|
lib/ansible/modules/cloud/azure/azure_rm_securitygroup.py validate-modules:doc-choices-do-not-match-spec
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_securitygroup.py validate-modules:parameter-type-not-in-doc
|
lib/ansible/modules/cloud/azure/azure_rm_securitygroup.py validate-modules:parameter-type-not-in-doc
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_securitygroup.py validate-modules:missing-subption-docs
|
lib/ansible/modules/cloud/azure/azure_rm_securitygroup.py validate-modules:missing-subption-docs
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_securitygroup_facts.py validate-modules:parameter-type-not-in-doc
|
lib/ansible/modules/cloud/azure/azure_rm_securitygroup_info.py validate-modules:parameter-type-not-in-doc
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_servicebus.py validate-modules:parameter-type-not-in-doc
|
lib/ansible/modules/cloud/azure/azure_rm_servicebus.py validate-modules:parameter-type-not-in-doc
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_servicebus_facts.py validate-modules:parameter-type-not-in-doc
|
lib/ansible/modules/cloud/azure/azure_rm_servicebus_facts.py validate-modules:parameter-type-not-in-doc
|
||||||
lib/ansible/modules/cloud/azure/azure_rm_servicebusqueue.py validate-modules:parameter-type-not-in-doc
|
lib/ansible/modules/cloud/azure/azure_rm_servicebusqueue.py validate-modules:parameter-type-not-in-doc
|
||||||
|
|
Loading…
Reference in a new issue