]> git.phdru.name Git - ansible.git/commitdiff
Feat(firewall): Prevent `fail2ban` from autostarting
authorOleg Broytman <phd@phdru.name>
Mon, 16 Oct 2023 15:21:27 +0000 (18:21 +0300)
committerOleg Broytman <phd@phdru.name>
Mon, 16 Oct 2023 15:21:27 +0000 (18:21 +0300)
playbooks/roles/debian/firewall/tasks/main.yaml

index b266fbb90add07b0ce9b9f13034bc294f3664ab8..6288e3d4cd17a3c91d2c3df95208b59d5448d072 100644 (file)
@@ -52,3 +52,7 @@
   file:
     path: /etc/init.d/iptables.sh
     state: absent
+
+- name: Prevent fail2ban from autostarting
+  become: true
+  command: update-rc.d fail2ban remove