Accept the new Openshift when it says 'no such target', which means it was already removed
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
This commit is contained in:
parent
df5009d443
commit
00c27bb939
1 changed files with 1 additions and 1 deletions
|
@ -217,7 +217,7 @@
|
||||||
command: oc adm policy remove-cluster-role-from-group self-provisioner system:authenticated system:authenticated:oauth
|
command: oc adm policy remove-cluster-role-from-group self-provisioner system:authenticated system:authenticated:oauth
|
||||||
changed_when: false
|
changed_when: false
|
||||||
register: command_result
|
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
|
run_once: True
|
||||||
- name: Allow some users cluster admin
|
- name: Allow some users cluster admin
|
||||||
command: oadm policy add-cluster-role-to-user cluster-admin {{item}}
|
command: oadm policy add-cluster-role-to-user cluster-admin {{item}}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue