mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-07-02 08:38:52 +00:00
Add support for idle_timeout, version and ipTags, curated in facts module (#48923)
This commit is contained in:
parent
6c7003127f
commit
3e2e67c677
3 changed files with 221 additions and 45 deletions
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
- assert:
|
||||
that:
|
||||
- output.state.public_ip_allocation_method == 'Static'
|
||||
- output.state.public_ip_allocation_method == 'static'
|
||||
- output.state.dns_settings.domain_name_label == domain_name
|
||||
- output.state.tags | length == 2
|
||||
- output.state.tags.testing == 'testing'
|
||||
|
|
@ -31,7 +31,7 @@
|
|||
azure_rm_publicipaddress:
|
||||
resource_group: "{{ resource_group }}"
|
||||
name: "pip{{ rpfx }}"
|
||||
allocation_method: Static
|
||||
allocation_method: static
|
||||
domain_name: "{{ domain_name }}"
|
||||
register: output
|
||||
|
||||
|
|
@ -42,6 +42,8 @@
|
|||
azure_rm_publicipaddress:
|
||||
resource_group: "{{ resource_group }}"
|
||||
name: "pip{{ rpfx }}"
|
||||
allocation_method: static
|
||||
domain_name: "{{ domain_name }}"
|
||||
append_tags: yes
|
||||
tags:
|
||||
delete: never
|
||||
|
|
@ -67,6 +69,8 @@
|
|||
azure_rm_publicipaddress:
|
||||
resource_group: "{{ resource_group }}"
|
||||
name: "pip{{ rpfx }}"
|
||||
allocation_method: static
|
||||
domain_name: "{{ domain_name }}"
|
||||
append_tags: no
|
||||
register: output
|
||||
|
||||
|
|
@ -78,9 +82,14 @@
|
|||
azure_rm_publicipaddress_facts:
|
||||
resource_group: "{{ resource_group }}"
|
||||
name: "pip{{ rpfx }}"
|
||||
register: pip
|
||||
|
||||
- assert:
|
||||
that: azure_publicipaddresses | length == 1
|
||||
that:
|
||||
- "pip.publicipaddresses | length == 1"
|
||||
- pip.publicipaddresses[0].name == "pip{{ rpfx }}"
|
||||
- pip.publicipaddresses[0].allocation_method == 'static'
|
||||
- pip.publicipaddresses[0].dns_settings.domain_name_label == domain_name
|
||||
|
||||
- name: Gather facts for all public ips
|
||||
azure_rm_publicipaddress_facts:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue