From e3db55a17c7e1d4374e7779492eccdbb7d103e49 Mon Sep 17 00:00:00 2001 From: Jenkins Date: Tue, 6 Jan 2026 14:45:55 +0000 Subject: [PATCH] Revert "feat(ansible): Add firewall role tasks" This reverts commit 5db582ec1a1f097dd6d03372edf0fcf74297ff4a. --- .../roles/firewall/tasks/main.yml | 48 ------------------- 1 file changed, 48 deletions(-) delete mode 100644 ansible/webserver-automation/roles/firewall/tasks/main.yml diff --git a/ansible/webserver-automation/roles/firewall/tasks/main.yml b/ansible/webserver-automation/roles/firewall/tasks/main.yml deleted file mode 100644 index c75c43d..0000000 --- a/ansible/webserver-automation/roles/firewall/tasks/main.yml +++ /dev/null @@ -1,48 +0,0 @@ ---- -# Firewall role - UFW configuration - -- name: Install UFW - apt: - name: ufw - state: present - tags: ['install'] - -- name: Set UFW default policies - ufw: - direction: "{{ item.direction }}" - policy: "{{ item.policy }}" - loop: - - { direction: 'incoming', policy: 'deny' } - - { direction: 'outgoing', policy: 'allow' } - tags: ['policy'] - -- name: Allow SSH - ufw: - rule: allow - port: "{{ ssh_port }}" - proto: tcp - tags: ['ssh'] - -- name: Allow TCP ports - ufw: - rule: allow - port: "{{ item }}" - proto: tcp - loop: "{{ firewall_allowed_tcp_ports }}" - tags: ['ports'] - -- name: Enable UFW - ufw: - state: enabled - tags: ['enable'] - -- name: Display status - command: ufw status verbose - register: ufw_status - changed_when: false - tags: ['status'] - -- name: Show configuration - debug: - msg: "✅ Firewall configured - {{ ufw_status.stdout_lines | length }} rules" - tags: ['status']