From 9eccd380269e166203ab5ac01a70bd8e8c7e5c82 Mon Sep 17 00:00:00 2001 From: Mark Heiges Date: Sun, 27 Dec 2015 16:20:23 -0500 Subject: [PATCH] allow some firewall rules in vagrant context --- roles/easyredmine/tasks/firewall.yml | 2 ++ roles/easyredmine/tasks/main.yml | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/easyredmine/tasks/firewall.yml b/roles/easyredmine/tasks/firewall.yml index 639647b..2e53b1b 100644 --- a/roles/easyredmine/tasks/firewall.yml +++ b/roles/easyredmine/tasks/firewall.yml @@ -26,12 +26,14 @@ - 128.91.49.0/24 sudo: yes notify: restart firewalld + when: is_production_vm == True - firewalld: service=ssh permanent=true state=disabled sudo: yes notify: restart firewalld + when: is_production_vm == True - name: restart firewalld service: name=firewalld diff --git a/roles/easyredmine/tasks/main.yml b/roles/easyredmine/tasks/main.yml index 0804d90..fc8ae36 100644 --- a/roles/easyredmine/tasks/main.yml +++ b/roles/easyredmine/tasks/main.yml @@ -3,7 +3,6 @@ - include: system.yml tags=system - include: firewall.yml tags=firewall - when: is_production_vm == True - include: database.yml tags=database when: do_database_management == True