mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-11 03:31:29 -07:00
more 2.8 facts modules renamed to info (#54313)
This commit is contained in:
parent
8dd46d6f95
commit
8768c05d3e
20 changed files with 56 additions and 56 deletions
|
@ -17,7 +17,7 @@
|
|||
check_mode: yes
|
||||
|
||||
- name: Check there is no CDN profile created
|
||||
azure_rm_cdnprofile_facts:
|
||||
azure_rm_cdnprofile_info:
|
||||
resource_group: "{{ resource_group }}"
|
||||
name: "{{ cdnprofilename }}"
|
||||
register: fact
|
||||
|
@ -43,7 +43,7 @@
|
|||
- output.id != ''
|
||||
|
||||
- name: Gather CDN profile facts
|
||||
azure_rm_cdnprofile_facts:
|
||||
azure_rm_cdnprofile_info:
|
||||
resource_group: "{{ resource_group }}"
|
||||
name: "{{ cdnprofilename }}"
|
||||
register: fact
|
||||
|
@ -96,7 +96,7 @@
|
|||
check_mode: yes
|
||||
|
||||
- name: Gather CDN profile facts
|
||||
azure_rm_cdnprofile_facts:
|
||||
azure_rm_cdnprofile_info:
|
||||
resource_group: "{{ resource_group }}"
|
||||
name: "{{ cdnprofilename }}"
|
||||
register: fact
|
||||
|
@ -144,7 +144,7 @@
|
|||
- output.id
|
||||
|
||||
- name: Get facts of a Azure CDN endpoint
|
||||
azure_rm_cdnendpoint_facts:
|
||||
azure_rm_cdnendpoint_info:
|
||||
resource_group: "{{ resource_group }}"
|
||||
name: "{{ endpointname }}"
|
||||
profile_name: "{{ cdnprofilename }}"
|
||||
|
@ -265,7 +265,7 @@
|
|||
- output.changed
|
||||
|
||||
- name: Get CDN profile fact
|
||||
azure_rm_cdnprofile_facts:
|
||||
azure_rm_cdnprofile_info:
|
||||
resource_group: "{{ resource_group }}"
|
||||
name: "{{ cdnprofilename }}"
|
||||
register: fact
|
||||
|
|
|
@ -100,7 +100,7 @@
|
|||
register: output
|
||||
|
||||
- name: Gather facts for single Container Instance
|
||||
azure_rm_containerinstance_facts:
|
||||
azure_rm_containerinstance_info:
|
||||
resource_group: "{{ resource_group }}"
|
||||
name: "aci{{ resource_group | hash('md5') | truncate(7, True, '') }}sec"
|
||||
register: output
|
||||
|
@ -124,7 +124,7 @@
|
|||
- output.containerinstances[0]['restart_policy'] == 'on_failure'
|
||||
|
||||
- name: Gather facts for all Container Instances in the resource group
|
||||
azure_rm_containerinstance_facts:
|
||||
azure_rm_containerinstance_info:
|
||||
resource_group: "{{ resource_group }}"
|
||||
register: output
|
||||
|
||||
|
|
|
@ -116,7 +116,7 @@
|
|||
- output.changed
|
||||
|
||||
- name: Get facts of single account
|
||||
azure_rm_cosmosdbaccount_facts:
|
||||
azure_rm_cosmosdbaccount_info:
|
||||
resource_group: "{{ resource_group }}"
|
||||
name: "{{ dbname }}"
|
||||
register: output
|
||||
|
@ -148,7 +148,7 @@
|
|||
- output.accounts[0]['tags'] != None
|
||||
|
||||
- name: Get facts with keys
|
||||
azure_rm_cosmosdbaccount_facts:
|
||||
azure_rm_cosmosdbaccount_info:
|
||||
resource_group: "{{ resource_group }}"
|
||||
name: "{{ dbname }}"
|
||||
retrieve_keys: all
|
||||
|
@ -164,7 +164,7 @@
|
|||
- output.accounts[0]['secondary_readonly_master_key'] != None
|
||||
|
||||
- name: Get facts with readonly keys
|
||||
azure_rm_cosmosdbaccount_facts:
|
||||
azure_rm_cosmosdbaccount_info:
|
||||
resource_group: "{{ resource_group }}"
|
||||
name: "{{ dbname }}"
|
||||
retrieve_keys: readonly
|
||||
|
@ -182,7 +182,7 @@
|
|||
- output.accounts[0]['connection_strings'] | length > 0
|
||||
|
||||
- name: List acounts by resource group
|
||||
azure_rm_cosmosdbaccount_facts:
|
||||
azure_rm_cosmosdbaccount_info:
|
||||
resource_group: "{{ resource_group }}"
|
||||
name: "{{ dbname }}"
|
||||
register: output
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
with_items: "{{ output.deployment.instances }}"
|
||||
|
||||
- name: Get Deployment Facts
|
||||
azure_rm_deployment_facts:
|
||||
azure_rm_deployment_info:
|
||||
resource_group: "{{ resource_group }}"
|
||||
name: "{{ dns_label }}"
|
||||
register: output
|
||||
|
|
|
@ -106,7 +106,7 @@
|
|||
- output.id
|
||||
|
||||
- name: Gather information about image created
|
||||
azure_rm_image_facts:
|
||||
azure_rm_image_info:
|
||||
resource_group: "{{ resource_group }}"
|
||||
name: testimage001
|
||||
register: output
|
||||
|
|
|
@ -351,7 +351,7 @@
|
|||
- output.id != ''
|
||||
|
||||
- name: Get Application security group
|
||||
azure_rm_applicationsecuritygroup_facts:
|
||||
azure_rm_applicationsecuritygroup_info:
|
||||
resource_group: "{{ resource_group }}"
|
||||
name: "{{ applicationsecuritygroup_name1 }}"
|
||||
register: facts
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
- output.id
|
||||
|
||||
- name: Get facts
|
||||
azure_rm_rediscache_facts:
|
||||
azure_rm_rediscache_info:
|
||||
resource_group: "{{ resource_group }}"
|
||||
name: "{{ redis_name }}"
|
||||
register: facts
|
||||
|
@ -177,7 +177,7 @@
|
|||
- output.id
|
||||
|
||||
- name: Get facts
|
||||
azure_rm_rediscache_facts:
|
||||
azure_rm_rediscache_info:
|
||||
resource_group: "{{ resource_group }}"
|
||||
name: "{{ redis_name }}2"
|
||||
return_access_keys: True
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
- output.changed
|
||||
|
||||
- name: Get facts by name
|
||||
azure_rm_roledefinition_facts:
|
||||
azure_rm_roledefinition_info:
|
||||
scope: "/subscriptions/{{ subscription_id }}/resourceGroups/{{ resource_group }}"
|
||||
type: custom
|
||||
register: facts
|
||||
|
@ -61,7 +61,7 @@
|
|||
- facts['roledefinitions'] | length > 1
|
||||
|
||||
- name: Get facts
|
||||
azure_rm_roledefinition_facts:
|
||||
azure_rm_roledefinition_info:
|
||||
scope: "/subscriptions/{{ subscription_id }}/resourceGroups/{{ resource_group }}"
|
||||
role_name: "{{ role_name }}"
|
||||
register: facts
|
||||
|
@ -119,7 +119,7 @@
|
|||
- output.changed
|
||||
|
||||
- name: Get role definition facts
|
||||
azure_rm_roledefinition_facts:
|
||||
azure_rm_roledefinition_info:
|
||||
role_name: "{{ role_name }}"
|
||||
scope: "/subscriptions/{{ subscription_id }}/resourceGroups/{{ resource_group }}"
|
||||
type: custom
|
||||
|
@ -157,7 +157,7 @@
|
|||
- output.changed
|
||||
|
||||
- name: Get facts
|
||||
azure_rm_roleassignment_facts:
|
||||
azure_rm_roleassignment_info:
|
||||
scope: "/subscriptions/{{ subscription_id }}/resourceGroups/{{ resource_group }}"
|
||||
assignee: "{{ principal_id }}"
|
||||
register: facts
|
||||
|
|
|
@ -142,7 +142,7 @@
|
|||
that: not output.changed
|
||||
|
||||
- name: Get subnet facts
|
||||
azure_rm_subnet_facts:
|
||||
azure_rm_subnet_info:
|
||||
name: foobar
|
||||
virtual_network_name: My_Virtual_Network
|
||||
resource_group: "{{ resource_group }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue