2026-03-25 11:46:39 +01:00

37 lines
997 B
INI

; [all:vars]
; ansible_user=ubuntu-s # using same user for all VMs
; # If you use the SSH key method above:
; # ansible_ssh_private_key_file=~/.ssh/id_rsa
; # using mounted private key from windows folder structure from does not work
; #ansible_ssh_private_key_file=/mnt/c/Users/wendg2/.ssh/id_ed25519
; ansible_ssh_private_key_file=~/.ssh/id_ed25519
; [master]
; 192.168.3.91
; [workers]
; 192.168.3.93
; 192.168.3.92
; 192.168.3.94
[master]
192.168.3.91 ansible_user=master-1
# different user name
[dbworkers]
192.168.3.92 ansible_user=master-2
192.168.3.93 ansible_user=master-3
192.168.3.94 ansible_user=master-4
[workers]
192.168.3.95 ansible_user=master-5
192.168.3.96 ansible_user=master-6
# This group combines both for easy targeting
[k8s_nodes:children]
master
workers
# [k8s_nodes:vars]
# # Ensure Ansible uses the correct Python on the remote nodes
# ansible_python_interpreter=/usr/bin/python3
# # If you use the same SSH key for all:
# ansible_ssh_private_key_file=~/.ssh/id_rsa