From 3148030f2399683fa3f7e4a73ce1259e6e56254c Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 28 Jul 2019 22:01:50 +0300 Subject: [PATCH] Feat: Use module `service` instead of `command` --- playbooks/debian/roles/firewall/tasks/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/playbooks/debian/roles/firewall/tasks/main.yml b/playbooks/debian/roles/firewall/tasks/main.yml index 3afb40c..0015e81 100644 --- a/playbooks/debian/roles/firewall/tasks/main.yml +++ b/playbooks/debian/roles/firewall/tasks/main.yml @@ -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 -- 2.39.2