]> git.phdru.name Git - ansible.git/commitdiff
Feat: Use module `service` instead of `command`
authorOleg Broytman <phd@phdru.name>
Sun, 28 Jul 2019 19:01:50 +0000 (22:01 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 28 Jul 2019 19:25:03 +0000 (22:25 +0300)
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