Multiple "all" groups?

I know we can have group_vars/all, which will apply to all hosts. But is there a way to make a second group_vars file that will also apply to all hosts?

I ask because I’d like to have a Vault-encrypted vars file, in addition to an unencrypted one. If it was only for a specific group X, I would create a second group Y, with X as a child, and then create group_vars/X and group_vars/Y. But I’m not sure if I can do this for a group that applies to all hosts.

Thanks.

e​very group_vars file can also be a directory where all the yaml files
within will be evaluated​

You can have a directory underneath group_vars. Something like:

group_vars/all/
  + secret.yml
  + public.yml

Where secret.yml is vault encrypted.

Ah, didn’t know that. Thanks!

you can make it into a dir:

group_vars/all/cleartextgroup_vars/all/valuted