Skip to content

Commit 8cca114

Browse files
committed
Remove devscript content only when deepscrub is used
We don't need to remove each time the all content necessary to deploy devscript on cleanup. The devscript is using config_$(whoami).sh config file to get necessary information how to deploy the cluster. Let's assume that after executing: "make clean" from dev-scripts [1] project, all the OCP cluster would be removed, and on next execution "make all", the script will be base on config file. [1] https://github.com/openshift-metal3/dev-scripts/ Signed-off-by: Daniel Pawlik <[email protected]>
1 parent e97a352 commit 8cca114

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

roles/devscripts/tasks/cleanup.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@
5353
poll: 10
5454

5555
- name: Remove the SSH key generated for accessing the platform
56+
tags:
57+
- never
58+
- deepscrub
5659
ansible.builtin.file:
5760
path: "{{ cifmw_devscripts_artifacts_dir }}/{{ item }}"
5861
state: absent
@@ -61,13 +64,19 @@
6164
- "cifmw_ocp_access_key.pub"
6265

6366
- name: Cleanup the devscripts repo directory.
67+
tags:
68+
- never
69+
- deepscrub
6470
become: true
6571
ansible.builtin.file:
6672
path: "{{ cifmw_devscripts_repo_dir }}"
6773
state: absent
6874
force: true
6975

7076
- name: Cleanup the devscripts working directory.
77+
tags:
78+
- never
79+
- deepscrub
7180
become: true
7281
ansible.builtin.file:
7382
path: "{{ cifmw_devscripts_config.working_dir }}"
@@ -80,6 +89,9 @@
8089
tasks_from: cleanup-dns.yml
8190

8291
- name: Ensure no dangling qcow2 images
92+
tags:
93+
- never
94+
- deepscrub
8395
block:
8496
- name: Get files
8597
register: _found_imgs

0 commit comments

Comments
 (0)