Skip to content

Instantly share code, notes, and snippets.

@badri
Last active April 24, 2019 16:49
Show Gist options
  • Save badri/4c9839a51c291e5c7ef5c8c2c2d12fa6 to your computer and use it in GitHub Desktop.
Save badri/4c9839a51c291e5c7ef5c8c2c2d12fa6 to your computer and use it in GitHub Desktop.
Ansible playbook for post install
---
- hosts: all
gather_facts: false
tasks:
- name: Update default storage class
command: >-
oc patch storageclass glusterfs-storage -p '{"metadata":{"annotations":{"storageclass.beta.kubernetes.io/is-default-class":"true"}}}'
- name: Make admin the cluster administrator
command: >-
oc adm policy add-cluster-role-to-user cluster-admin admin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment