Added Inventory and first fixes

This commit is contained in:
2026-03-08 10:59:07 +01:00
parent 95d2a1c758
commit 922280c28a
3 changed files with 16 additions and 6 deletions

View File

@@ -3,5 +3,6 @@ inventory = ./inventory/hosts.ini
host_key_checking = False host_key_checking = False
retry_files_enabled = False retry_files_enabled = False
interpreter_python = auto_silent interpreter_python = auto_silent
stdout_callback = yaml
bin_ansible_callbacks = True bin_ansible_callbacks = True
stdout_callback = ansible.builtin.default
result_format = yaml

View File

@@ -1,5 +1,5 @@
--- ---
ansible_user: pi ansible_user: mastermito
# Use ansible-vault to encrypt the password: # Use ansible-vault to encrypt the password:
# ansible-vault encrypt_string 'your_password' --name 'vault_ssh_password' # ansible-vault encrypt_string 'your_password' --name 'vault_ssh_password'
# then put the result here. # then put the result here.
@@ -9,3 +9,12 @@ ansible_user: pi
# Kubernetes Version # Kubernetes Version
k8s_version: "1.28.0-00" k8s_version: "1.28.0-00"
vault_ssh_password: !vault |
$ANSIBLE_VAULT;1.1;AES256
36633632343864633038356262396462343166383432306136346239353334376637333735303534
3132323064333838643735623665393031393766653938310a383531653039366462623261646162
34336361333838373531663262623064363338353930363735323336343562623738326434343763
3837646335653035640a656436643939303466663962323365383238303965666239333564363865
6137

View File

@@ -1,10 +1,10 @@
[masters] [masters]
pi1 ansible_host=192.168.1.10 pi1 ansible_host=192.168.240.200
[workers] [workers]
pi2 ansible_host=192.168.1.11 pi2 ansible_host=192.168.240.201
pi3 ansible_host=192.168.1.12 pi3 ansible_host=192.168.240.202
pi4 ansible_host=192.168.1.13 pi4 ansible_host=192.168.240.203
[all:vars] [all:vars]
# These are placeholders, update with real IPs # These are placeholders, update with real IPs