From 669f5f003ef28151ee3bc9a38da7c8df7c581e1d Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Mon, 21 May 2018 22:28:07 +0000 Subject: [PATCH] try this --- playbooks/groups/os-cluster.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/playbooks/groups/os-cluster.yml b/playbooks/groups/os-cluster.yml index 4d030e0bfa..9b0ec44489 100644 --- a/playbooks/groups/os-cluster.yml +++ b/playbooks/groups/os-cluster.yml @@ -180,7 +180,8 @@ command: oc adm policy remove-cluster-role-from-group self-provisioner system:authenticated system:authenticated:oauth changed_when: false register: command_result - failed_when: "'unable to find target' not in command_result.stdout" + failed_when: "' removed:' not in command_result.stdout" + run_once: True - name: Allow some users cluster admin command: oadm policy add-cluster-role-to-user cluster-admin {{item}} with_items: