-
Notifications
You must be signed in to change notification settings - Fork 0
/
inventory.yml
executable file
·38 lines (37 loc) · 1008 Bytes
/
inventory.yml
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
# https://docs.ansible.com/ansible/latest/inventory_guide/intro_inventory.html
all:
hosts:
# server
node1:
ansible_host: 10.255.255.10
ansible_user: node1
ansible_ssh_private_key_file: /home/node1/.ssh/id_rsa
ansible_ssh_common_args: >-
-o UserKnownHostsFile=/dev/null
-o StrictHostKeyChecking=no
# client
node2:
ansible_host: 10.255.255.20
ansible_user: node2
ansible_ssh_private_key_file: /home/node1/.ssh/id_rsa
ansible_ssh_common_args: >-
-o UserKnownHostsFile=/dev/null
-o StrictHostKeyChecking=no
children:
nfs-servers:
hosts:
node1:
nfs-clients:
hosts:
node2:
nfs-users:
children:
nfs-clients:
nfs-servers:
vars:
nfs_share_path: /data
shared_volumes: "{{ nfs_share_path }}/volumes"
registry_url: 10.255.255.10
registry_port: 5000
registry_cache_port: 5001
traefik_addr: 192.168.50.10