First Setup

This commit is contained in:
2022-02-23 21:40:18 +01:00
parent 8fbe1e9f1b
commit 5f1ddaa73d
4 changed files with 25 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
{
"yaml.schemas": {
"https://raw.githubusercontent.com/ansible-community/schemas/main/f/ansible-playbook.json": "file:///Users/tim/ansible-k8s-pi-cluster/setup.yml"
}
}
+2
View File
@@ -0,0 +1,2 @@
[defaults]
inventory=inventory
+8
View File
@@ -0,0 +1,8 @@
[k8s]
[k8s_master]
k8s-master ansible_user=pi
[k8s:children]
k8s_master
+10
View File
@@ -0,0 +1,10 @@
---
- name: Install and deplo a k8s cluster
hosts: k8s
become: True
tasks:
- name: Update all packages with APT
apt:
update_cache: True
upgrade: dist