Skip to content

Commit 9213b99

Browse files
committed
Add cleanup step for failed resource in block-network.yml test execution
1 parent 946b231 commit 9213b99

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/roles/ha_scs/tasks/block-network.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,11 @@
103103
until: |
104104
cluster_status_test_execution.ascs_node == cluster_status_pre.ers_node
105105
and cluster_status_test_execution.ers_node == cluster_status_pre.ascs_node
106+
106107

108+
- name: "Test Execution: Clean up failed resource and set facts"
109+
when: ansible_hostname == cluster_status_pre.ascs_node
110+
block:
107111
- name: "Test Execution: Restore network communication"
108112
ansible.builtin.shell: |
109113
iptables -D INPUT -s {{ ers_ip }} -j DROP;

0 commit comments

Comments
 (0)