瀏覽代碼

Move the bash completion into the cli role. Only add when not containerized

Tim Bielawa 8 年之前
父節點
當前提交
344a7abbb2
共有 2 個文件被更改,包括 4 次插入3 次删除
  1. 4 0
      roles/openshift_cli/tasks/main.yml
  2. 0 3
      roles/openshift_master/tasks/main.yml

+ 4 - 0
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

+ 0 - 3
roles/openshift_master/tasks/main.yml

@@ -27,9 +27,6 @@
   action: "{{ ansible_pkg_mgr }} name={{ openshift.common.service_type }}-master{{ openshift_version | default('') | oo_image_tag_to_rpm_version(include_dash=True) }} state=present"
   when: not openshift.common.is_containerized | bool
 
-- name: Install bash completion for oc tools
-  action: "{{ ansible_pkg_mgr }} name=bash-completion state=present"
-
 - name: Pull master image
   command: >
     docker pull {{ openshift.master.master_image }}{{ ':' + openshift_version if openshift_version is defined and openshift_version != '' else '' }}