Skip to content

Commit

Permalink
Merge pull request #47 from mojaloop/feat/add-reset-and-purge-microk8s
Browse files Browse the repository at this point in the history
first draft add reset and purge for delete
  • Loading branch information
dfry authored Apr 4, 2024
2 parents 6cbbcfe + 7d5ccbb commit 633a1c9
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions mojaloop/iac/roles/microk8s/tasks/remove.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# for on premise installations
- name: Reset microk8s
become: true
command: "microk8s reset"
ignore_errors: true

- name: Remove microk8s
become: true
snap:
name: microk8s
state: absent
command: "snap remove --purge microk8s"
ignore_errors: true

- name: Remove microk8s data
become: true
Expand All @@ -15,4 +19,4 @@
become: true
ansible.builtin.file:
state: absent
path: "{{ longhorn_data_path }}"
path: "{{ longhorn_data_path }}"

0 comments on commit 633a1c9

Please sign in to comment.