From 25e0e202b599a74c61a29566140aa45386fe60c5 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Fri, 11 May 2018 18:15:41 +0000 Subject: [PATCH] Remember to actually register the output --- playbooks/groups/os-cluster.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/playbooks/groups/os-cluster.yml b/playbooks/groups/os-cluster.yml index c3f7c916f9..0e94aefda6 100644 --- a/playbooks/groups/os-cluster.yml +++ b/playbooks/groups/os-cluster.yml @@ -179,6 +179,7 @@ - name: Disallow users from provisioning 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" - name: Allow some users cluster admin command: oadm policy add-cluster-role-to-user cluster-admin {{item}}