From 9c45100fd226ae41a7b9dd173093528043032bfb Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen@paragon-es.de>
Date: Mon, 10 Aug 2020 09:32:45 +0200
Subject: [PATCH] ansible-roles/php#12 Run Apache role only for webservers

---
 tasks/main.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tasks/main.yml b/tasks/main.yml
index cd4ae8c..9b8fc2e 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -22,4 +22,4 @@
       tags:
         - always
 
-  when: (not excluded_roles or "apache" not in excluded_roles) and role_apache_completed is not defined
+  when: (not excluded_roles or "apache" not in excluded_roles) and role_apache_completed is not defined and groups and 'webserver' in groups and inventory_hostname in groups.webserver
-- 
GitLab