reoganize storage roles

This commit is contained in:
2022-12-05 23:18:04 +13:00
parent 3e70f70fa3
commit f230db3739
21 changed files with 17515 additions and 1 deletions

View File

@ -0,0 +1,21 @@
---
- name: destroy the rook cluster
become: false
run_once: true
local_action:
module: kubernetes.core.k8s
src: "{{ ansible_search_path[0] }}/../k8s_storage_deploy/files/rook/rook_cluster_modified.yaml"
state: absent
- name: delete the rook host storage
ansible.builtin.file:
path: /var/lib/rook
state: absent
- name: wipe parititons on storage disks
ansible.builtin.shell:
cmd: |
wipefs -a -f /dev/{{ item }}
with_items:
- sda
- sdb