Why does an `aws_ec2` inventory file sometimes get ignored with "did not meet aws_ec2 requirements"?
IntermediateConceptInventory
Answer
The plugin verifies the file name. It must end with aws_ec2.yml or aws_ec2.yaml (for example prod.aws_ec2.yml). Other causes: the plugin: key is missing or mis-spelled, or the plugin is not in enable_plugins.
Run with -vvv to see each plugin's reason for skipping the file, and use ansible-inventory --list to confirm parsing.
More on Inventory
What is an inventory and why does Ansible need one?BeginnerWhat are the INI and YAML inventory formats and how do they differ?BeginnerHow do you create groups of groups?BeginnerExplain host patterns: `:`, `:&`, `:!` and wildcards.IntermediateWhich connection variables can you set per host in inventory?BeginnerWhat are `group_vars` and `host_vars` directories?Intermediate