How to setup variable files to contain multiple versions of vaulted variables

I’m running Ansible 2.6.2 and trying to wrap my head around the –vault-id and multiple vault passwords.

As I understand it, the usefulness it is bringing is that different users can have their playbook decrypt their teams version of the variable and we don’t have to create different vaulted files for each environment. I’m having trouble determining how to setup the variable file properly.

To test this, I setup a simple test like this:

Setup a simple playbook to pull in the variable file then show the encrypted data:

The “validate_dev.yml” playbook: