Skip to content

Commit

Permalink
make minishift and k8s_objects external
Browse files Browse the repository at this point in the history
  • Loading branch information
joejstuart committed Apr 27, 2020
1 parent d4321a1 commit ef0307e
Show file tree
Hide file tree
Showing 14 changed files with 13 additions and 489 deletions.
25 changes: 1 addition & 24 deletions playbooks/roles/cleanup/tasks/cleanup.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,11 @@
---
# Stop minishift profile, delete minishift profile,
# delete minishift binary files, and kube config

- name: "Stop minishift if running"
shell: "{{ minishift_bin }} stop --profile {{ profile }}"
ignore_errors: yes

- name: "Delete minishift profile {{ profile }}"
shell: "{{ minishift_bin }} delete --profile {{ profile }} --force"
ignore_errors: yes

- name: "Cleanup files and directories {{ minishift_dest_dir }}"
file:
path: "{{ minishift_dest_dir }}/{{ item }}"
state: absent
with_items:
- "minishift"
- "LICENSE"
- "README.adoc"
ignore_errors: yes

- 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"
- "{{ ansible_env.HOME }}/.minishift/profiles/{{ profile }}"
- "{{ ansible_env.HOME }}/.kube"
ignore_errors: yes

# Determine if project directory exists
Expand All @@ -46,4 +23,4 @@
- "{{ contra_env_setup_dir }}/{{ project_dir }}"
when:
- pd_is_found.stat.exists
- force_repo_clone|bool == true
- force_repo_clone|bool == true
52 changes: 0 additions & 52 deletions playbooks/roles/k8s_objects/tasks/main.yml

This file was deleted.

51 changes: 0 additions & 51 deletions playbooks/roles/minishift/tasks/init_minishift.yml

This file was deleted.

31 changes: 0 additions & 31 deletions playbooks/roles/minishift/tasks/install_minishift_bin.yml

This file was deleted.

78 changes: 0 additions & 78 deletions playbooks/roles/minishift/tasks/main.yml

This file was deleted.

11 changes: 0 additions & 11 deletions playbooks/roles/minishift/tasks/set_minishift_path.yml

This file was deleted.

10 changes: 0 additions & 10 deletions playbooks/roles/prereqs/tasks/check_os.yml

This file was deleted.

28 changes: 0 additions & 28 deletions playbooks/roles/prereqs/tasks/install_kvm_plugin.yml

This file was deleted.

36 changes: 0 additions & 36 deletions playbooks/roles/prereqs/tasks/install_mac_pre_reqs.yml

This file was deleted.

Loading

0 comments on commit ef0307e

Please sign in to comment.