6b467808ed
We don't need to keep cleaning up snap after the first time. Change-Id: Ibd51afe152b234ee86f7cccacbe54bbc75560901
28 lines
560 B
YAML
28 lines
560 B
YAML
- name: Make /opt/oc directory
|
|
file:
|
|
path: /opt/oc
|
|
state: directory
|
|
|
|
- name: Download openshift client tarball
|
|
get_url:
|
|
url: "{{ kubectl_openshift_url }}"
|
|
checksum: "{{ kubectl_openshift_checksum }}"
|
|
dest: /opt/oc.tgz
|
|
|
|
- name: Extract openshift client tarball
|
|
unarchive:
|
|
src: /opt/oc.tgz
|
|
dest: /opt/oc
|
|
extra_opts:
|
|
- --strip-components=1
|
|
|
|
- name: Copy files into /usr/local
|
|
copy:
|
|
remote_src: true
|
|
src: "/opt/oc/{{ item }}"
|
|
dest: "/usr/local/bin/{{ item }}"
|
|
mode: 0755
|
|
loop:
|
|
- oc
|
|
- kubectl
|