Skip to content

Commit

Permalink
Execute Ensure legacy iptables services are off task only if iptabl…
Browse files Browse the repository at this point in the history
…es and ip6tables services are present

Signed-off-by: Roberto Alfieri <ralfieri@redhat.com>
  • Loading branch information
rebtoor committed Oct 13, 2023
1 parent 1cdd766 commit a323592
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roles/edpm_nftables/tasks/service-bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
loop:
- iptables.service
- ip6tables.service
when:
- ansible_facts.services["{{ item }}"] is defined

- name: Ensure nftables service is enabled and running
ansible.builtin.systemd:
Expand Down

0 comments on commit a323592

Please sign in to comment.