mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
azure_rm_common: only remove tags from new_tags if append_tags is not… (#24040)
This commit is contained in:
@@ -33,9 +33,6 @@
|
||||
name: "pip{{ rpfx }}"
|
||||
allocation_method: Static
|
||||
domain_name: "{{ domain_name }}"
|
||||
tags:
|
||||
testing: testing
|
||||
delete: on-exit
|
||||
register: output
|
||||
|
||||
- assert:
|
||||
@@ -45,8 +42,8 @@
|
||||
azure_rm_publicipaddress:
|
||||
resource_group: "{{ resource_group }}"
|
||||
name: "pip{{ rpfx }}"
|
||||
append_tags: yes
|
||||
tags:
|
||||
testing: testing
|
||||
delete: never
|
||||
foo: bar
|
||||
register: output
|
||||
@@ -70,7 +67,7 @@
|
||||
azure_rm_publicipaddress:
|
||||
resource_group: "{{ resource_group }}"
|
||||
name: "pip{{ rpfx }}"
|
||||
tags: {}
|
||||
append_tags: no
|
||||
register: output
|
||||
|
||||
- assert:
|
||||
|
||||
@@ -94,6 +94,7 @@
|
||||
testing: testing
|
||||
delete: never
|
||||
baz: bar
|
||||
append_tags: false
|
||||
register: output
|
||||
|
||||
- assert:
|
||||
@@ -105,6 +106,7 @@
|
||||
azure_rm_securitygroup:
|
||||
resource_group: "{{ resource_group }}"
|
||||
name: "{{ secgroupname }}"
|
||||
append_tags: false
|
||||
tags:
|
||||
testing: testing
|
||||
delete: on-exit
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
resource_group: "{{ resource_group }}"
|
||||
name: "{{ storage_account }}"
|
||||
account_type: Standard_LRS
|
||||
append_tags: no
|
||||
tags:
|
||||
test: test
|
||||
galaxy: galaxy
|
||||
@@ -72,6 +73,7 @@
|
||||
azure_rm_storageaccount:
|
||||
resource_group: "{{ resource_group }}"
|
||||
name: "{{ storage_account }}"
|
||||
append_tags: no
|
||||
tags:
|
||||
testing: testing
|
||||
delete: never
|
||||
@@ -87,6 +89,7 @@
|
||||
azure_rm_storageaccount:
|
||||
resource_group: "{{ resource_group }}"
|
||||
name: "{{ storage_account }}"
|
||||
append_tags: no
|
||||
tags:
|
||||
testing: testing
|
||||
delete: never
|
||||
|
||||
@@ -102,6 +102,7 @@
|
||||
- name: Purge tags
|
||||
azure_rm_virtualnetwork:
|
||||
name: "{{ vnetname }}"
|
||||
append_tags: no
|
||||
tags:
|
||||
testing: 'always'
|
||||
resource_group: "{{ resource_group }}"
|
||||
|
||||
Reference in New Issue
Block a user