diff options
Diffstat (limited to 'roles/openshift_common/tasks')
-rw-r--r-- | roles/openshift_common/tasks/main.yml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/roles/openshift_common/tasks/main.yml b/roles/openshift_common/tasks/main.yml index 9043c3d8e..cfa0d8dfe 100644 --- a/roles/openshift_common/tasks/main.yml +++ b/roles/openshift_common/tasks/main.yml @@ -12,3 +12,11 @@ - { section: common, option: env, value: "{{ openshift_env | default('default') }}" } - { section: common, option: host_type, value: "{{ openshift_host_type }}" } - { section: common, option: debug_level, value: "{{ openshift_debug_level }}" } + +- name: Add KUBECONFIG to .bash_profile for user root + lineinfile: + dest: /root/.bash_profile + regexp: "KUBECONFIG=" + line: "export KUBECONFIG=/var/lib/openshift/openshift.local.certificates/admin/.kubeconfig" + state: present + insertafter: EOF |