-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinventory.yml
More file actions
89 lines (80 loc) · 2.19 KB
/
inventory.yml
File metadata and controls
89 lines (80 loc) · 2.19 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# Ansible Inventory for Fleet Management
# Organize your 20+ machines by role/function
all:
vars:
# Global variables for all machines
ansible_connection: local
# Installation flags (enable by default for CI/bootstrap)
install_gui_apps: true
install_dev_tools: true
install_shell_tools: true
install_vscode: true
children:
# Group machines by function
workstations:
hosts:
localhost:
ansible_host: 127.0.0.1
vars:
# Default packages for all workstations
install_gui_apps: true
install_docker: true
install_vscode: true
# Example: Development machines
development:
hosts:
# dev-macbook-1:
# ansible_host: dev-macbook-1.local
# dev-macbook-2:
# ansible_host: dev-macbook-2.local
vars:
install_dev_tools: true
install_databases: true
# Example: Design machines (different tools)
design:
hosts:
# design-macbook-1:
# ansible_host: design-macbook-1.local
vars:
install_gui_apps: true
install_dev_tools: false
install_design_tools: true
# Example: QA machines
qa:
hosts:
# qa-macbook-1:
# ansible_host: qa-macbook-1.local
vars:
install_testing_tools: true
# SRE/DevOps/Platform Engineering machines
sre:
hosts:
# sre-macbook-1:
# ansible_host: sre-macbook-1.local
# sre-macbook-2:
# ansible_host: sre-macbook-2.local
vars:
install_dev_tools: true
install_monitoring_tools: true
install_security_scanners: true
install_cloud_tools: true
brewfile_name: Brewfile.sre
# Platform-specific groups
macos:
hosts:
localhost:
vars:
homebrew_prefix: /opt/homebrew
configure_dock: true
configure_macos_defaults: true
install_dev_tools: true
install_gui_apps: true
linux:
hosts:
localhost:
vars:
homebrew_prefix: /home/linuxbrew/.linuxbrew
configure_dock: false
configure_macos_defaults: false
install_dev_tools: true
install_gui_apps: true