diff --git a/tasks/main.yml b/tasks/main.yml index 88e1681..27ef1d5 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -7,7 +7,12 @@ mode: '0600' loop: - { src: 'templates/nftables.j2', dest: '/etc/nftables.conf' } - notify: restart nftables + +- name: restart nftables + systemd: + name: nftables + state: restarted + enabled: true - name: create sites directory file: