What is the recommended professional approach for organizing Ansible inventory in a multi-environment setup?
-
A
Use a single flat hosts file for all environments
-
B
Separate inventory directories per environment (dev, staging, prod) with consistent group structures
-
C
Hard-code environment names inside playbooks
-
D
Use only dynamic inventory regardless of environment size