-
Notifications
You must be signed in to change notification settings - Fork 0
/
uninstall_prerequisite_okd_infrastructure.yml
40 lines (40 loc) · 1.45 KB
/
uninstall_prerequisite_okd_infrastructure.yml
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
30
31
32
33
34
35
36
37
38
39
40
---
- name: Uninstall prerequisite okd infrastructure
vars:
installer_path: "/home/{{ ansible_user_id }}/.okd"
block:
- name: Remove KUBECONFIG environment variable
lineinfile:
path: "/home/{{ ansible_user_id }}/.bashrc"
state: absent
regexp: '^.*KUBECONFIG.*$'
- name: Clean prerequisite installation
file:
path: "{{ item }}"
state: absent
with_fileglob:
- "/tmp/bootstrap.ign"
- "/tmp/worker.ign"
- "/tmp/master.ign"
- "/tmp/container_registry.*"
- "{{ installer_path }}/additional_configurations.*"
- "{{ installer_path }}/bootstrap.*"
- "{{ installer_path }}/worker.*"
- "{{ installer_path }}/master.*"
- "{{ installer_path }}/oc"
- "{{ installer_path }}/kubectl"
- "{{ installer_path }}/metadata.json"
- "{{ installer_path }}/README.md"
- "{{ installer_path }}/openshift-install"
- "{{ installer_path }}/openshift-client-linux-*"
- "{{ installer_path }}/openshift-install-linux-*"
- "{{ installer_path }}/auth"
- "{{ installer_path }}/.openshift*"
- "{{ installer_path }}/install-config*"
- "{{ installer_path }}/manifests*"
- name: Clean prerequisite installation
file:
path: "{{ item }}"
state: absent
with_items:
["{{ installer_path }}/manifests","{{ installer_path }}/auth","{{ installer_path }}/openshift"]