From 922280c28ae18b054791aa9351f14e37cc929328 Mon Sep 17 00:00:00 2001 From: Urs Rudolph Date: Sun, 8 Mar 2026 10:59:07 +0100 Subject: [PATCH] Added Inventory and first fixes --- ansible.cfg | 3 ++- group_vars/all.yml | 11 ++++++++++- inventory/hosts.ini | 8 ++++---- 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/ansible.cfg b/ansible.cfg index 71f17a9..121dfcf 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -3,5 +3,6 @@ inventory = ./inventory/hosts.ini host_key_checking = False retry_files_enabled = False interpreter_python = auto_silent -stdout_callback = yaml bin_ansible_callbacks = True +stdout_callback = ansible.builtin.default +result_format = yaml diff --git a/group_vars/all.yml b/group_vars/all.yml index 6194d55..3408ef3 100644 --- a/group_vars/all.yml +++ b/group_vars/all.yml @@ -1,5 +1,5 @@ --- -ansible_user: pi +ansible_user: mastermito # Use ansible-vault to encrypt the password: # ansible-vault encrypt_string 'your_password' --name 'vault_ssh_password' # then put the result here. @@ -9,3 +9,12 @@ ansible_user: pi # Kubernetes Version k8s_version: "1.28.0-00" + +vault_ssh_password: !vault | + $ANSIBLE_VAULT;1.1;AES256 + 36633632343864633038356262396462343166383432306136346239353334376637333735303534 + 3132323064333838643735623665393031393766653938310a383531653039366462623261646162 + 34336361333838373531663262623064363338353930363735323336343562623738326434343763 + 3837646335653035640a656436643939303466663962323365383238303965666239333564363865 + 6137 + diff --git a/inventory/hosts.ini b/inventory/hosts.ini index 56ab1ad..4c51c50 100644 --- a/inventory/hosts.ini +++ b/inventory/hosts.ini @@ -1,10 +1,10 @@ [masters] -pi1 ansible_host=192.168.1.10 +pi1 ansible_host=192.168.240.200 [workers] -pi2 ansible_host=192.168.1.11 -pi3 ansible_host=192.168.1.12 -pi4 ansible_host=192.168.1.13 +pi2 ansible_host=192.168.240.201 +pi3 ansible_host=192.168.240.202 +pi4 ansible_host=192.168.240.203 [all:vars] # These are placeholders, update with real IPs