system-config/playbooks/roles/install-kubectl/tasks/main.yaml
Monty Taylor 6b467808ed Remove snap cleanup tasks
We don't need to keep cleaning up snap after the first time.

Change-Id: Ibd51afe152b234ee86f7cccacbe54bbc75560901
2020-04-16 12:45:36 -05:00

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