summaryrefslogtreecommitdiffstats
path: root/roles/openshift_cli
diff options
context:
space:
mode:
authorTim Bielawa <tbielawa@redhat.com>2016-07-14 10:20:02 -0400
committerTim Bielawa <tbielawa@redhat.com>2016-07-14 10:20:02 -0400
commit344a7abbb2291cc066a15cc903bb12d617c7dade (patch)
tree49e5f128bae3b0e8db24b5b8cae1705f812aa9ac /roles/openshift_cli
parent2a662d44477c8215c3754a5b604a1206a6453052 (diff)
downloadopenshift-344a7abbb2291cc066a15cc903bb12d617c7dade.tar.gz
openshift-344a7abbb2291cc066a15cc903bb12d617c7dade.tar.bz2
openshift-344a7abbb2291cc066a15cc903bb12d617c7dade.tar.xz
openshift-344a7abbb2291cc066a15cc903bb12d617c7dade.zip
Move the bash completion into the cli role. Only add when not containerized
Diffstat (limited to 'roles/openshift_cli')
-rw-r--r--roles/openshift_cli/tasks/main.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/openshift_cli/tasks/main.yml b/roles/openshift_cli/tasks/main.yml
index c0a712513..1cb1e03b9 100644
--- a/roles/openshift_cli/tasks/main.yml
+++ b/roles/openshift_cli/tasks/main.yml
@@ -25,3 +25,7 @@
- /usr/local/bin/oc
- /usr/local/bin/kubectl
when: openshift.common.is_containerized | bool
+
+- name: Install bash completion for oc tools
+ action: "{{ ansible_pkg_mgr }} name=bash-completion state=present"
+ when: not openshift.common.is_containerized | bool