Vault of inventory file

I would like to vault/encrypt my inventory file since I store for some of my host both ansible_ssh_pass and ansible_sudo_pass. Is this is possible? Is there a way to move ansible_ssh_pass and ansible_sudo_pass in the group_vars directory so I can vault the the file in the directory?

Best regards, L.

Vault encryption of inventory is not currently supported.

For a more complex setup like this, you should definitely move the variables into your group_vars and hosts_vars directory. All inventory variables should move over to those files without any issues.