polish validation and project structure

This commit is contained in:
Bartal Læarsson
2025-02-28 11:32:10 +00:00
parent 20d1964db3
commit 24d9859b2d
5 changed files with 219 additions and 129 deletions
+9
View File
@@ -1,4 +1,5 @@
---
# ansible/playbooks/kubernetes.yml
- name: Common configuration for all nodes
hosts: k8s_cluster
become: yes
@@ -21,6 +22,12 @@
- k8s-setup
tasks:
- include_tasks: ../tasks/kubernetes/node-setup.yml
handlers:
- name: Restart containerd
systemd:
name: containerd
state: restarted
enabled: yes
- name: Initialize Kubernetes control plane
hosts: control_plane
@@ -45,6 +52,8 @@
- name: Validate Kubernetes cluster
hosts: k8s_cluster
become: yes
vars_files:
- ../defaults/kubernetes.yml
tags:
- validate
tasks: