-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathhosts.yml.example
More file actions
56 lines (50 loc) · 1.07 KB
/
hosts.yml.example
File metadata and controls
56 lines (50 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
all:
vars:
# SSH connection settings
ansible_ssh_user: your-ssh-user
ansible_ssh_private_key_file: /path/to/your/ssh/private/key
# Optional: SSH connection options
# ansible_ssh_common_args: '-o StrictHostKeyChecking=no'
# ansible_python_interpreter: /usr/bin/python3
# K3s cluster node groups
k3s_masters:
hosts:
master-01:
ansible_host: 10.0.0.100
master-02:
ansible_host: 10.0.0.101
master-03:
ansible_host: 10.0.0.102
k3s_workers:
hosts:
worker-01:
ansible_host: 10.0.0.150
worker-02:
ansible_host: 10.0.0.151
worker-03:
ansible_host: 10.0.0.152
worker-04:
ansible_host: 10.0.0.153
worker-05:
ansible_host: 10.0.0.154
worker-06:
ansible_host: 10.0.0.155
# Operating system groups for OS-specific variables
os_debian:
hosts:
master-01:
master-02:
worker-01:
worker-02:
worker-03:
os_redhat:
hosts:
master-03:
worker-04:
worker-05:
worker-06:
# Convenience groups
k3s_cluster:
children:
k3s_masters:
k3s_workers: