Last active
April 24, 2019 16:49
-
-
Save badri/4c9839a51c291e5c7ef5c8c2c2d12fa6 to your computer and use it in GitHub Desktop.
Ansible playbook for post install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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