organize playbooks into subdirs

This commit is contained in:
2024-01-11 13:03:08 +13:00
parent 7eddbba696
commit ba7cda511e
16 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -0,0 +1,7 @@
---
- name: bare metal os installation
gather_facts: false
hosts: hv00
become: true
roles:
- baremetal

View File

@ -0,0 +1,15 @@
---
- name: configure hyervisor host
gather_facts: false
hosts: hv00
become: true
roles:
- python-install
- sshd
- firewall
- pikaur
- msmtp
- zfs-install
- libvirt-server

View File

@ -0,0 +1,7 @@
---
- name: create vm template
hosts: hv00
gather_facts: true
become: true
roles:
- vm_template

View File

@ -0,0 +1,22 @@
---
- name: create the vms
hosts: hv00
gather_facts: true
become: true
roles:
- vm_deploy
# - name: vm hardening
# hosts: k8s
# gather_facts: true
# become: true
# roles:
# - sshd
# - firewall
- name: configure vm disks
hosts: k8s
gather_facts: true
become: true
roles:
- vm_disks

View File

@ -0,0 +1,66 @@
---
# - name: configure control plane
# hosts: k8s_control
# gather_facts: true
# become: true
# roles:
# - k8s_control
# - name: configure calico networking
# hosts: localhost
# gather_facts: true
# become: false
# roles:
# - k8s_network
# - name: remove control-plane taints
# hosts: localhost
# gather_facts: false
# become: false
# roles:
# - k8s_taint
# - name: configure zfs storage on nodes
# hosts: k8s_storage
# gather_facts: true
# become: true
# roles:
# - zfs_repo_install
# - name: configure open-ebs storage operator
# hosts: localhost
# gather_facts: false
# become: false
# roles:
# - k8s_storage_ebs_local_deploy
- name: configure open-ebs zfs driver
hosts: localhost
gather_facts: false
become: false
roles:
- k8s_storage_ebs_zfs_deploy
# - name: configure smb storage provider
# hosts: localhost
# gather_facts: false
# become: false
# roles:
# - k8s_storage_smb_deploy
# - name: configure ingress controller
# hosts: localhost
# gather_facts: false
# become: false
# roles:
# - k8s_ingress_controller
# - name: configure cert manager
# hosts: localhost
# gather_facts: false
# become: false
# roles:
# - k8s_cert_manager

View File

@ -0,0 +1,7 @@
---
- name: destroy rook storage
hosts: k8s_worker
gather_facts: true
become: true
roles:
- k8s_ebs_destroy

View File

@ -0,0 +1,7 @@
---
- name: destroy rook storage
hosts: k8s_worker
gather_facts: true
become: true
roles:
- k8s_rook_destroy

View File

@ -0,0 +1,7 @@
---
- name: destroy the k8s cluster
hosts: k8s
gather_facts: true
become: true
roles:
- k8s_destroy

View File

@ -0,0 +1,7 @@
---
- name: destroy the vms
hosts: hv00
gather_facts: true
become: true
roles:
- vm_destroy

View File

@ -0,0 +1,3 @@
---
- ansible.builtin.import_playbook: ./97_k8s_destroy.yaml
- ansible.builtin.import_playbook: ./98_vm_destroy.yaml

1
ansible/playbooks/k8s/roles Symbolic link
View File

@ -0,0 +1 @@
../../roles/