--- # Copyright Red Hat, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. # It actually deletes everything related with the instance: # domain and XML definition, network and XML definition, crc instance, ... - name: Check RHOL/CRC binary exists register: _crc_binary ansible.builtin.stat: path: "{{ cifmw_rhol_crc_binary }}" get_attributes: false get_checksum: false get_mime: false - name: Delete RHOL/CRC instance and associated configuration when: - _crc_binary.stat.exists ansible.builtin.command: "{{ cifmw_rhol_crc_binary }} cleanup" - name: Deepscrub CRC directory tags: - never - deepscrub ansible.builtin.file: path: "{{ ansible_user_dir }}/.crc" state: absent