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 62e72a6
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 62e72a6

Please sign in to comment.