Skip to content

Commit

Permalink
test: stop firewall after tests that use firewall
Browse files Browse the repository at this point in the history
Tests that use the firewall must stop the firewall after the
test is complete to ensure the firewall will not cause problems
with subsequent tests of other roles.

Signed-off-by: Rich Megginson <[email protected]>
  • Loading branch information
richm committed Jun 21, 2024
1 parent 72045ae commit 8fcb39c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/tasks/cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,9 @@
state: absent
path: "/etc/ipsec.d/{{ inventory_hostname }}-to-{{ item }}.secrets"
with_items: "{{ tunnels }}"

- name: Stop firewall
service:
name: firewalld
state: stopped
when: vpn_manage_firewall | bool

0 comments on commit 8fcb39c

Please sign in to comment.