Skip to content

Commit

Permalink
ACA-1639: Adding alaways statment to the first block
Browse files Browse the repository at this point in the history
Signed-off-by: hyaish <[email protected]>
  • Loading branch information
Yaish25491 committed Jul 22, 2024
1 parent a294ccf commit 8e44cc8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- Adding alwayes statment to the first block
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@
ansible.builtin.include_tasks: "create_and_delete_sg.yml"
vars:
test_resource_group: "{{ resource_group }}"

always:
- name: Cleanup - make sure Security Group deleted - {{ security_group_name }}
azure.azcollection.azure_rm_securitygroup:
resource_group: "{{ resource_group }}"
name: "{{ security_group_name }}"
state: absent

- name: Test with create and delete Resource Group
block:
Expand All @@ -32,12 +39,6 @@
azure_manage_security_group_delete_resource_group: true

always:
- name: Cleanup - make sure Security Group deleted - {{ security_group_name }}
azure.azcollection.azure_rm_securitygroup:
resource_group: "{{ resource_group }}"
name: "{{ security_group_name }}"
state: absent

- name: Cleanup - make sure Resource Group deleted - {{ new_resource_group }}
azure.azcollection.azure_rm_resourcegroup:
name: "{{ new_resource_group }}"
Expand Down

0 comments on commit 8e44cc8

Please sign in to comment.