first commit
This commit is contained in:
17
inventory/hosts.ini
Normal file
17
inventory/hosts.ini
Normal file
@@ -0,0 +1,17 @@
|
||||
[k3s_master]
|
||||
master01 ansible_host=192.168.1.10 ansible_user=ubuntu
|
||||
worker01 ansible_host=192.168.1.11 ansible_user=ubuntu
|
||||
rpi01 ansible_host=192.168.1.12 ansible_user=pi ansible_python_interpreter=/usr/bin/python3
|
||||
|
||||
[k3s_cluster:children]
|
||||
k3s_master
|
||||
|
||||
[k3s_cluster:vars]
|
||||
ansible_ssh_private_key_file=~/.ssh/id_rsa
|
||||
|
||||
# NFS сервер — по умолчанию master, но можно вынести на отдельную машину
|
||||
[nfs_server]
|
||||
master01
|
||||
|
||||
# Если NFS на отдельной машине — закомментируй строку выше и раскомментируй:
|
||||
# nfshost ansible_host=192.168.1.20 ansible_user=ubuntu
|
||||
Reference in New Issue
Block a user