Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions roles/devscripts/tasks/cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@
# under the License.

- name: Scrub the existence of dev-scripts deployed OCP cluster.
tags:
- never
- deepscrub
when: >-
(cifmw_devscripts_ocp_comply is undefined) or
(not cifmw_devscripts_ocp_comply) or
Expand Down Expand Up @@ -53,6 +50,9 @@
poll: 10

- name: Remove the SSH key generated for accessing the platform
tags:
- never
- deepscrub
ansible.builtin.file:
path: "{{ cifmw_devscripts_artifacts_dir }}/{{ item }}"
state: absent
Expand All @@ -61,13 +61,19 @@
- "cifmw_ocp_access_key.pub"

- name: Cleanup the devscripts repo directory.
tags:
- never
- deepscrub
become: true
ansible.builtin.file:
path: "{{ cifmw_devscripts_repo_dir }}"
state: absent
force: true

- name: Cleanup the devscripts working directory.
tags:
- never
- deepscrub
become: true
ansible.builtin.file:
path: "{{ cifmw_devscripts_config.working_dir }}"
Expand All @@ -80,6 +86,9 @@
tasks_from: cleanup-dns.yml

- name: Ensure no dangling qcow2 images
tags:
- never
- deepscrub
block:
- name: Get files
register: _found_imgs
Expand Down
Loading