diff --git a/roles/edpm_nftables/tasks/service-bootstrap.yml b/roles/edpm_nftables/tasks/service-bootstrap.yml index 2397eed7f..374893004 100644 --- a/roles/edpm_nftables/tasks/service-bootstrap.yml +++ b/roles/edpm_nftables/tasks/service-bootstrap.yml @@ -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: