]> git.phdru.name Git - ansible.git/blobdiff - playbooks/debian/roles/firewall/tasks/main.yml
Feat: Use module `service` instead of `command`
[ansible.git] / playbooks / debian / roles / firewall / tasks / main.yml
index 3afb40cfbd7731edc213befe742641f4b7c630ad..0015e8162292b5522cd5ed68ab086b52746d25b4 100644 (file)
@@ -27,5 +27,7 @@
 
 - name: Start Debian firewall
   become: true
-  command: /etc/init.d/iptables.sh start
+  service:
+    name: iptables.sh
+    state: restarted
   when: fail2ban.changed or etc.changed or functions.changed