Skip to content

Commit

Permalink
rm rook data on delete of microk8s
Browse files Browse the repository at this point in the history
  • Loading branch information
dfry authored and muzammil360 committed Jan 15, 2025
1 parent a0042cd commit af91acb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions mojaloop/iac/roles/microk8s/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ registry_mirror_port: 9000
teardown: false
microk8s_root_path: /var/snap/microk8s/
longhorn_data_path: /var/lib/longhorn/
rook_data_path: /var/lib/rook
microk8s_apiserver_port: 16443
microk8s_dev_skip: false
dev_skip: false
Expand Down
6 changes: 6 additions & 0 deletions mojaloop/iac/roles/microk8s/tasks/remove.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,9 @@
ansible.builtin.file:
state: absent
path: "{{ longhorn_data_path }}"

- name: Remove rook data
become: true
ansible.builtin.file:
state: absent
path: "{{ rook_data_path }}"

0 comments on commit af91acb

Please sign in to comment.