From 00c27bb939398ef2f380e1c747f9c80a3611f58b Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Tue, 4 Dec 2018 21:14:25 +0100 Subject: [PATCH] Accept the new Openshift when it says 'no such target', which means it was already removed Signed-off-by: Patrick Uiterwijk --- playbooks/groups/os-cluster.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/groups/os-cluster.yml b/playbooks/groups/os-cluster.yml index 0edb568010..3af4fae288 100644 --- a/playbooks/groups/os-cluster.yml +++ b/playbooks/groups/os-cluster.yml @@ -217,7 +217,7 @@ command: oc adm policy remove-cluster-role-from-group self-provisioner system:authenticated system:authenticated:oauth changed_when: false register: command_result - failed_when: "' removed:' not in command_result.stdout" + failed_when: "' removed:' not in command_result.stdout and 'unable to find target' not in command_result.stderr" run_once: True - name: Allow some users cluster admin command: oadm policy add-cluster-role-to-user cluster-admin {{item}}