summaryrefslogtreecommitdiffstats
path: root/roles/openshift_cli/tasks/main.yml
blob: 07a00189c2aa7920b1504d2289073e614f30b5f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---
- name: Install clients
  package: name={{ openshift.common.service_type }}-clients state=present
  when: not openshift.common.is_containerized | bool

- name: Pull CLI Image
  command: >
    docker pull {{ openshift.common.cli_image }}:{{ openshift_image_tag }}
  register: pull_result
  changed_when: "'Downloaded newer image' in pull_result.stdout"
  when: openshift.common.is_containerized | bool

- name: Copy client binaries/symlinks out of CLI image for use on the host
  openshift_container_binary_sync:
    image: "{{ openshift.common.cli_image }}"
    tag: "{{ openshift_image_tag }}"
  when: openshift.common.is_containerized | bool

- name: Reload facts to pick up installed OpenShift version
  openshift_facts:

- name: Install bash completion for oc tools
  package: name=bash-completion state=present
  when: not openshift.common.is_containerized | bool