Can you use more than one inventory source at a time?

IntermediateConceptInventory
Answer

Yes. Pass -i several times, or point -i at a directory, and Ansible merges all files in it (static files, dynamic plugin configs and scripts).

ansible-playbook -i inventory/static.ini -i inventory/aws_ec2.yml site.yml
ansible-playbook -i inventory/ site.yml

Group variables from group_vars/ next to each source apply to the merged hosts. Hidden files and names ending in .orig, .bak, .retry are ignored in a directory source.

All Ansible questions Roadmap: Ansible

More on Inventory