From cce06a515b8c8e1bf79672e5cf7b5e59fd72a979 Mon Sep 17 00:00:00 2001 From: michael Date: Wed, 2 Nov 2022 00:40:04 +1300 Subject: [PATCH] re-organize --- ansible/playbooks/00_all_of_the_things.yaml | 6 ++++++ ansible/playbooks/{00_baremetal.yaml => 01_baremetal.yaml} | 0 .../playbooks/{01_hypervisor.yaml => 02_hypervisor.yaml} | 0 .../playbooks/{02_vm_template.yml => 03_vm_template.yml} | 0 ansible/playbooks/{03_vm_deploy.yaml => 04_vm_deploy.yaml} | 0 ansible/playbooks/{04_k8s.yaml => 05_k8s_deploy.yaml} | 0 ansible/playbooks/97_k8s_destroy.yaml | 7 +++++++ .../playbooks/{99_vm_destroy.yaml => 98_vm_destroy.yaml} | 0 ansible/playbooks/99_burn_it_all.yaml | 3 +++ {ansible/playbooks => zz_archived}/88_scratch.yaml | 0 10 files changed, 16 insertions(+) create mode 100644 ansible/playbooks/00_all_of_the_things.yaml rename ansible/playbooks/{00_baremetal.yaml => 01_baremetal.yaml} (100%) rename ansible/playbooks/{01_hypervisor.yaml => 02_hypervisor.yaml} (100%) rename ansible/playbooks/{02_vm_template.yml => 03_vm_template.yml} (100%) rename ansible/playbooks/{03_vm_deploy.yaml => 04_vm_deploy.yaml} (100%) rename ansible/playbooks/{04_k8s.yaml => 05_k8s_deploy.yaml} (100%) create mode 100644 ansible/playbooks/97_k8s_destroy.yaml rename ansible/playbooks/{99_vm_destroy.yaml => 98_vm_destroy.yaml} (100%) create mode 100644 ansible/playbooks/99_burn_it_all.yaml rename {ansible/playbooks => zz_archived}/88_scratch.yaml (100%) diff --git a/ansible/playbooks/00_all_of_the_things.yaml b/ansible/playbooks/00_all_of_the_things.yaml new file mode 100644 index 0000000..b242891 --- /dev/null +++ b/ansible/playbooks/00_all_of_the_things.yaml @@ -0,0 +1,6 @@ +--- +- ansible.builtin.import_playbook: ./01_baremetal.yaml +- ansible.builtin.import_playbook: ./02_hypervisor.yaml +- ansible.builtin.import_playbook: ./03_vm_template.yaml +- ansible.builtin.import_playbook: ./04_vm_deploy.yaml +- ansible.builtin.import_playbook: ./05_k8s_deploy.yaml \ No newline at end of file diff --git a/ansible/playbooks/00_baremetal.yaml b/ansible/playbooks/01_baremetal.yaml similarity index 100% rename from ansible/playbooks/00_baremetal.yaml rename to ansible/playbooks/01_baremetal.yaml diff --git a/ansible/playbooks/01_hypervisor.yaml b/ansible/playbooks/02_hypervisor.yaml similarity index 100% rename from ansible/playbooks/01_hypervisor.yaml rename to ansible/playbooks/02_hypervisor.yaml diff --git a/ansible/playbooks/02_vm_template.yml b/ansible/playbooks/03_vm_template.yml similarity index 100% rename from ansible/playbooks/02_vm_template.yml rename to ansible/playbooks/03_vm_template.yml diff --git a/ansible/playbooks/03_vm_deploy.yaml b/ansible/playbooks/04_vm_deploy.yaml similarity index 100% rename from ansible/playbooks/03_vm_deploy.yaml rename to ansible/playbooks/04_vm_deploy.yaml diff --git a/ansible/playbooks/04_k8s.yaml b/ansible/playbooks/05_k8s_deploy.yaml similarity index 100% rename from ansible/playbooks/04_k8s.yaml rename to ansible/playbooks/05_k8s_deploy.yaml diff --git a/ansible/playbooks/97_k8s_destroy.yaml b/ansible/playbooks/97_k8s_destroy.yaml new file mode 100644 index 0000000..0c30bdb --- /dev/null +++ b/ansible/playbooks/97_k8s_destroy.yaml @@ -0,0 +1,7 @@ +--- +- name: destroy the k8s cluster + hosts: k8s + gather_facts: true + become: true + roles: + - k8s_destroy \ No newline at end of file diff --git a/ansible/playbooks/99_vm_destroy.yaml b/ansible/playbooks/98_vm_destroy.yaml similarity index 100% rename from ansible/playbooks/99_vm_destroy.yaml rename to ansible/playbooks/98_vm_destroy.yaml diff --git a/ansible/playbooks/99_burn_it_all.yaml b/ansible/playbooks/99_burn_it_all.yaml new file mode 100644 index 0000000..567c0fd --- /dev/null +++ b/ansible/playbooks/99_burn_it_all.yaml @@ -0,0 +1,3 @@ +--- +- ansible.builtin.import_playbook: ./97_k8s_destroy.yaml +- ansible.builtin.import_playbook: ./98_vm_destroy.yaml \ No newline at end of file diff --git a/ansible/playbooks/88_scratch.yaml b/zz_archived/88_scratch.yaml similarity index 100% rename from ansible/playbooks/88_scratch.yaml rename to zz_archived/88_scratch.yaml