From dd5c49777cbef7423f9ec8b66319b43f4edf5a95 Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen@paragon-es.de>
Date: Tue, 8 Mar 2016 10:52:40 +0100
Subject: [PATCH] Allow to exclude roles from plays with --exclude-roles
 command line parameter

---
 tasks/main.yml | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/tasks/main.yml b/tasks/main.yml
index 69c2b49..f41de8e 100755
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -1,8 +1,10 @@
 ---
 
-- include: install.yml
-- include: test.yml
-- include: configure.yml
-- include: auth_json.yml
-- include: update.yml
-  when: composer_update == true
+- block:
+  - include: install.yml
+  - include: test.yml
+  - include: configure.yml
+  - include: auth_json.yml
+  - include: update.yml
+    when: composer_update == true
+  when: '"composer" not in excluded_roles'
-- 
GitLab