From: Oleg Broytman Date: Sun, 28 Jul 2019 19:01:50 +0000 (+0300) Subject: Feat: Use module `service` instead of `command` X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=3148030f2399683fa3f7e4a73ce1259e6e56254c;p=ansible.git Feat: Use module `service` instead of `command` --- 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