blob: b2f280ef3219c2cc3c0eed0aab9600bdb2dd0c2a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
---
- name: Install openshift python package
pip:
name: openshift
executable: "{{ PIP_executable_version }}"
when: inventory_hostname in groups['master']
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
|