summaryrefslogtreecommitdiffstats
path: root/roles/nuage_master/tasks
diff options
context:
space:
mode:
authorSteve Milner <smilner@redhat.com>2017-02-09 11:57:57 -0500
committerSteve Milner <smilner@redhat.com>2017-02-10 12:52:36 -0500
commitbadaa6dc09abfcbfb2770a2d2070c803a2aaaf03 (patch)
treee78d40748a2e1237e6fc9cfc2bede800d7f7c6b0 /roles/nuage_master/tasks
parent07ca54fe406a533e70350aa9273d5a3df297f156 (diff)
downloadopenshift-badaa6dc09abfcbfb2770a2d2070c803a2aaaf03.tar.gz
openshift-badaa6dc09abfcbfb2770a2d2070c803a2aaaf03.tar.bz2
openshift-badaa6dc09abfcbfb2770a2d2070c803a2aaaf03.tar.xz
openshift-badaa6dc09abfcbfb2770a2d2070c803a2aaaf03.zip
oc serviceaccount now done via oc_serviceaccount module
Diffstat (limited to 'roles/nuage_master/tasks')
-rw-r--r--roles/nuage_master/tasks/serviceaccount.yml16
1 files changed, 6 insertions, 10 deletions
diff --git a/roles/nuage_master/tasks/serviceaccount.yml b/roles/nuage_master/tasks/serviceaccount.yml
index 41143772e..16ea08244 100644
--- a/roles/nuage_master/tasks/serviceaccount.yml
+++ b/roles/nuage_master/tasks/serviceaccount.yml
@@ -13,20 +13,16 @@
changed_when: false
- name: Create Admin Service Account
- shell: >
- echo {{ nuage_service_account_config | to_json | quote }} |
- {{ openshift.common.client_binary }} create
- -n default
- --config={{nuage_tmp_conf}}
- -f -
- register: osnuage_create_service_account
- failed_when: "'already exists' not in osnuage_create_service_account.stderr and osnuage_create_service_account.rc != 0"
- changed_when: osnuage_create_service_account.rc == 0
+ oc_serviceaccount:
+ kubeconfig: "{{ openshift_master_config_dir }}/admin.kubeconfig"
+ name: nuage
+ namespace: default
+ state: present
- name: Configure role/user permissions
command: >
{{ openshift.common.client_binary }} adm {{item}}
- --config={{nuage_tmp_conf}}
+ --config={{ nuage_tmp_conf }}
with_items: "{{nuage_tasks}}"
register: osnuage_perm_task
failed_when: "'the object has been modified' not in osnuage_perm_task.stderr and osnuage_perm_task.rc != 0"