Skip to content

Commit

Permalink
Change cleanup
Browse files Browse the repository at this point in the history
- Bug cleanup was not deleting ~/.kube correctly
- Don't delete project and sample directories let git clone do that
  • Loading branch information
Ari LiVigni committed Nov 2, 2019
1 parent b0cfb30 commit 846f463
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions playbooks/roles/cleanup/tasks/cleanup.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
# Stop minishift profile, delete minishift profile, delete minishift binary files, and
# delete ~/.{{ profile }} and ~/.kube cache directories
# Stop minishift profile, delete minishift profile,
# delete minishift binary files, and kube config

- name: "Stop minishift if running"
shell: "{{ minishift_bin }} stop --profile {{ profile }}"
Expand All @@ -18,18 +18,15 @@
- "minishift"
- "LICENSE"
- "README.adoc"
- ".{{ profile }}"
ignore_errors: yes

- name: "Cleanup certain files and directories in {{ contra_env_setup_dir }}"
- name: "Cleanup certain files in {{ contra_env_setup_dir }}, kube config, and minishift profile"
file:
path: "{{ item }}"
state: absent
with_items:
- "{{ contra_env_setup_dir }}/.yml"
- "{{ contra_env_setup_dir }}/.yaml"
- "{{ project_dir }}"
- "{{ sample_project_dir }}"
- ".{{ profile }}"
- ".kube"
- "{{ ansible_env.HOME }}/.minishift/profiles/{{ profile }}"
- "{{ ansible_env.HOME }}/.kube"
ignore_errors: yes

0 comments on commit 846f463

Please sign in to comment.