Per-environment SSH keys

The use case is 3 devs, 3 environments (dev/staging/prod)
Adding ssh keys to the deployment user’s authorized_keys, in each environment.
In Dev, add all, in Staging just 2, and in Production just 1.

This is not the first time I’ve wished YAML inventory were still possible =)
(I get the reasons though, fair enough)

Does anybody have recommendations?
Perhaps make complete files e.g. ‘authorized_keys_dev’ , ‘authorized_keys_staging’

and specify which to use in the inventory?

i use a include_vars: {{env}}_userlist.yml

So FYI, group_vars/ and host_vars/ directory still allows keeping structured data in inventory.

You can keep your environment as a group if you like.