From d36055d7aa34ffc98930f33af5ccf8b2dd762283 Mon Sep 17 00:00:00 2001 From: Moritz Date: Wed, 25 Sep 2024 17:57:33 +0200 Subject: [PATCH] add firewalld_disabled variable to disable firewall rules --- tasks/main.yml | 3 ++- tasks/packages.yml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 7373127..fe07c5f 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -6,6 +6,7 @@ - name: firewalld configuration import_tasks: firewalld.yml + when: not firewalld_disabled | default(false) - name: openssh settings import_tasks: openssh.yml @@ -14,4 +15,4 @@ import_tasks: dns.yml - name: install ctop - import_tasks: ctop.yml \ No newline at end of file + import_tasks: ctop.yml diff --git a/tasks/packages.yml b/tasks/packages.yml index 2235210..16d02ff 100644 --- a/tasks/packages.yml +++ b/tasks/packages.yml @@ -32,4 +32,4 @@ - sysstat - needrestart - ncat - - firewalld \ No newline at end of file + - firewalld