aboutsummaryrefslogtreecommitdiffstats
path: root/tools/k8s/cluster-deployment/k8scluster/roles/clustermanager/tasks/cni-pre-deploy.yml
blob: 8e30c6e595fffb30e23eb2c368cff8141777c038 (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
25
26
27
28
29
---
- name: Install openshift python package
  pip:
    name: openshift
    executable: "{{ PIP_executable_version }}"
    version: "{{ openshift_version }}"
  when: inventory_hostname in groups['master']
  become: yes

- name: Install Helm
  unarchive:
    src: "https://get.helm.sh/helm-{{ helm_version }}-linux-amd64.tar.gz"
    dest: "/tmp"
    remote_src: yes
  become: yes

- name: Move helm to PATH
  command: mv /tmp/linux-amd64/helm /usr/local/bin/helm
  become: yes

- name: Check whether /etc/cni/net.d/ exists
  stat:
    path: /etc/cni/net.d
  register: files_to_delete

- name: Delete /etc/cni/net.d/
  become: yes
  command: sudo rm -r /etc/cni/net.d/
  when: files_to_delete.stat.exists and files_to_delete.stat.isdir